/build/static/layout/Breadcrumb_cap_w.png

Asking for a password while uninstalling

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

Answers (4)

Posted by: siberian 19 years ago
Senior Yellow Belt
0
Any suggestion?
Posted by: bkelly 19 years ago
Red Belt
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!
Posted by: siberian 19 years ago
Senior Yellow Belt
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?
Posted by: siberian 19 years ago
Senior Yellow Belt
0
Well
Just to say that I have created a custom action with condition "REMOVE=ALL" to resolve the problem.
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