cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
webwolve
Level 4

Uninstall running an exe I run during install

Hi all,

Within my InstallScript install, I run a separate installation called, say xxx.exe such as this:

Disable(LOGGING);
LaunchAppAndWait(SUPPORTDIR ^ "xxx.exe", "LOCATION=\"" + TARGETDIR + "\"", LAAW_OPTION_WAIT);
Enable(LOGGING);

When my test machines run an uninstall of the application I just installed, it first uninstalls the xxx.exe, but then turns around and installs it again.

I added the Enable/Disable of LOGGING to try and prevent this, but it does not seem to resolve the matter.

Any ideas?

Thanks!
Labels (1)
0 Kudos
(1) Reply
Cary_R
Level 11

Hi There,

I think you've got this in the wrong event, or need an IF block around it.

What you'll see in some built-in events looks like this:

if( REMOVEALLMODE ) then
szTitle = SdLoadString(IFX_SDFINISH_REMOVE_TITLE);
szMsg1 = SdLoadString(IFX_SDFINISH_REMOVE_MSG1);
else
szTitle = SdLoadString(IFX_SDFINISH_MAINT_TITLE);
szMsg1 = SdLoadString(IFX_SDFINISH_MAINT_MSG1);
endif;

I would probably try this first and see if this helps.
0 Kudos