This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Running silent install and uninstall without any parameters
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 27, 2011
08:09 AM
Running silent install and uninstall without any parameters
Hi,
I have developed a basic MSI package in Installshield. To make it install silently, I have included the MSI command line argument "/qb+" while building only. This installs it silently as expected.
However when I execute the same EXE again with the intention of uninstalling the previously installed components, it actually does a Reinstall or Repair but not a Uninstall. I would like to launch the same EXE for installation and then for uninstallation. Is it possible?
Regards,
Abhijit
I have developed a basic MSI package in Installshield. To make it install silently, I have included the MSI command line argument "/qb+" while building only. This installs it silently as expected.
However when I execute the same EXE again with the intention of uninstalling the previously installed components, it actually does a Reinstall or Repair but not a Uninstall. I would like to launch the same EXE for installation and then for uninstallation. Is it possible?
Regards,
Abhijit
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 27, 2011
02:57 PM
Here's a code snippet that I use in a Visual C# "Install Wizard" that will show you how to programmatically uninstall a Basic MSI app:
You're welcome! 😄
// This is how to uninstall a basic msi app
// Create the uninstall process.
Process proc = new Process();
// Define the parameters for the process
proc.StartInfo.FileName = "msiexec.exe";
// This is the Product Code from your Basic MSI InstallShield Project
string strProdGUID = "{E50249BB-2FBC-4EE1-A7A8-F4A5E45F5FD8}";
proc.StartInfo.Arguments = "/uninstall" + " " + strProdGUID + " " + "/qb";
// Start the process.
proc.Start();
// Wait for the uninstall process to end.
proc.WaitForInputIdle();
proc.WaitForExit();
// Release resources.
proc.Close();
You're welcome! 😄
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)