m.gut
Posts: 4
Joined: Tue Oct 23, 2007 3:21 pm
Location: Germany BW
Contact: ICQ Website

Kepp file in MSI for Uninstall custom action / not APPDIR

Hello forum,
i am creating a setup MSI file to deploy a .NET 2.0 program.

Installation works fine.

For the Uninstallation i need to run a special program (*.exe) BEFORE the uninstallation progress starts.
So i defined a custom action in the "Begin" section, with the condition
"(REMOVE="ALL"), so it will only start when an uninstallation is in progress.

Is it possible to keep the PreUninstall.EXE file inside the MSI-File, so that it won´t be copied into the APPDIR, but it can be used during the uninstallation ?

I´d be glad if anybody can help me.

best regards
M.Gut
Germany
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Windows Installer uses the cache to uninstall an application, therefore the original MSI is not used.

If you don't want to install PreUninstall.EXE in the application folder you can add it as an Attached Custom Action. This way the executable will be integrated into the MSI and will not be installed in the application folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”