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.
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)
Please log in to answer
Posted by:
bkelly
19 years ago
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!
Let us know how you decide to handle this!
Posted by:
siberian
19 years ago
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?
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.