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!

leeroy
Posts: 41
Joined: Mon May 03, 2021 11:13 pm

[APPDIR] empty on PowerShell Inline Script

This is related to viewtopic.php?f=5&t=51318

We have an inline powershell script that needs to check the install directory for a previous file and we are passing in [APPDIR] as a parameter value and this script is set to run after the Paths Resolution of the Wizard Dialog Stage, but it is always blank.

Image
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: [APPDIR] empty on PowerShell Inline Script

Hello,

Please note that in order for you to retrieve the value of APPDIR, you should set it like this in the "Parameters Values" field:

Code: Select all

-appDir "[APPDIR]"
and then input $appDir as a "Param()"

Hope this helps!

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

Return to “Building Installers”