Issue with "CheckIfUserExists" Custom Action - Advanced Installer Community
gravitycake
Posts: 1
Joined: Thu Jul 21, 2022 6:52 am

Issue with "CheckIfUserExists" Custom Action

Hello!

I have had a look online but I am struggling to find an answer for my issue - hoping to get some assistance/guidance.

I have setup the "CheckIfUserExists" custom action and attached it to the "Next" button in our installer. During setup of our application, the user provides their domain, username and password. I would like to validate the credentials before the installation continues. I am, however, struggling with the validation part.

These screenshots were taken using an application I found elsewhere in these forums. I used it to test against our application's installer (and the interface is prettier than the mess I have created). The functionality of the buttons remains the same in both.

Scenario 1: Providing the domain, username and password.
Outcome 1: AI_USER_EXISTS = No ; AI_USER_VALID_PASSWORD = [blank]

Image
Image

Scenario 2: Providing the username and password only.
Outcome 2: AI_USER_EXISTS = Yes ; AI_USER_VALID_PASSWORD = YES

Image
Image

For both scenario 1 and 2: Image

I thought to try altering the CheckIfUserExists as follows:

Image

Though this time, both with and without the domain being provided returned AI_USER_EXISTS = No ; AI_USER_VALID_PASSWORD = [blank].

I require the domain name to be present, it is not an option to leave it out (the credentials are later passed into an IIS application pool). May I please get some assistance with this?

Thank you in advance!
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Issue with "CheckIfUserExists" Custom Action

Hello and welcome to our forums,

I'm not sure why this happens.

Can you please send us the .AIP (setup project) file by email to support at advancedinstaller dot com so we can review its settings?

Also, attached you can find a sample project. You can have a look on it and see if that helps you.

Best regards,
Liviu
Attachments
sample.aip
(16.73 KiB) Downloaded 142 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”