bryn Posted October 25, 2005 Posted October 25, 2005 Hi!Thought this wouldn't be a new problem, but I don't seem to be able to find any post on this subject. Could be because I'm new to this site and to unattended installation. Anyhow..I'm installing an application using start.cmd from ..\$OEM$\$1\INSTALL.The application uses setup.iss and in this, there's a distinct path: C:\Program Files\.. etc. for where to install the app. That works fine.My problem is this: How do I make the installation independant of the drive stated in setup.iss? I wish to be able to use the installation-CD for partitions different from C:If I use %systemdrive%\Program Files\... it tries to install the app in the ..\$1\INSTALL dir. which of cause fails.I'd be happy to any guidance whatsoever.Thanks in advance!
Doc Symbiosis Posted October 26, 2005 Posted October 26, 2005 (edited) The problem is, that iss-files doesn't know environment variables. So in your batch, you have to generate the iss-file before the installation. So for example, for the installation of the Cisco VPN-Client I have two iss files (vpn-setup1.iss and vpn-setup2.iss), which contain the text before and after the line with the programfiles-path. Then my batch looks like this( assuming, that ii is located in the dame directory, as the setup.exe and the two iss-files)@echo offREM Change to the current directorycd /D %~dp0REM Create the answer file, independent of the Program fiels directorytype vpn-setup1.iss > setup.issecho szDir=%PROGRAMFILES%\Cisco Systems\VPN Client >> setup.isstype vpn-setup2.iss >> setup.issREM Start the silent installationstart "" /wait setup.exe -s Edited October 26, 2005 by Doc Symbiosis
bryn Posted October 26, 2005 Author Posted October 26, 2005 Thanks Doc!That saves me a lot of searching. And thanks for the example.bryn
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now