AnypadDev
Posts: 3
Joined: Tue Nov 03, 2020 6:54 am

MSI - Custom Action - Fixed Filename for Attached PowerShell Script

Tue Nov 03, 2020 7:12 am

Hi,

We are using "PowerShellPostInstall" custom action, attaching a ps1 script, to run some logic and file I/O after installation. When Advanced Installer reaches this step, it will write ps1 files (the attached script and another script for preparing functions AI_GetMsiProperty, AI_SetMsiProperty) into the %TEMP%. However, we found that it is writing ps1 files with random names pss{random}.ps1.

Is there a way to make Advanced Installer use a fixed name when writing these files to %TEMP%? We have a client that needs to whitelist ps1 files being executed so a random name for each execution won't work.

[edit] Alternatively, is it possible to sign these files instead?

Software Version: 16.4.1
Edition: Professional

Thanks

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

Re: MSI - Custom Action - Fixed Filename for Attached PowerShell Script

Mon Nov 09, 2020 6:33 pm

Hello and welcome to our forums,
Is there a way to make Advanced Installer use a fixed name when writing these files to %TEMP%?
Unfortunately, I'm afraid I am not aware of any way of doing so.
Alternatively, is it possible to sign these files instead?
We have recently added support for signing your PowerShell files in version 17.1 of Advanced Installer.

Hope this helps!

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

Return to “Building Installers”