Controlling ARP from IA (add/remove prg)
Posted: Tue Jan 29, 2013 2:56 am
Hello,
What are the methods to decide if my IA setup gets an entry for uninstallation under Program and Features (Add/Remove Programs)? I would very much like to be able to control this in my setups.
For example:
I have a IA setup which installs 3rd party software and then make adjustments and settings for the 3rd party product to function properly. My setup uses NO purple commands, but I want an entry under programs and features to uninstall the settings my setup has applied using non-purple commands (and possibly remove 3rd party software if still installed).
The only way I have found to get an uninstall entry is to do a "Apply Install" in my setup.
This works and I do my clean up just fine during uninstallation, but IA will in GUI mode throw an error in the end of the uninstallation (Apply Uninstall) "action only valid for products that are currently installed", which makes some sense since I have not used any purple commands.
On the other hand, if there is nothing to uninstall why not just be quiet about it and remove the entry from Program and Features? After all, exit code is "0" when run silent and Apply Install did not complain..? I am left with an entry in Program and Features which can not be removed by my setup. (I tried ABORTONERROR=FALSE without success, if I remove Apply Uninstall there is no error when in GUI mode but my entry is left in ARP)
In another project I want to do the opposite: I have an IA installer which DOES use purple commands but I do NOT want an entry for uninstallation in Program and Features (at least not one that is visible).
If I could chose to set DisplayName for the entry to "" it would make the entry at least invisible, but this property is not available in project design -> ARP in IA.
How can I control what gets into ARP/is displayed from my IA installer?
What are the methods to decide if my IA setup gets an entry for uninstallation under Program and Features (Add/Remove Programs)? I would very much like to be able to control this in my setups.
For example:
I have a IA setup which installs 3rd party software and then make adjustments and settings for the 3rd party product to function properly. My setup uses NO purple commands, but I want an entry under programs and features to uninstall the settings my setup has applied using non-purple commands (and possibly remove 3rd party software if still installed).
The only way I have found to get an uninstall entry is to do a "Apply Install" in my setup.
This works and I do my clean up just fine during uninstallation, but IA will in GUI mode throw an error in the end of the uninstallation (Apply Uninstall) "action only valid for products that are currently installed", which makes some sense since I have not used any purple commands.
On the other hand, if there is nothing to uninstall why not just be quiet about it and remove the entry from Program and Features? After all, exit code is "0" when run silent and Apply Install did not complain..? I am left with an entry in Program and Features which can not be removed by my setup. (I tried ABORTONERROR=FALSE without success, if I remove Apply Uninstall there is no error when in GUI mode but my entry is left in ARP)
In another project I want to do the opposite: I have an IA installer which DOES use purple commands but I do NOT want an entry for uninstallation in Program and Features (at least not one that is visible).
If I could chose to set DisplayName for the entry to "" it would make the entry at least invisible, but this property is not available in project design -> ARP in IA.
How can I control what gets into ARP/is displayed from my IA installer?