Software Deployment Question

Custom Action to uninstall Setup.exe (Inno)

02/18/2016 1529 views

I have created an MSI project, created a custom action to install Setup.exe, for this no problem.
But i can't find the good custom action parameter to uninstall the software, i want to call the "unins000.exe" file in "C:\Program Files (x86)\" but every kind of custom action i have tried fail.

Can someone help me ?

0 Comments   [ + ] Show comments


Community Chosen Answer

Anyone who lets a vendor's set-up loose on their estate deserves everything they get, frankly.
Answered 02/19/2016 by: VBScab
Red Belt

All Answers

Why would you want to write an MSI wrapper around a legacy setup.exe?
Either recapture it using a software of your choice (RayPack for Dell KACE) or use a script wrapper (vbs , Power shell) around the original legacy setup.

Answered 02/18/2016 by: Pressanykey
Red Belt

  • Because my company want a unique MSI on this Setup.exe, and is it possible to include it in a MSI, i want don't know how to configure the uninstall custom action.
    Of course i can try repackager but we will loose the editor support.
    • Then you know where in the registry the legacy setup.exe puts it's uninstall string. You just need to read this out (AppSearch) and pass this as custom action data to your custom action that is called in execute deferred to call the legacy uninstaller.
      However I must strongly recommend using this method to deploy, and would rather recapture the legacy installation, or insist that the vendor supplies a msi in the first place.
Yes and my problem is the custom action, can you find the problem in this picture ?

Answered 02/18/2016 by: tens
Orange Belt

i have found the solution, i must create the directory then pass the full path into my custom action

Answered 02/18/2016 by: tens
Orange Belt

I would check your switches on the commandline too and maybe go for the full range of switches, just to avoid any unwanted results that haven't come up in your testing.

I don't know what you mean about 'loosing the editor support' - but Greenshot provide details on where to drop files etc. for configuring it 'with your own or third party installer, for instance when you want to deploy Greenshot to multiple PC’s.' on their website.
Your scenario is exactly why they publish this information.

Answered 02/18/2016 by: dunnpy
Red Belt

  • The application i need to package is not greenshot, i use greenshot because it is Inno setup same as the setup i need the package, but mine is 1.5GO, and greenshot 2MB, so it is faster to work with it.
  • @Dunnpy, looks like quick & dirty is preferred over correct and thorough...
    Shame really, when things like this blow up it's hard to do any analysis and just means spending time trying to fix something that should not have been broken in the first place...
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ