Get parameters from external file - 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!

Rene Frederiksen
Posts: 4
Joined: Thu Nov 15, 2007 9:19 pm

Get parameters from external file

Hi.
First.
GREAT installer. Really nice.
Then...I got a problem I hope you can help a Noob like me to solve :lol:

1.
Im building a MSI pack.
In that pack I want to install a file "Setup.exe" with some paramters, but the parameters need to be installed from an external file.
I need to "push" this MSI file to a bunch of PC's, but the parameters are different from site to site....But I need to use the same MSI!

So WHAT/HOW do it do this in the most easy way with AI?

2.
I like to run this MSI as unattended installation, BUT I would like to put a "Splash Screen" op in Windows during the installation.
I cant find a way to do this easy and nice :cry:

How do I do THAT?

Hoping for some good answers from you "Old Users"
:shock:

//BR
Rene Frederiksen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
In that pack I want to install a file "Setup.exe" with some paramters, but the parameters need to be installed from an external file.
I'm not sure I understand what you mean. Can you please give more details about the parameters you want to set for the installed file?
I like to run this MSI as unattended installation
This can be done by setting the "Limit to basic user interface (simple progress and error handling)" option in the "Install Parameters" page. With this option the installer will display only a dialog with a progress bar showing the evolution of the installation and the message boxes that display error messages.

You can read more about this here:
http://www.advancedinstaller.com/user-g ... eters.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rene Frederiksen
Posts: 4
Joined: Thu Nov 15, 2007 9:19 pm

Hello again.

Ok..Let me try to clarify it a bit;

Under the menu "Costum Actions" I have under "install" put in an exe file to be runned.

I can here enter parameters for the exe file (Command line) BUT those commands WOULD be nice to get from an external file (OUTSIDE the MSI pack)...An txt file.

Can this be done.
Inside the txt file the text would be;

/PW:123 /RT:1 etc...

Hope you understand

/Rene
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that Advanced Installer doesn't support this directly.

This could be done by creating a custom action that will read the file and launch the EXE with the specified parameters, but I'm not sure how exactly this custom action will look like.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rene Frederiksen
Posts: 4
Joined: Thu Nov 15, 2007 9:19 pm

Hello again.
That cant work here, as its suppose to work unattended.
So I will have to figur out another option to this.

I can see that we can run a VBS in this funktion (Costumer Action).
Maybe I can let this funktion look for a VBS in a specifik catalog, and if its there, it will run it (Install from this script insted!)

If its NOT there it will bypass this VBS and go to the next part wich is install from the Install menu (Again Costumer action)

I have this fine in the MSI pack I need to run, with parameters.
But the parameters are different on each site this pack is runned on.
So I need it to be able to read SOMETHING to set this parameter.

Anybody got any idea to solve this?
:shock:

Return to “Common Problems”