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'.Code: Select all
Write-Host "APPDIR=$(AI_GetMsiProperty APPDIR)"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.
FOLLOW US
Get the latest news in Application Packaging