/build/static/layout/Breadcrumb_cap_w.png

Disabling Repair

hi guys,
I have sorted the add remove program properties so that a user cannot instigate a repair.
However i am interested to know if i can disable the repair for sure!
How can I make sure that a repair will do nothing even if it is via ARP or a msiexec command line or otherwise.

I know this is not best practice but i am just interested.

0 Comments   [ + ] Show comments

Answers (5)

Posted by: AngelD 15 years ago
Red Belt
0
You could set the Windows Installer DisableMSI policy, that would prevent any Windows Installer "action" and not just a repair.
http://msdn.microsoft.com/en-us/library/aa368304(VS.85).aspx
Posted by: frodo 15 years ago
Orange Senior Belt
0
thx AngelD, good point. however let me be more specific. I only want to disable repair for X.msi and i want to add this prevention when i am creating the msi. any ideas?
Posted by: AngelD 15 years ago
Red Belt
0
The only way to prevent a repair of a component in X.msi is to remove the Component.ComponentId column value for that component.
Have in mind that this will prevent Windows Installer to uninstall the component as it will not be stated as installed.

May I asked why you would want this?
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
frodo you seem to be doing alot of strange things like this in your other posts as well. whos advising you to do such things.

you can also remove any entry points into the application, or set a property of DISABLEADVERTISEDSHORTCUTS
Posted by: frodo 15 years ago
Orange Senior Belt
0
hi guys, I know it is a weird request and you are right i do some weird stuff! its a long story and def not my idea. Politics is the only word i can use.
anyway thx again.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ