how to disable auto repair of msi when shortcut clicked

  • Thread starter Thread starter MJB
  • Start date Start date
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
 
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.
 
Back
Top