twenty94470
Posts: 10
Joined: Wed Apr 06, 2016 4:41 pm

Uninstall additional packages

Hello,

I try to convert vlc.exe to a msi.
So the auto convert add Vlc.exe to "prerequisites" and " Post-install"
And i would like to organize the uninstall of this prerequisite when i uninstall the msi,
So I add in " uninstall using this command line " [ProgramFiles64Folder]VideoLAN\VLC\uninstall.exe "
I build the project and I install msi, it's ok, VLC works fine,

But when I want to uninstall the msi, vlc start to do an installation and not the command for uninstallation

Image

Image
My msi is already installed and now I choose uninstall

Image
The msi inderstand it's for uninstall

Image
Start install of vlc again, and not the uninstall command line

Image


It seems logical for me but it doesn't work
Do you have a solution ?

Best regards
twenty94470
Posts: 10
Joined: Wed Apr 06, 2016 4:41 pm

Re: Uninstall additional packages

Hi,

Ok i find, i create a custom action "Launch File" and call uninstall.exe, and i enable this custom action only on "execution stage condition Uninstall"
But i have another problem

Image
The msi and the convert exe is registred on "add and remove program"

As i see it's not a realy "convert" just a msi which launch an exe, I thinks it will be great, if there is an option to link the msi with the prerequisites, if the msi is uninstall, the prerequisites too, with her command line. and another option to not registrer the prerequisites on "add and remove program", to not have duplicate entry if it's a real convert ...

Best
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall additional packages

Hi,

Indeed, when the "Convert EXE to MSI" feature is used, that EXE is actually added as a post-install prerequisite to the MSI package. So, it is not necessary to register both the EXE and the MSI packages in the "Add/Remove Programs" list. It is easier to let only the EXE package be registered into that list and uncheck the "Register product with Windows Installer" option from the "Install Parameters" page, so that the MSI package will not be registered anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
twenty94470
Posts: 10
Joined: Wed Apr 06, 2016 4:41 pm

Re: Uninstall additional packages

Hello,

Ok but if we uncheck the "Register product with Windows Installer" SCCM will not know if the msi is installed, we need to add other "detection method" and add uninstall command line too :/ At the end the convert to msi is useless
The best way will be to not register the convert Exe in "Add/Remove Programs" and let msi to be managed by SCCM.

Best,
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall additional packages

Hi,

I'm afraid that it is not possible to register the converted EXE package using the "Convert EXE to MSI" method. In order to have only an MSI instead of an EXE package, you can repackage that EXE as described in the "Repackaging an existing installation" tutorial.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”