CheckIfUserExists not working anymore - Advanced Installer Community
413X
Posts: 11
Joined: Wed Jun 13, 2018 9:46 am

CheckIfUserExists not working anymore

Hello

I previously had my project in Advanced installer 10.3 and in Windows 7. Now I've updated to latest and in Windows 10. My CheckIfUserExists took a property

name: [MYDEFINED_USER_NAME]

and then in the next custom action:
ErrorMessage_UserExists as a "Display Error Message" custom action.

With the message defined: [Custom_defined_error_message]
Condition: AI_USER_EXISTS = "No"

Currently it always return No or as if the user does not exists (even though it does). What has changed? Why has it stopped working?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: CheckIfUserExists not working anymore

Hello,

If you are testing a local user account please make sure you leave the "Domain" field empty.

If this is still of no help to you, then can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
413X
Posts: 11
Joined: Wed Jun 13, 2018 9:46 am

Re: CheckIfUserExists not working anymore

Solved it by adding the USER_NAME and USER_PASSWORD properties as they are hardcoded as a return value of the function. Strange that it worked before the updates.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: CheckIfUserExists not working anymore

Hello,

I am glad you got this working by yourself.

You can have a look on the "CheckIfUserExists action" thread in which I have explained this.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”