Currently, I do not have a custom bootstrapper application, just what I have in
the Bundle.wxs file.
I thought that by setting up the MSI Property that way, it wouldn't require
running the bootstrapper EXE with a command line argument. I just want to pass
a hard coded value of some sort to the MSI from this particular bootstrapper to
the MSI and read it in a custom action.
I'm trying to then put the MSI property in to a custom action, if it is
present, but it doesn't seem to work.
<CustomAction Id='SetUsingLocalDbRegistryAction.SetProperty' Return='check'
Value='SETLOCALDB=[SETLOCALDB]'
Property='SetUsingLocalDbRegistryAction'/>
<CustomAction Id='SetUsingLocalDbRegistryAction'
BinaryKey='CustomActionBinary' DllEntry='SetUsingLocalDbRegistry'
Execute='deferred' Impersonate='no' Return='check'/>
Mark Freedman
-----Original Message-----
From: Steven Ogilvie [mailto:[email protected]]
Sent: Friday, July 19, 2013 10:08 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] passing command args to MSI from bundle [P]
Classification: Public
I do the same thing:
<Variable Name="SERVICESLOGLEVEL" Type="string" bal:Overridable="yes"
Value="WARN"/
<MsiProperty Name="SERVICESLOGLEVEL" Value="[SERVICESLOGLEVEL]"/>
So from the command line I would run MyBootstrapperEXE.exe
SERVICESLOGLEVEL=DEBUG
Now if you are just wanting to change a property via the bootstrapper you don't
have to add the variable element
Just add the MsiProperty element to your MSI:
<MsiProperty Name="ALLOW_REMOTE_ACCESS" Value="0"/>
Steve
-----Original Message-----
From: Rahul V [mailto:[email protected]]
Sent: July-19-13 9:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] passing command args to MSI from bundle
Create a variable inside the Bundle, pass that variable to MsiProperty, and
change the variable in the bootstrapper code like
Bootstrapper.Engine.StringVariables["MyVariable"] = ""
now you can see it in the log, for the reference,
http://stackoverflow.com/questions/15305932/how-to-pass-a-property-from-an-editbox-control-in-burn-native-bootstrapper-to-a
http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/
Regards,
Rahul
On Thu, Jul 18, 2013 at 6:05 PM, Freedman, Mark P. <[email protected]
> wrote:
> I'm on Wix 3.7. I have an MSI that I would like to set a registry key
> (perhaps via a Custom Action, as he will have to check if the key
> already exists).
>
> I'm understand that a Bundle in a bootstrapper project can't change
> the machine state (such as setting the registry). Therefore, I'm
> attempting to pass a command line argument via <MsiProperty>, but
> doesn't appear to show up as a command line argument in my log file for the
> bootstrapper.
>
>
> 1. Is it possible to set a registry key up in a Bundle?
>
> 2. If not, how can I add a command line argument (or some other
> piece of custom data) to be passed to the MSI.
>
> 3. How can the MSI read whatever it is I pass to it (whether I tends
> up being a command line arg or something else).
>
> <?xml version="1.0" encoding="UTF-8"?> <Wix
> xmlns="http://schemas.microsoft.com/wix/2006/wi">
> <Bundle Name="MyInstallerBootstrapperLocalDb" Version="1.0.0.0"
> Manufacturer="$(var.Configuration) Industires" UpgradeCode="*">
> <BootstrapperApplicationRef
> Id="WixStandardBootstrapperApplication.RtfLicense" />
> <Chain>
> <MsiPackage Id="MyInstallerInstaller"
> SourceFile="$(var.MyInstallerInstaller.TargetPath)" Compressed="no">
> <!-- TODO - if this is being set correctly, the MSI needs to
> interpret it and set up the key-->
> <MsiProperty Name="SetLocalDb" Value="yes"/>
> </MsiPackage>
> </Chain>
> </Bundle>
> </Wix>
>
>
> Thanks,
>
> Mark Freedman
>
>
> ----------------------------------------------------------------------
> -------- See everything from the browser to the database with
> AppDynamics Get end-to-end visibility with application monitoring from
> AppDynamics Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.c
> lktrk _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics Get end-to-end
visibility with application monitoring from AppDynamics Isolate bottlenecks and
diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
This message has been marked as Public by Steven Ogilvie on July-19-13 10:07:29
AM.
The above classification labels were added to the message by TITUS Message
Classification. For more information visit www.titus.com.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics Get end-to-end
visibility with application monitoring from AppDynamics Isolate bottlenecks and
diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users