473,804 Members | 3,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6778
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 DISABLEADVTSHOR TCUTS (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.co m> wrote in message
news:ud******** *******@TK2MSFT NGP15.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 DISABLEADVTSHOR TCUTS (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
2338
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 the letters of the word they are looking for from within the listbox and the control automatically scrolls to the item matching the chars they have typed thus far. Example:
4
365
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, but I understood that this is not possible without using Orca. My installation project contains a custom action to start the application after installation. However, now when I start the application with the advertisable shortcut (and there is...
4
1544
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 Utility for at least one of them Anybody tried the Auto FE Utility from Tony Toews with Access 2.0 ? What's wrong: Access 2.0 starts allright, but with messagebox Can't find "xxx.mdb"
0
2797
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 key which is also a shortcut it doesn´t work and the menuitem-clickevent will be performed.
0
1507
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 deployment project that mimics the folder version setup of the update block. Then i install the program and the basic idea is that any msi will automatically update to our version on the server (since it installs to a directory with the appstart...
9
24173
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 help! Thanks much, Junlia
3
6690
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 functionality. I'd like to have the paste button disabled when the clipboard is empty, but I'm not sure how I should do this. Ideally, I suppose I'd like to constantly monitor the clipboard for data, (in a thread?) but I'm not even sure how I'd...
1
2121
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 a few updates that were recognized by the app, and the users installed them, so everyone's on the most current version. A couple of glitches are now showing up. 1. One of my users received a prompt when she opened up the app that there is a...
3
2597
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. i have one more problem and that is i want to disable my total field. i eman teh user cant enter any data in total fields. my total field is working under save buttom. i mean when i press teh save buttom it will calculate the total. it is working...
0
9572
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10303
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10070
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.