/i disappears when I input properties from command line - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

guybrush
Posts: 1
Joined: Tue Jan 22, 2013 4:06 am

/i disappears when I input properties from command line

I made an installer program that generated a configuration file during installation. The properties of the configuration file were decided by user input via dialogues and written into the file. There was no problem on generating the file via normal install with GUI. The problem is that the configuration file was not properly generated during silent install. To perform a silent install, I ran the command like below.

installer.exe /quiet PROP_1=www.example.com PROP_2=hello.world PROP_3=latest/instance-id

Expected result should be written to the config file like below.
URL=www.example.com
MESSAGE=hello.world
METADATA=latest/instance-id

What really written to the file was as below.
URL=www.example.com
MESSAGE=hello.world
METADATA=latestnstance-id

As you see, /i was disappeared. Even when I added quotes and backslashes, the result was not as I expected. When I configured the property as iron/iron/iron/iron, the result was ironronronron.

I use Advanced Installer 9.4 Enterprise Edition. This was tested in Windows 2003 R2 Server 32bit and Windows 2008 R2 Server 64bit.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: /i disappears when I input properties from command line

Hi and welcome to Advanced Installer forum.

Thank you for your interest in Advanced Installer.

The "/i" combination of characters inside your "latest/instance-id" string is interpreted by the EXE bootstrapper as the one inside the "msiexec.exe /i <path_to_msi>" command and it is removed from your string.

You can try to use something like "PROP_3=latest//iinstance-id". In this case the middle "/i" combination will be removed and the string will contain exactly what you need.

You can also take a look on the EXE setup file article.

Let us know if this helped, otherwise give us more details about your scenario.

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

Return to “Common Problems”