Emmett_Brown
Posts: 4
Joined: Thu Jun 25, 2009 12:45 pm

How to enable uninstall logging?

I have been searching for a solution and I have seen similar topic but the answer was not relevant in my case. Can I force MSI to log to a certain file during uninstall so when a user choose to uninstall from the control panel MSI uses the specified log file?
I modified UninstallString under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MyAppGuid} but it did not work. Even after I delete UninstallString value MSI appears to know how to remove my app.
As I type in cmd msiexec /lv path_to_log /x {MyAppGuid} it works just as I want.
Regards

Emmett
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to enable uninstall logging?

Hi Emmett,

I'm afraid that this is not supported by Windows Installer. An uninstall log can be created like this:
1) Use an uninstall shortcut which has the logging parameters in it's arguments. With this approach you can specify the location and name of the log.
2) Use the Windows Installer logging policy. This way a log will be created automatically.

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

Return to “Common Problems”