log information - Advanced Installer Community

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!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

log information

Hi Support,

Is it possible to log both the installation and uninstallation process information in to a single file? I want to set both the install log and uninstall log in the package. I have set the install log under the Media ->Bootstrapper -> MSI Command Line option. But I don't find the way to set the uninstall log file? how can I set it in the package only, so that default uninstall log will be created during uninstallation?

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: log information

Hello,

It is important to note that it is against good practice to leave junk data on a user's computer after uninstall (you are trying to leave an uninstall log behind).
Why are you trying to do this?

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: log information

HI Gabriel,

You have missunderstood my issue.

I want to create the uninstallation log along with the installation log. Where can I set the location of uninstallation log in the installer?

Regards
Sony
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: log information

Please reply soon...

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: log information

Hello,

I am afraid having the two logs merged into a single one is not supported by Windows Installer.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: log information

Hi Gabriel,

Then how can I set the uninstall log by default for my installer?

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: log information

Hello,

I am afraid Windows Installer does not support automatic uninstall logs. You will need to launch the uninstaller using a shortcut which starts it with the proper command line for creating a log, or by starting it directly from the command prompt.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: log information

Hi Gabriel,

Can you please give me more information regarding the below statement.

"You will need to launch the uninstaller using a shortcut which starts it with the proper command line for creating a log"

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: log information

Hi,

Simply create a shortcut to external file, set its target to

Code: Select all

msiexec.exe /x {YourProductCodeHere} /L*V log.txt
Optionally set an appropriate icon. Install the shortcut somewhere for the user to find and use it when uninstalling your product. Double-clicking the shortcut should initiate the uninstall process and also create a log of the uninstall.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”