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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 11/04/2008 by: AngelD
Red Belt

Please log in to comment
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?
Answered 11/05/2008 by: frodo
Orange Senior Belt

Please log in to comment
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?
Answered 11/05/2008 by: AngelD
Red Belt

Please log in to comment
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
Answered 11/09/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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.
Answered 11/10/2008 by: frodo
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity