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 project - writing an uninstaller
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
Nov 07, 2013
08:10 PM
Installscript project - writing an uninstaller
I am trying to write an an uninstaller for an installscript project. I originally wrote my project in basic MSI, but needed the functionality of install script. I tried installscript Msi, but that freezes on me when I build it. All I would like to know is how to make a certain method run only when I try to uninstall the project.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 19, 2013
02:27 PM
Johnny,
For an InstallScript Only project, you would probably want to use OnMaintUIBefore and/or OnMaintUIAfter, and put your code in an "if" statement when nType = REMOVEALL
Note: when you have Setup.rul selected, choose "Before Move Data" in the first dropdown, then "OnMainUIBefore" and it will autogenerate the basics. This is where the user determines whether to Modify/Repair/Remove:
HTH
For an InstallScript Only project, you would probably want to use OnMaintUIBefore and/or OnMaintUIAfter, and put your code in an "if" statement when nType = REMOVEALL
Note: when you have Setup.rul selected, choose "Before Move Data" in the first dropdown, then "OnMainUIBefore" and it will autogenerate the basics. This is where the user determines whether to Modify/Repair/Remove:
nType = SdWelcomeMaint(szTitle, szMsg, REMOVEALL);
HTH