This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Uninstall running an exe I run during install
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 11, 2010
08:17 AM
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!
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!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 11, 2010
01:31 PM
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.
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.