the_akshat
Posts: 8
Joined: Fri Nov 13, 2015 10:54 am

Uninstaller with Dynamic Passoword

Hi!
I want to deploy my application on different users and want to have password verified before uninstallation.

I have followed topic at http://www.advancedinstaller.com/forums ... hp?t=12476 but that does not solve my purpose as my requirement varies in the fact the password should be different for different users.

I am looking for a way where the application will be installed with common password password for uninstallation. And later on when application will contact my server, this password should change. How to do it?

If this is not possible, then what is the alternative?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstaller with Dynamic Passoword

Hi and welcome to Advanced Installer forums.

I'm afraid I don't fully understand what is your scenario. Can you give us more details about your scenario (maybe exemplify)?

If you want to set different passwords during the installation or uninstallation of the application, you can add an "Edit Box" control on one of your dialogs where the user can type the password. The password will be stored in the property related to that edit box, so you can use that property where you need it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
the_akshat
Posts: 8
Joined: Fri Nov 13, 2015 10:54 am

Re: Uninstaller with Dynamic Passoword

Hi!
Thanks for the reply.

What I want to achieve is different uninstall password for different machines/users.
For user 1, uninstall password = UP1
For user 2, uninstall password = UP2
For user 3, uninstall password = UP3
.
.
.
For user 999, uninstall password = UP999
For user 1000, uninstall password = UP1000

By default all UP1, UP2, ... UP1000 will be same as DEFAULT_UP
But later on after contacting server, all these UPs should be changed.


One option will be to have different installers for different machines, but this is not practically possible in the scale of 1000 users or more. Besides, if I want to later on change password for a machine then it will not be possible.

By the dialog box that you mentioned, I will be getting the password (P1) entered by the user but how to compare it with the specific uninstall password (UP1) for that user. I mean where will that password(UP1) be stored.

Then how can I change UP1 by contacting to some server?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstaller with Dynamic Passoword

Hi,

Can you please tell me where do you need to use those passwords? How do you try to submit them to the servers during the installation/uninstallation of your product?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
the_akshat
Posts: 8
Joined: Fri Nov 13, 2015 10:54 am

Re: Uninstaller with Dynamic Passoword

I want passwords to be used during uninstallation.

For security reasons, I want different passwords for every user.

How to achieve it?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstaller with Dynamic Passoword

Hi,

I'm afraid that we do not have predefined support for this. However, you can create your own custom action (C# custom action for example), which will prompt the user to input the password during the uninstall and will compare it with the server password.

In case the passwords do not match the custom action will return an error code which will stop the installation. The custom action should be placed in the "Install Execution Stage" section from the "Custom Actions" page of your project.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
the_akshat
Posts: 8
Joined: Fri Nov 13, 2015 10:54 am

Re: Uninstaller with Dynamic Passoword

Custom action will be stored as dll on user pc.

What will happen if dll file is deleted?

What will happen if dll file is replaced by someother dll file? Can advance installer force for file integrity check also during uninstallation ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstaller with Dynamic Passoword

Hi,

In order to avoid the problems you described, you can add the DLL file in your package using the "Call function from attached native DLL" custom action. In this case the file will be embedded in the package as a binary file, so it won't be copied on the machine and the user will not be able to delete or modify it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
the_akshat
Posts: 8
Joined: Fri Nov 13, 2015 10:54 am

Re: Uninstaller with Dynamic Passoword

Will this work for UNinstall too... from Control Panel ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstaller with Dynamic Passoword

Hi,

Yes, this will work when uninstalled from Control Panel, too.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
the_akshat
Posts: 8
Joined: Fri Nov 13, 2015 10:54 am

Re: Uninstaller with Dynamic Passoword

If I use "Inline script" during uninstall, where is this script stored? Can it be edited later?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstaller with Dynamic Passoword

The "Inline script" code is stored as text in the package and it cannot be edited during the uninstall.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”