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
MsiGetPropertyfunction to get the value ofNOTADDREMOVE. - 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.
Additional 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
ISDEV : fatal error -9088: Trying to Import a Visual Studio Setup or Merge Module Project (.vdproj) Into an InstallShield … 8Number of Views What Are the Differences Between Basic MSI and InstallScript MSI Project? 9Number of Views Creating an Uninstall Shortcut for an InstallScript MSI Project 8Number of Views Custom Setup.exe Icon Does Not Show on the Taskbar During Installation 10Number of Views Extracting Files from a Setup.exe 27Number 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. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago