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

[APPDIR] empty on PowerShell Inline Script

Sat Mar 25, 2023 12:05 am

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: 6540
Joined: Wed Jun 13, 2018 7:49 am

Re: [APPDIR] empty on PowerShell Inline Script

Mon Mar 27, 2023 3:59 pm

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”