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
- :
- Installscript check Uninstalling
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
‎May 29, 2008
01:19 PM
Installscript check Uninstalling
How can I check to see if the user is uninstalling the system. I have the system performing a task on_end() and need to check if the installer is installing, uninstalling or doing an upgrade or maintenance.
Also looking for a way to stop the system from removing a folder I create using CreateDir("MyFolder") when it uninstalls.
Also looking for a way to stop the system from removing a folder I create using CreateDir("MyFolder") when it uninstalls.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 29, 2008
01:32 PM
For InstallScript, you might look into the REMOVEALLMODE and MAINTENANCE system variables to detect the different modes.
As for leaving a folder behind, you might look into Disable(LOGGING) and Enable(LOGGING).
As for leaving a folder behind, you might look into Disable(LOGGING) and Enable(LOGGING).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 29, 2008
01:52 PM
These helped alot thank you.
I am also wondering about how the installer records things for uninstallation. I have a custom dialog that asks for an IIS set and I set it and use szIISid and szIISservercomment and to a text replacement using something like TEXTREPLACE("", szIISid,FALSE); are these values stored in the information so an upgrade will now to use these settings, or will I need to prompt for this information again during an upgrade.
I am also wondering about how the installer records things for uninstallation. I have a custom dialog that asks for an IIS set and I set it and use szIISid and szIISservercomment and to a text replacement using something like TEXTREPLACE("
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 30, 2008
09:00 AM
You might open the InstallScript uninstall log with the log viewer (under the Tools menu, I think). If the value's aren't saved, you might look into calling LogWriteCustomString during the initial installation and LogReadCustomString during maintenance, or saving the information in some other persistent location...