MarcinBH
Posts: 1
Joined: Tue May 31, 2022 11:26 am

Powershell Custom Actions fail with 'noNewLine' message (on Windows Server 2012 R2)

After upgrading the AIP to 19.5 the installer created by AIP fails on Windows Server 2012 R2, with a custom action that uses PowerShell scripts with the following mesage in the log

PROPERTY CHANGE: Adding POWERSHELL_EXECUTION_LOG property. Its value is 'ERROR: A parameter cannot be found that matches parameter name 'noNewLine'.'.

The installer created in 19.5 does not complain about required PowerShell in a specific version.
The installer created in 19.4 works fine.
Installing WMI 5.1 on the machine solves that problem, but that should not be a required step.

Attached an example project that should show the issue. The requirement is that the installer must be executed in a WIndows Server 2012 R2 machine without any additional software.
Attachments
Project.aip
Project created in 19.5 with a custom PS action in the first Next button
(16.38 KiB) Downloaded 263 times
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Powershell Custom Actions fail with 'noNewLine' message (on Windows Server 2012 R2)

Hello Marcin and welcome to our forums,

We are already aware of this issue and our dev team has already fixed it.

If you do not want to wait until the release, I will forward the solution to you via email.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjblack@gmail.com
Posts: 36
Joined: Mon May 23, 2011 11:50 am

Re: Powershell Custom Actions fail with 'noNewLine' message (on Windows Server 2012 R2)

Hello,

That's good to hear, Is there a timescale for when the fix will be available?

Regards,
Sj
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Powershell Custom Actions fail with 'noNewLine' message (on Windows Server 2012 R2)

Hello Sj,

The fix will be available in our next release, scheduled towards the end of the next week.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Powershell Custom Actions fail with 'noNewLine' message (on Windows Server 2012 R2)

Hello,

This has been fixed in version 19.6 of Advanced Installer, released on June 23rd, 2022.

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

Return to “Common Problems”