hsc
Posts: 112
Joined: Wed Mar 02, 2016 2:55 pm

AI_AIP_FOLDER isn't resolved - sometimes

Hi,
I have the following problem: [|AI_AIP_FOLDER] is resolved to an empty string - in just one out of many projects. I read a forum post which indicates that there was a bug which was fixed a long time ago - can it be that it has resurfaced?

My use case is code signing. I use the "Custom" tool setting, point the path to powershell.exe, and pass this command line:

Code: Select all

-NonInteractive -NoProfile -ExecutionPolicy Bypass -File [|AI_AIP_FOLDER]build\common\SignBinaries4.ps1 
I do this in many aip projects, and it has worked great so far, until I wanted to modify this one project.

For diagnosis, I changed the tool path to C:\Windows\System32\cmd.exe, and prepended the command line with "/k echo " so that I can inspect the generated command in Windows Task Manager. And it is true, while in one project the "-File" parameter starts with the directory where the aip file is, for the other project the path starts with "build\common".

I compared all project settings and found no differences. Looking through the revision history, I find that both aip files were created in 2019, only 3 hours apart. Currently, I am using AI version 23.4.

Thanks for your help.
Hans
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: AI_AIP_FOLDER isn't resolved - sometimes

Hello Hans,

I have tried testing this, but I'm afraid I was not able to reproduce the behavior on my end.

I have tested this via our post-build events where I call a PS1 script that resides near the AIP file and that worked on my end.

If possible, could you please provide a sample project where this reproduces and forward that to me so I can further test and investigate this?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 112
Joined: Wed Mar 02, 2016 2:55 pm

Re: AI_AIP_FOLDER isn't resolved - sometimes

Hello Catalin,

I emailed the project and some instructions on how to produce the problem to support at advancedinstaller dot com. Thanks for your message!

Best regards, Hans
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: AI_AIP_FOLDER isn't resolved - sometimes

Hello Hans,

Thank you for the provided files.

Let's continue this over the email thread until we reach a conclusion regarding this behavior.

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

Return to “Common Problems”