[wix-users] can we pass custom property to a .bat file in the installer?

John Cooper JoCooper at jackhenry.com
Thu Oct 13 17:20:47 PDT 2016


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.® | Lenexa, KS  66214 | Office:  913-341-3434x431050
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
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.




More information about the wix-users mailing list