glumesc

January 10, 2011

Verbose logging during install/uninstall

Filed under: Development — steve @ 11:35 am

From my experience it can be quite painful to workout why an application fails to install or uninstall.  This is particularly the case when the custom actions are the point of failure.

The following page lists some approaches to debugging custom actions (see the “How do I debug a custom action/installer class?” section), however it took me fair amount of digging before I came across this nugget: running the msiexec from the command line allows you to turn on verbose logging of the install/uninstall process.  For example, the following will produce a verbose log of the uninstall process:

msiexec /x {Product Code} /l*vx somefile.log

The log file is, obviously, very detailed, however it does at least allow you to check whether, for example, a custom action is being called or not.

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.