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!

elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Powershell substitution for Properties do not mask parenthesis

Hello,
I'm using the Powershell Script custom action from Advanced Installer to execute a script after the installation has been done.
Bei retrieving the APPDIR Property I'm always becoming an empty value.
In the install.log File I can see that the property has correctly been set:

Code: Select all

MSI (c) (6C:30) [11:41:44:436]: PROPERTY CHANGE: Adding APPDIR property. Its value is 'C:\Program Files (x86)\easySoft. GmbH\easySoft. Education'.
in the Powershell I access the Property with:

Code: Select all

Write-Host "APPDIR=$(AI_GetMsiProperty APPDIR)"
, which return an empty value.

Accessing another Property which has been defined as defined as file identifier succeed, but most of properties not.

Is this a bug or am I missing something?

SOLVED:
I could solve this issue:
the Properties are not correctly read from any CmdLet used in the referenced ps1 file, but retrieving the properties directly from the called Skript succeed.
This probably not an AI issue. Just strange that not all properties are concerned.. :?

Regards, Éric.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Powershell substitution for Properties do not mask parenthesis

Hello Éric,

I've tested the scenario but I cannot replicate the behavior. Could 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?

It will be very useful if you could isolate the behavior in a small buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”