Silent install is not resolving properites - 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!

Jimmie
Posts: 8
Joined: Fri Apr 25, 2008 3:02 pm

Silent install is not resolving properites

I have an install for a client application with additional folder browse dialogs added to define the location of a server directory and a projects directory. When I manually execute the resulting MSI everything works fine. The additional paths are stored in the registry and environment variables as needed.

When I execute the same MIS silently from the command prompt (passing the property values in the command) the registry and environment variables are not set to the values passed.
This is an example of the string used to execute the silent install:
Msiexec /i \\servername\sharename\ FDOT2010Client.msi /qn APPDIR=c:\FDOT2010\ SERV=\\servername\lanshare\fdot2010\ PROJ=c:\e\projects\

I must be missing something simple because I have gotten this to work with other MSIs. Any assistance would be greatly appreciated.

I have attached the AIP below:
FDOT2010Client.aip
(46.34 KiB) Downloaded 240 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Silent install is not resolving properites

Hi,

Please note that property values are treated as strings, so they should be enclosed in quotes. The correct command line is:

Code: Select all

Msiexec /i \\servername\sharename\FDOT2010Client.msi /qn APPDIR="c:\FDOT2010" SERV="\\servername\lanshare\fdot2010" PROJ="c:\e\projects"
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jimmie
Posts: 8
Joined: Fri Apr 25, 2008 3:02 pm

Re: Silent install is not resolving properites

Thanks for the reply but, I have tried it with and without quotes and I get the same results. The property values passed in the command string are not being used. The default value of the properties defined on the Install Parameters are being used.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Silent install is not resolving properites

Hi,

Can you please send us the .AIP (project) file you are using and a verbose log of the problematic installation to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Silent install is not resolving properites

Hi Jimmie,

The properties SERV and PROJ have the default values because you reset them with the custom actions created by you in the Custom Actions page.
If you delete those four custom actions the properties will remain with the values set from the command line.

The property APPDIR has the value from the command line set too.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jimmie
Posts: 8
Joined: Fri Apr 25, 2008 3:02 pm

Re: Silent install is not resolving properites

Thanks, that worked.

I put the custom actions in there based on the instructions in the Help on How to browse for a folder at install time.

Return to “Common Problems”