You need to pass it to the msi

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Fragment>
    <PackageGroup Id="Install">
      <MsiPackage Id="MainProduct"


        <MsiProperty Name="UserName" Value="[UserName]"/>

      </MsiPackage>
    </PackageGroup>
  </Fragment>
</Wix>







Tomer Dror
Intergraph Corporation.
Intergraph Israel.
P: +972 (4) 8779191-1222

Skype:tomer.dee
http://www.intergraph.com



.

________________________________________
From: ZivCizer [cize...@gmail.com]
Sent: Thursday, October 10, 2013 5:12 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

Thanks Tom,

So, as i understand, in my case, i should use the BA just to support the UI,
and all other actions as the one i mentioned should be implemented as
CustomAction as one of the "InstallExecuteSequence".

When trying to do so, i encountered this problem:
I have a textbox in my window that sets a property when it changes
Engine.StringVariables["UserName"] = UserName;

in my CustomAction i want to use this property, something like:

WriteTextToFile(session["UserName"]);

I can see it doesn't work, i guess it's something with the variables
declaration.. but i couldn't find an answer for that..
I would really appreciate some help, thanks!!



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-CustomAction-in-WPF-Bootstrapper-application-tp7589611p7589613.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to