Summary
Uninstall Shortcut InstallScript MSI ProjectSynopsis
A Basic MSI installation package can be uninstalled using this command line:
[SystemFolder]Msiexec.exe /x{PRODUCT_CODE}
However, using the same command line for an InstallScript MSI will not uninstall some registry entries, nor would the entry in the Add/Remove Programs applet be removed. This article explains the proper command line to execute the uninstall for an InstallScript MSI project via a shortcut.
Discussion
- Browse to the Shortcuts view or the Shortcuts view of a component.
- Right-click the desired folder location for the shortcut and select New Shortcut to Preexisting File.
- In the Browse for Shortcut Target dialog, select the [ProgramFilesFolder] folder. Click OK. Name the shortcut created.
- Fill in the Target field for the new shortcut as follows:
[ProgramFilesFolder]InstallShield Installation Information\[ProductCode]\setup.exe
Note: Quotes are not required for the shortcut target, they will automatically be placed around the filename and path by Windows Installer at runtime. [ProductCode] will also be replaced at runtime with the Product Code of the MSI package being installed.
-
Fill in the Arguments field for the shortcut as follows:
/runfromtemp /x
- Browse to the Shortcuts view or the Shortcuts view of a component.
- Right-click and select New Shortcut to Preexisting File.
- In the Browse for Shortcut Target dialog, the directories that will point to Idriver.exe should be made. The subfolders InstallShield\Driver\ x \Intel 32 should be added under the [CommonFilesFolder]. The x is where the appropriate version of IDriver.exe should be indicated; that being a 7 or 8 for Developer 7 or 8 projects respectively, or 9 or 10 for DevStudio 9 or X projects respectively.
- Fill in the Arguments field as follows:
Arguments: /M{Product Code}
{Product Code} would be replaced with your actual product code. It might look similar to the following:
Arguments: /M{7C071035-F334-11D5-818A-00C04F288311}
To find the Product Code for a particular project, follow these steps:
- Open project in the InstallShield IDE.
- Select the General Information view.
- Select Product Properties.
- Note the value of the Product Code field in the right panel
- Open project in the InstallShield IDE.
Related KB Articles
Q105473Q105816
Q105629
Additional Information
InstallShield HelpNet
- Creating Uninstallation Shortcuts for InstallScript Projects
- Creating Uninstallation Shortcuts for Basic MSI Projects
- Setup.exe and Update.exe Command-Line Parameters
- Q105473: Setup.exe Command-Line Parameters
- Q105816: Creating an Uninstall Shortcut For an InstallScript MSI Project via InstallScript.
- Q105629: Creating an Uninstall Shortcut on the Programs Menu.
Related Articles
InstallShield VC++ 2019 Prerequisite Restart the Machine After The Prerequisite Installation 6Number of Views Behavior Tab Setting of the InstallShield Prerequisite Editor - If the Prerequisite Appears To Need a Reboot 4Number of Views How to Create Custom Prerequisites in Installshield 9Number of Views InstallShield Prerequisite Editor Reference 3Number of Views Snow Management and Configuration Center: RUN_COMPLETE_RULESET_DAY - How to use this option and the impact to Data Update Job 316Number 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