We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Uninstall 3rd party exe using MSI from EXE project

Hello,

We're creating a project to lay down some of our required DLLs, install a C++ prerequisite, and then launch a 3rd party EXE. We've created an MSI from EXE project to try and accomplish this. I'm trying to find a way to have the 3rd party EXE not be registered with Windows Installer so that it is not seen in the add remove programs. We also want the 3rd party EXE to be uninstalled when the user goes to add/remove programs and uninstalls our setup.

Is this possible through some msiexec commands or a custom action?



Thank you,

Kyle
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall 3rd party exe using MSI from EXE project

Hi Kyle and welcome to Advanced Installer forums,

Unfortunately, you cannot prevent the .EXE to be registered when installing your .MSI. In this case, you might be interest to repackage the .EXE into MSI. Repackaging an EXE is a lengthy task but it will give you full access over the new project that is generated, so you can edit the setup package as if it were created by you, thus being able add or remove functionality or resources instantly.

Wrapping the EXE(s) into an MSI is a quicker solution.

For details, please see the Convert Legacy Installations article.

In order to install a prerequisite with you main installation package, you can add the appropriate uninstall command lines in the Uninstal using the command line: field from the Setup tab of the prerequisite.

Please let me know if there is anything else I can help you with.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kylec
Posts: 22
Joined: Thu Jan 29, 2015 9:59 pm

Re: Uninstall 3rd party exe using MSI from EXE project

Dan,

Thank you for your reply. I've managed to find a registry key that can be removed so that the EXE is not listed in the add/remove programs. The EXE uses its own NSIS uninstaller for removal and is unaffected by the removal of the registry key.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall 3rd party exe using MSI from EXE project

Hi Kyle,

I'm glad you find a way to remove the programs and features list entry of the related .EXE.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”