/build/static/layout/Breadcrumb_cap_w.png

Custom Action to uninstall Setup.exe (Inno)

Hello,

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 ?

Thanks

0 Comments   [ + ] Show comments

Answers (5)

Posted by: anonymous_9363 8 years ago
Red Belt
1
Anyone who lets a vendor's set-up loose on their estate deserves everything they get, frankly.
Posted by: Pressanykey 8 years ago
Red Belt
0
Hi,
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.

Cheers
Phil

Comments:
  • 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. - tens 8 years ago
    • 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. - Pressanykey 8 years ago
Posted by: tens 8 years ago
Orange Belt
0
Yes and my problem is the custom action, can you find the problem in this picture ?




Posted by: tens 8 years ago
Orange Belt
0
i have found the solution, i must create the directory then pass the full path into my custom action




Posted by: dunnpy 8 years ago
Red Belt
0
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.

Dunnpy

Comments:
  • 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. - tens 8 years ago
  • @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... - Pressanykey 8 years ago
 
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