Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Disable MSI auto-repair - how to?

Posted on 2004-04-21
1
2,644 Views
Last Modified: 2013-11-14
Currently experiencing difficulties when an application MSI patch is installed onto an existing application. If there is a shared .DLL file then the prior installed application will try and auto-repair as its detects that the required file has changed. Is there any way to turn off this feature of MSI? I want to do it on a per-package basis, not via Group Policy. My only other option is to re-package the applications with the .DLL files etc. installed into the local directory as opposed to System32 thus negating the possibility of a file conflict as every application will have their required files. However, this is undesirable as it would mean a lot of new work and revisiting previously finished tasks.

I appreciate that this is something of a strange request as auto-repair is a key feature of MSI.

Thanks!
0
Comment
Question by:Brit_Pack
1 Comment
 
LVL 3

Accepted Solution

by:
Barkis_ earned 125 total points
ID: 10886679
Installing an application with the command line
msiexec.exe  /i yourapp.msi DISABLEADVTSHORTCUTS=1
would prevent it to repair itself when clicking the shortcut in the startmenu.
and setting the property ARPNOREPAIR=1 on the commandline will remove (disable) the repair button in ARP(add remove programs)

but there is no way of disabling the repair function for the WindowsInstaller altogether.

The only way to get rid of all possible selfrepair functionality is to repackage all appliacations
and removing the keypath for all components (for the components installing into System32).

It is a fairly time consuming project but it isn't that hard. The easiest way would be to apply a mst (transform file) to
all applications installating files into the system23 folder.

/Barkis_
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question