[wix-users] can we pass custom property to a .bat file in the installer?
Yan Wang
ywang at xmatters.com
Thu Oct 13 17:25:46 PDT 2016
Any instruction on how to do it? A simple sample would help me out... I am just a new to this software.
Thanks a lot!
Yan
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of John Cooper
Sent: Thursday, October 13, 2016 5:21 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] can we pass custom property to a .bat file in the installer?
Yes, I do it all the time. You need to respect quoting rules with some values.
I've also used Octopus substitutions in PowerShell script to deploy MSI's and Burn Bundles in this manner.
--
John Merryweather Cooper
Senior Software Engineer -- Integration Development Group -- Enterprise Notification Service Jack Henry & Associates, Inc.(r) | Lenexa, KS 66214 | Office: 913-341-3434x431050 JoCooper at jackhenry.com<mailto:JoCooper at jackhenry.com>
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Yan Wang
Sent: Thursday, October 13, 2016 7:06 PM
To: wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>
Subject: [wix-users] can we pass custom property to a .bat file in the installer?
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
Hi!
Wondering if we can pass custom parameters from msi to an bat file inside msi....
For example, after we create package.msi, we can do this msiexec /i c:\path\to\package.msi /quiet /qn /norestart /log c:\path\to\install.log PROPERTY1=value1 PROPERTY2=value2
but values of PROPERTY1 and PREPERTY2 will pass to a .bat file as %1 and %2
Thanks a lot!
Yan
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list