Silent install/deploy with parameters - 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!

dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Silent install/deploy with parameters

Hi there,

I am currently reviewing Advanced Installer Enterprise to use with several products that we develop. We need to silently deploy some of these to multiple machines however the Administrator should be able to specify registry key values that need to be added to each client. They will be the same for all clients but not every deployment. We do not want to build a new .msi for every deployment.

Can somebody point me in the right direction?

Thank you in advance.

Regards,

Dawie
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Silent install/deploy with parameters

Hi Dawie,

Thank you for your interest in Advanced Installer.

What you want to accomplish is very easy, all you need to do is to set conditions on components corespondent to the registry entries you create
Registry page from Advanced Installer. The component you can find in Organization page. To find the component of a registry key just select the key in the
Registry view and press F8.

Once you identified the component in the Organization page you will see in the right side page a "Condition" field. In this field you can use a public property as a
parameter. This property can then be very easily set from the command line, when you launch the setup silently.

For an easier start with our application I recommend our set of Tutorials and How To's.

Please let us know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

Wow!!! If this speedy reply is anything to go by, we will never have trouble with bad service from you guys. Thank you very much Bogdan.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Silent install/deploy with parameters

You're welcome Dawie. Always happy to help you.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

Hi there,

Another question on the same project. I can do a silent install with the following: msiexec /I "myproject.msi" SERVER=192.168.0.20 SERVER_PORT=4444 /quiet


How do I specify the same parameters when deploying it using Active Dir or even better, can I use a text file to specify these parameters when deploying it?

regards,

Dawie
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Silent install/deploy with parameters

Hi Dawie,

You can have the same command line as above when installing through GPO. Here is an article on how to deploy a .MSI through GPO.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

Thank you Mihai,

I have used that tutorial to do the deployment and it works fine, I just don't know how/where to add/specify the parameters?

regards,

Dawie
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Silent install/deploy with parameters

Hi Dawie,

After further investigation it seems you cannot specify any command line arguments when deploying a .MSI through GPO.

Instead, you can try to preset the properties in the .MSI from the very start or use a transform( .MST ) which sets the properties.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

:) thank you Mihai,

The route I've started on now is to make a .xml file with the necessary settings. I have created the new .msi that searches the xml and it works well when I do a normal installation, however when doing a silent install it fails. I am still trouble shooting and will post further questions if I can't find the problem.

Thank you for your efforts so far.

regards,

Dawie
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

Hi there,

I have now added an xml file that looks like this:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<SSO_SERVER_SETTINGS SSO_SERVER="192.168.0.18" SSO_PORT="1111"></SSO_SERVER_SETTINGS>
I also added an XML search that find this file in [sourcedir] and searches it for the SSO_SERVER and SSO_PORT and puts these values into SSO_SERVER and SSO_PORT respectively.

When I run the .msi it does the xml search and when the dialog that lets you enter these value comes up the values that came from the .xml are filled in the correct fields. After I finished the installation these values are not in the registry and the default values where filled out.

Any ideas?

regards,

Dawie
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

Think it was to do with property name. Got it sorted. Now I just have to test a deployment.
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

No luck.

The xml search works fine when doing a normal install but when I deploy it it fails and only adds the default values to my registry. Really like this idea as it is a very elegant way of doing it. Just doesn't seem toe work and I cannot make new .msi or merge modules for every customer.

Any ideas would be welcome again ;)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Silent install/deploy with parameters

Hi,

This is caused by a known bug in version 8.2. Basically, XML searches are not executed for silent installations. A bugfix will be included in the next release. If you want a release candidate, please contact us at support at advancedinstaller dot com.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Re: Silent install/deploy with parameters

Hi there Cosmin,

I did get the release candidate from Bogdan and have done a new build with it and it the xml search still does not work when doing a silent install :(
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Silent install/deploy with parameters

Hello,

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

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”