views:

206

answers:

3

I am making an installer using Inno Setup. I want to password protect the uninstallation. So my plan is to ask for the uninstallation password during installation, and save it into a file. While uninstalling, ask for the password from user and compare the passwords.

I could not find a way to let the user enter the password while uninstalling, is there any?

A: 

This is rather an advanced topic (I think). At least, I don't know the answer, and since no one else is answering it ....

I would suggest asking this question in the news group of innosetup:

news://news.jrsoftware.org/jrsoftware.innosetup

Please, if you receive an answer in the news group, post the result here.

edit: SO doesn't seem to have parsed the "news:" link so try http://www.jrsoftware.org/newsgroups.php

Edelcom
Sure... I will do that......
Navaneeth
Navaneeth
A: 

Password protecting uninstallations doesnt work, since the user can simply manually delete your files. This means there's indeed no built in option in Inno Setup to do this.

If you want to attempt this anyway you could use an InitializeUninstall event function to ask the user for a password and return False on mismatch. This will abort the uninstaller.

mlaan
I could not find a way to let the user enter the password while uninstalling.(i tried to use CreateInputQueryPage but it was giving error).How to take the input from user while uninstalling ?
Navaneeth
A: 

You can check for the "CheckPassword" function in the Inno Setup help.

Hps