We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

azzarok
Posts: 2
Joined: Sun Feb 07, 2016 3:04 am

Verify credentials on remote server

I want my installer to verify credentials supplied by the user on my web server. I looked around, and tried to figure out how to do it but I don't really get how Advanced Installer works.

What I'd like to do:
- Username/Password dialog
if the user press next, verify user information on http://example.com/auth.php?username=test&password=test (GET Request). (Creates a server-side token and client-side one, and verify if it matches. I'd like to do it in C# / C++, is it possible ?)
if the two tokens matches, continue installation otherwise cancel.

I've spent 2 hours trying to figure out Advanced Installer, I know I could execute a function from a native dll, but I don't have a clue on how I could interact with the installation form (I could make a bool that returns either true or false, but how can I do anything with that to continue/interrupt installation ?).

Otherwise, a simple login would do, if there's a way to do it without coding. I just want to prevent anyone to download it and install, but there is login required when you open the program even after installation.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Verify credentials on remote server

Hello and welcome to Advanced Installer forums,

In order to achieve this you can set a property if the two tokens matches. Then you can check to see if the property was set or not.

Please take a look on the Email ID validation forum thread which debates a similar subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”