Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread Phill Hogland
Look at WixBA.cs line 147 and it (I think) does what you are wanting to do
after the install in the mba right before the BA exists.

this.PostTelemetry();
this.Engine.Quit(WixBA.Model.Result);

You would probably want to change the 'Telemetry' code to create a http post
that meets your needs.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-CustomAction-in-WPF-Bootstrapper-application-tp7589611p7589619.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


Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread ZivCizer
Thanks! it works!



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-CustomAction-in-WPF-Bootstrapper-application-tp7589611p7589618.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


Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread Dror, Tomer
You need to pass it to the msi



http://schemas.microsoft.com/wix/2006/wi";>
  

  

  

  








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


Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread Hoover, Jacob
Use a property, and configure the bundle to pass the engine variable to the 
MSI.  (See MsiProperty in the docs.)

-Original Message-
From: ZivCizer [mailto:cize...@gmail.com] 
Sent: Thursday, October 10, 2013 9:13 AM
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


Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread ZivCizer
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


Re: [WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread Dror, Tomer


CustomAction belongs to MSI not to BA

I don't think it is a good idea to change machine state in the BA





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 4:55 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Using CustomAction in WPF Bootstrapper application

Hi,
I'm pretty new to WiX, I'm working on a setup with WiX and WPF UI.

I was using several examples online, including the WiX setup itself,

But i didn't see anywhere an example of using CustomAction with this kind of
project.


one example of the thing i need is to send HTTP request after my
installation is finished,
i have to choices:
1. create CustomAction that will be executed after "InstallFinalize" (in
Product.wxs)
2. send the request in my bootstrapper application on event "ApplyComplete"

in addition, i want to cancel the installation if i get an error in my
response.


what would be the best approach? 1 or 2?

Thanks!!



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-CustomAction-in-WPF-Bootstrapper-application-tp7589611.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


[WiX-users] Using CustomAction in WPF Bootstrapper application

2013-10-10 Thread ZivCizer
Hi,
I'm pretty new to WiX, I'm working on a setup with WiX and WPF UI.

I was using several examples online, including the WiX setup itself,

But i didn't see anywhere an example of using CustomAction with this kind of
project.


one example of the thing i need is to send HTTP request after my
installation is finished,
i have to choices:
1. create CustomAction that will be executed after "InstallFinalize" (in
Product.wxs)
2. send the request in my bootstrapper application on event "ApplyComplete"

in addition, i want to cancel the installation if i get an error in my
response.


what would be the best approach? 1 or 2?

Thanks!! 



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-CustomAction-in-WPF-Bootstrapper-application-tp7589611.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