Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / December 2005

Tip: Looking for answers? Try searching our database.

how to disable auto repair of msi when shortcut clicked

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MJB - 23 Dec 2005 16:44 GMT
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
Phil Wilson - 23 Dec 2005 19:53 GMT
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.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> 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
[quoted text clipped - 6 lines]
> TIA,
> Matt
MJB - 28 Dec 2005 14:34 GMT
Thanks Phil I'll give it a try.

> 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
[quoted text clipped - 3 lines]
> other reason than a shortcut or the user does a Repair you'll get the same
> repair going on.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.