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

Signing tool path

Hi,

I am using a home-made tool (actually a powershell script) for code signing. In the aip file -> Digital signature -> Settings, I set "sign tool" to "custom", and browsed to the powershell.exe to fill in the "path" field. This now reads "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe".

The aip file is also on C: but nowhere near C:\Windows\System32.

When I take this project to our CI/CD system where the project is on drive D:, Advanced Installer wants to start powershell.exe from D:\Windows\System32\WindowsPowerShell\v1.0. Needless to say that this directory doesn't exist.

How can I mark the tool path as an absolute path without making all paths absolute (which would destroy the project)? Or, as an alternative: How can I make Advanced Installer search powershell.exe along the PATH variable?

Thanks, Hans
Catalin
Posts: 7717
Joined: Wed Jun 13, 2018 7:49 am

Re: Signing tool path

Hello Hans,

If you use PowerShell to build your project in the CI/CD system, then we can use PowerShell to set the correct path (e.g. by using env variables instead of hard coding the path).

Here is a thread that discusses a similar issue:

Custom Tool for Digital Signing

Could you please have a look over that and let me know if either solutions (mine or the user's) would work for you?

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

Return to “Common Problems”