Join us for SoftSummit 2023. The 20th anniversary of the industry leading software monetization conference. April 18 and 20. Register Now

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 3

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.
Labels (1)
0 Kudos
1 Reply
Level 7

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);

0 Kudos