Solved

Disable MSI auto-repair - how to?

Posted on 2004-04-21
1
2,576 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now