?
Solved

Disable MSI auto-repair - how to?

Posted on 2004-04-21
1
Medium Priority
?
2,776 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
[X]
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
1 Comment
 
LVL 3

Accepted Solution

by:
Barkis_ earned 500 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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 …
Simple Linear Regression

718 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