473,420 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

how to disable auto repair of msi when shortcut clicked

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

Dec 23 '05 #1
2 6756
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.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"MJB" <mb*@email.com> wrote in message
news:ud***************@TK2MSFTNGP15.phx.gbl...

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

Dec 23 '05 #2
MJB
Thanks Phil I'll give it a try.

Phil Wilson wrote:
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.

Dec 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ben | last post by:
I've got an asp page that populates a listbox with info from a db. The list box ends up being pretty big, so I want to be able to search it effectively. I like the method wherein the user types...
4
by: Roeland | last post by:
Hello, I added in my (MSI) installer project an advertisable shortcut, that automatically repairs the installation when something is corrupted. It would be more fine to have a normal shortcut,...
4
by: Arno R | last post by:
Since I have seen Tony T. around the last week I thought I'll try once more ;-) Hi all, I still have clients with apps running on Access 2.0 It would be nice if I could use the Auto FE...
0
by: Marcel | last post by:
Hi, the application I am writing has a MainMenu and a DataGrid (UltraGrid). Now I have to edit the text of each cell in this grid. So far so good. All works fine in editmode but if I press a...
0
by: gl | last post by:
I'm currently using the old appudater util from asp.net, however this is very similar to the updater application block offered by microsoft. Basically, I set up a folder structure using a setup and...
9
by: junlia | last post by:
Does anyone how how can we disable the auto-postback feature in asp.net page? I have to use a server side control in the page, but the auto post back feature in it causes problems for me. Please...
3
by: Stilgar[bbs.isca.uiowa.edu] | last post by:
Here's my newbie question: I have several VB forms which are all inherit a standard template form that I made. In my template form, I added a menu bar with some generic cut, copy, and paste...
1
by: ComputerGuyCJ | last post by:
I have an application that I've used click-once deployment to publish out to a shared network path. From there I installed the app on a few client machines, including my own. Since then I published...
3
by: voroojak | last post by:
hi I have a such abig problem. i have to disable the shortcut keys (table, query, report, .....) except form. the user should just be able to open form and all other the shortcut should be disable....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.