tserg
Posts: 7
Joined: Wed Oct 06, 2021 5:22 pm

AI_GetMsiProperty returns empty result

hello,

i have an installer which works pretty well usually. At some step it asks user for credential and does a check. It looks into AD and does other stuff. There is one system which does not allow powershell custom action to retrieve user name:

=== code ===
$userName = AI_GetMsiProperty USER_NAME
$userPassword = AI_GetMsiProperty USER_PASSWORD
Write-Output ( Get-Date ) "check whether ""$userName"" exists in AD"
===

leads to
=== log output ===
check whether "" exists in AD
===

USER_NAME and PASSWORD are attached to standard LogonInformationDlg

please let me know if there is anything obvious to check. I have limited access to this system, so need to prepare well.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: AI_GetMsiProperty returns empty result

Hello,

Are you sure that there was something input in the EditBox control?

If so, then the PowerShell script should have returned the correct string for the USER_NAME property.

It would help if we could check an installation log (verbose) from that machine.

The only scenario I can think of would be if the custom action is scheduled to run on "deferred" stage, without passing the properties to the "Parameter Values" field.

How to access installer properties from deferred custom actions

But considering you mentioned this only doesn't work on a single machine, I don't think this would be the case.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tserg
Posts: 7
Joined: Wed Oct 06, 2021 5:22 pm

Re: AI_GetMsiProperty returns empty result

Catalin,

i was told they put credential in the boxes, also i can see log entries telling me so.
this custom action is attached to UI trigger and usually works well.
could you share an address to where i can send the log?

upd
we addressed this issue with using another machine.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: AI_GetMsiProperty returns empty result

Hello,

You can share the resources by email at support at advancedinstaller dot com.
upd
we addressed this issue with using another machine.
Note quite sure I understand this, is the issue resolved?

If so, we can consider this ticket closed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tserg
Posts: 7
Joined: Wed Oct 06, 2021 5:22 pm

Re: AI_GetMsiProperty returns empty result

Catalin,

thank you. I think this issue is resolved for now.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: AI_GetMsiProperty returns empty result

You are always welcome!

Glad to hear the issue is resolved now. :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”