PDA

View Full Version : silent Installation, installation progress



AJungen
03-12-2002, 02:03 AM
Hi

I am using IS 5.53, have an silent installation, and have to run other tools after the installation is done.

How do I check the progress of the installation, or how do I check the installation is done ?

The installation creates a setup.log with the entry, f.e.:
[ResponseResult]
ResultCode=0

Is there an easier way to check if the installation is done ?


An answer would be a great help.

Thanks


Andreas

huntant
03-12-2002, 10:05 AM
You could wrap all the programs up into a batch file that would get called.

Example:
@echo off
setup.exe /SMS /s
program1.exe
program2.exe


Note: make sure that you user the /SMS parameter. This tells setup to wait for the install to complete.

But, the only way to check if the install was successful is by checking that value in the setup.log file.


Anthony

Stephen Maris
03-12-2002, 10:14 AM
Are you trying to let another program know the status of the install or the user.

I ran into the same issue when an install was aborting and I could not tell when.

I create a second log file during the install and put an entry in it for each dialog function and other important functions like MoveFile and Update registry.

In the case when there is a problem with the install I switch from SILENTMODE to NORMALMODE and display the messagebox.
if ( MODE = SILENTMODE ) then
LogMessage(" Exit SilentMode");
MODE = NORMALMODE;
endif;


You can also display a messagebox message for several seconds when the install is finished.

AJungen
03-13-2002, 02:00 AM
the switch -SMS does the things I need.

Great thanks to all