rmugione7
Posts: 16
Joined: Wed Oct 16, 2019 5:38 pm

Pre-Install package command line arguments with char "!"

Hi
I'm reporting an issue with come arguments passed as a Command Line for a Pre-Install package.

I have a password to be passed as so: /PW=aa!bbb!ccc
The real value passed is /PW=aaccc
The part !bbb! is removed.
Same thing if a use /PW=aa[\!]bbb[\!]ccc

Note that as Feature Based works fine with /PW=aa[\!]bbb[\!]ccc
In Advanced Installer UI for the project I see the [\!] in red color only when is a Feature Based.
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Pre-Install package command line arguments with char "!"

Hello,

I have done some tests on our end and I was indeed able to reproduce the described behavior.

Unfortunately, I can not really say why this is happening nor was I able to find a workaround for this beside the one presented by you (to add the prerequisite as a feature-based prerequisite).

I have forwarded this to our development team for further investigation and hopefully a fix will be available in a future version of Advanced Installer.

Thank you for bringing this to our attention!
Note that as Feature Based works fine with /PW=aa[\!]bbb[\!]ccc
Please note that, when the prerequisite is added as a feature-based prerequisite, you can simply pass the property normally, e.g.:

Code: Select all

PW=aa!bbb!ccc
In Advanced Installer UI for the project I see the [\!] in red color only when is a Feature Based.
The character is displayed in the red color because, by default, Windows Installer properties are enclosed between the "[]" characters.

It is shown in red for the "feature-based" prerequisite because, during the time pre-install prerequisites are installed, Windows Installer properties (the one from the main package) are not available.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rmugione7
Posts: 16
Joined: Wed Oct 16, 2019 5:38 pm

Re: Pre-Install package command line arguments with char "!"

Thanks.

I found a way to avoid passing the password.

Wayting for the fix.

Regards
Ricardo
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Pre-Install package command line arguments with char "!"

You are always welcome, Ricardo!

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

Re: Pre-Install package command line arguments with char "!"

Hello Ricardo,

This has been fixed in version 18.0 of Advanced Installer, released on February 22nd, 2021.

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

Return to “Common Problems”