Hi
My applcation uses username/password. I have built a MSI package for it.
I want to make sure that only the user who knows administration password can uninstall it.
That is, asking for adminitration password when some try to uninstall it.
What can I do?
Thanks.
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
Any suggestion?
Answered 06/29/2005 by: siberian
Senior Yellow Belt

Please log in to comment
0
The solution would involve writing a custom action to prompt for the password if the package were being removed, if the password were wrong- you would abort the removal. Protecting your password may require hiding your custom action code in a DLL- you may be better off basing success on group membership instead. The closest thing to a quick answer here may be this: http://desktopengineertraining.com/msirestrictrun it is designed to restrict execution of an MSI (not removal) but the principal is the same- it should at least set you in the right direction.

Let us know how you decide to handle this!
Answered 06/29/2005 by: bkelly
Red Belt

Please log in to comment
0
It seems that I cannot use it(MSI Restrict Run) to prevent somebody from uninstalling my application?
I have look at custom actions. But can a custom action cancle unistallation?
I try custom actions in a deploy project of VS.NET. But it seems that custom actions are triggered AFTER install/uninstall?
May be I need Orca?
Answered 06/29/2005 by: siberian
Senior Yellow Belt

Please log in to comment
0
Well
Just to say that I have created a custom action with condition "REMOVE=ALL" to resolve the problem.
Answered 07/07/2005 by: siberian
Senior Yellow Belt

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