Consultor Eletrônico



Kbase P36594: InstallShield Silent Install fails when run from script
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   7/11/2005
Status: Verified

SYMPTOM(s):

InstallShield Silent Install fails when run from script

ResultCode=-12 in setup.log

Installation script reboots machine after running setup

CAUSE:

Normally using Silent Install, the setup.exe starts the actual installation as a seperate background process and then terminates.
The installation script will then continue executing.
This leads to further commands (such as rebooting or changing OS permissions) being issued prematurely, which will disrupt the Silent Install process.

FIX:

Record the setup.iss file using the -SMS option. This will skip the 'do you want to reboot now' dialog.

Then using this setup.iss file, Start the setup as follows:

start /WAIT %INST%\setup -s -f1%INPUT%\setup.iss -f2%LOG%\setup.log -SMS

%INST% is the path where the setup executable is located
%INPUT% is the path where the .iss file is located (for example INST%\installdat)
%LOG% is the path where the setup log should be placed

This will ensure that:
- The setup.exe waits until the installing background process has finished before terminating.
- The OS script waits until the setup.exe terminates before continuing processing.
- Using "start /wait" in combination with -SMS causes the setup to return control to the command prompt after the setup completes.