Summary
This article discusses a way to detect if a setup is being run from the Add/Remove programs.Synopsis
This article is for Basic MSI and InstallScript MSI project types.
This article discusses a way to detect if a setup is being run from the Add/Remove programs.
Discussion
This can be done by following these steps:
- Add a property to the CmdLine entry of setup.ini, such as:
CmdLine=NOTADDREMOVE=1 - In the script, use the MsiGetProperty function to get the value of NOTADDREMOVE.
- If the value is 1 (as specified in the INI entry), it can be determined that the user is running the uninstallation from the media. Otherwise, setup.exe was not used to launch the uninstallation, in which case the user is uninstalling from the Add/Remove Programs applet in Windows.
Related KB Articles
Q104327Additional Information
This can also be done with InstallShield Professional 6.x. More information can be found in Knowledge Base article Q104327 Allowing a Setup To Detect If It Is Being Run from Add/Remove Programs.
For more information on this property, see the Windows Installer Help Library topic MsiGetProperty.
Related Articles
How to Hide the Add/Remove Programs Option 5Number of Views Specifying Support Information in Add/Remove Programs 3Number of Views Determining if MSI Setup Was Launched from Setup.exe 3Number of Views Preventing Applications from Appearing in Add/Remove Programs 3Number of Views How to detect if a Suite is running in upgrade mode? 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago