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!

freeman
Posts: 2
Joined: Fri Aug 03, 2012 1:55 pm

Pre-install (MSI File) with two different Transform-Files

Hello Community

I work for a few days with the Advanced Installer.
Unfortunately I have no solution for my current problem.

I would like to control via a command line switch, which mst file is used for my Pre-install.

Something like this:
"SampleSetup.exe" MSTFILE="Test.mst"

Is this possible? Has someone an example?


Thanks a lot!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pre-install (MSI File) with two different Transform-File

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
I would like to control via a command line switch, which mst file is used for my Pre-install.
If you have a MSI pre-install prerequisite, then you can proceed like this:
- From "Prerequisites" page add the related prerequisite package twice .
- Select the first prerequisite item and from "Setup Files" tab -> "Additional Files" group add your first .MST file using [Add Files...] button.
- In the "Install Command Lines" group set the switch command line.
- From "Install Conditions" tab enable "Install prerequisite based on conditions" option and add desired install condition.
- Select the second prerequisite item and from "Setup Files" tab -> "Additional Files" group add your second .MST file using [Add Files...] button.
- In the "Install Command Lines" group set the switch command line.
- From "Install Conditions" tab enable "Install prerequisite based on conditions" option and add desired install condition.
- Build and run your project.

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

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
freeman
Posts: 2
Joined: Fri Aug 03, 2012 1:55 pm

Re: Pre-install (MSI File) with two different Transform-File

Hello Daniel

Thanks for the help and your description.
But on the install conditions i can't select a property from my run command, this feature is not avaible.

I would run the setup.exe silent with a property like NETWORKSUPPORT="0" or NETWORKSUPPORT="1".
The property NETWORKSUPPORT is for my prerequisite and controls which MST file will be used.
How i can set this condition for the prerequisite installation? It's this possible with Advanced Installer?


Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pre-install (MSI File) with two different Transform-File

Hello,

In order to achieve this you can proceed like this:
- Add the related MSI prerequisite as a feature-based prerequisite (only once), from "Prerequisite" page.
- From "Setup Files" tab -> "Additional Files" group add the two .MST files using [Add Files...] button.
- In the "Install Command Lines" group set a command line like this:
  • [TRANSFORMS] = [NETWORKSUPPORT]
where the NETWORKSUPPORT property should contain the desired .MST filename.
- Build and run your project from command line, having NETWORKSUPPORT property set to desired .MST filename.

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

Return to “Building Installers”