Passing parameters to installer Name ... ?? - Advanced Installer Community
amit_shah25
Posts: 9
Joined: Wed May 02, 2012 3:47 pm

Passing parameters to installer Name ... ??

I have a tricky situation and trying to come up with a best way to address it.

We are going to put the link to our installer on our website, and login-protect it. Based on the customer that has logged in, we need to pass some data to the installer. Probably a boolean property, and may be a few strings.

Is there a way to have

http://www.mycompany.com/myProduct.exe? ... am2=value2

where myProduct.exe is the installer and the installer becomes aware of param1 and param2 .. ?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Passing parameters to installer Name ... ??

The .EXE bootstrapper can receive command line parameters as described in the EXE setup file article.
However I am not sure how you're going to instruct the browser to run the package directly with that command line. If you can find a solution you can reply to help future users in the same situation.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
amit_shah25
Posts: 9
Joined: Wed May 02, 2012 3:47 pm

Re: Passing parameters to installer Name ... ??

Hello !

I think I am going to re-phrase my query. Here is the problem that I need to solve for -

Our installer will be packaged before hand. But there is one piece of information that will be decided by which user is trying to download it. We want to "tell that to the installer" and we expect that the installer puts those (strings, and boolean flags) on the target machines.

Our users will be downloading the installer over the internet.

I just that that my initial question would be the best way to solve, but I don't think that would work .. Any thoughts ?

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

Re: Passing parameters to installer Name ... ??

Hello Amit,

You can pass arguments to installers (.MSI or .EXE) at install time by setting public properties.
For .EXE CLI read more in the article I linked in my previous post and also follow "Msiexec.exe Command Line" article to learn about .MSI CLI.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
amit_shah25
Posts: 9
Joined: Wed May 02, 2012 3:47 pm

Re: Passing parameters to installer Name ... ??

Hello Mihai,

I thought about passing command line arguments to the installer, but it won't work in our case because our customers will be downloading the executable over the internet from a browser. Is there a "programmatic way" to compile a .aip file ? What we need is when user clicks on the "DOWNLOAD" link, we need to be able to change a file on the harddrive, and then get advanced installer to "Build the project" and generate the executable, and let the user download that executable.

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

Re: Passing parameters to installer Name ... ??

Hi Amit,
What we need is when user clicks on the "DOWNLOAD" link, we need to be able to change a file on the harddrive,
In my experience a server side operation such as "DOWNLOAD" should not change anything on the client machine hard drive as a rule. This is how most viruses act so you should rethink the implementation.
If you mean change a file on the server, there's no problem.
get advanced installer to "Build the project" and generate the executable, and let the user download that executable
This is usually done using Advanced Installer CLI. All possible edit and build CLI operations are described in the user guide sub-articles.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
suryakrish
Posts: 1
Joined: Tue Dec 22, 2015 1:56 pm

Re: Passing parameters to installer Name ... ??

I have the same requirement as amit_shah.. Is there any other possible options for implementing this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Passing parameters to installer Name ... ??

Hello and welcome to our forums,

I'm afraid we are not aware of any other solutions.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”