how to disable auto repair of msi when shortcut clicked

M

MJB

I'm using Visual Studio 2005 and I have built an msi using the built in
setup project. My application installs fine, but on install the
application itself runs a few configuration scripts which alter the
original contents of the directory. The next time you start the
application by clicking the shortcut the MSI automatically tries to
repair/restore the install back to the out of the box configuration.
Any idea how to turn this feature off?

TIA,
Matt
 
P

Phil Wilson

You can never fully turn this feature off because it's built into the MSI
behavior. Unfortunately a lot of installation designs are unaware of this
behavior. You can get close by editing the MSI file with Orca from the
Windows SDK - add the property DISABLEADVTSHORTCUTS (case sensitive) to the
Property table with a value of 1 - but if Windows does a repair for some
other reason than a shortcut or the user does a Repair you'll get the same
repair going on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top