Feature-based prerequisite MSI with empty properties in the command line - Advanced Installer Community
rmoc
Posts: 72
Joined: Tue Mar 14, 2017 8:27 pm

Feature-based prerequisite MSI with empty properties in the command line

I use the following command line to install a Feature-based prerequisite MSI.

/qb ALLUSERS=[ALLUSERS] ADDLOCAL=ALL APPDIR="[APPDIR]\myapp" SERVICE_USERNAME="[DOMAIN_NAME]\[USER_NAME]" SERVICE_PASSWORD="[USER_PASSWORD]" SERVER_IP="[FTS_SERVER_IP]" KEY_PASSWORD="[FTS_KEY_PASSWORD]" SOLR_PORT="[FTS_PORT]" CERTIFICATE_FILENAME="[FTS_CERTIFICATE_FILENAME]" /l*v msilog.txt

The property FTS_CERTIFICATE_FILENAME is optional and can be empty. I checked the MSI - logfile and find following entry:

MSI (s) (F0:90) [20:45:08:535]: Command Line: ALLUSERS=1 ADDLOCAL=ALL APPDIR=C:\Program Files (x86)\myapp SERVICE_USERNAME=mydomain\myuser SERVICE_PASSWORD=********** SERVER_IP=localhost KEY_PASSWORD=********** SOLR_PORT=3128 CERTIFICATE_FILENAME=CURRENTDIRECTORY="C:\Windows\system32" CLIENTUILEVEL=2 CLIENTPROCESSID=4204

I think they hang additional parameters without inserting a blank. How can I pass an empty property to the MSI package?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature-based prerequisite MSI with empty properties in the command line

Hi,

In order to get rid of this problem you can enclose your property along with its argument into curly brackets ({ }). For example, in your case you will write them as follows: {CERTIFICATE_FILENAME="[FTS_CERTIFICATE_FILENAME]"}

Let me know if this worked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rmoc
Posts: 72
Joined: Tue Mar 14, 2017 8:27 pm

Re: Feature-based prerequisite MSI with empty properties in the command line

Hi Eusebiu,

works fine. Thank you. It's a good point for the documentation.

Kind regards,
rmoc
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature-based prerequisite MSI with empty properties in the command line

You're welcome. I'm glad it worked.

We will update our documentation regarding this. Thank you for the suggestion.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”