Re: [WiX-users] DTF managed custom action - temporary file

2013-11-27 Thread Rob Mensching
Hmm, off the top of my head that sounds like you'll expose a security 
vulnerability doing that. Unelevated data being passed to elevated process. 
You'll also want to pass a hash or something to verify the file is the correct 
file on the elevated (deferred) side.

-Original Message-
From: Jens Teutenberg [mailto:jens.teutenb...@t-online.de] 
Sent: Tuesday, November 26, 2013 10:48 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] DTF managed custom action - temporary file

I want to use a temporary file to transfer data between my immediate custom 
action and my deferred custom action (Impersonate="no"). I use the method 
“Path.GetTempFileName()” to create a unique file in the immediate CA. The file 
will be created but the deferred CA cannot see this file. 

Where I have to place the file to get it working?
Or is there another solution to transfer the content of a complete own table?
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance affects 
their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & 
PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF managed custom action - temporary file

2013-11-26 Thread Blair Murri
That is certainly a reasonably good way to transfer structured data. I believe 
the concern was one of space, but if you compressed the json (which already has 
a low overhead and compresses well with algorithms that are good with text) you 
may fit the entire table into the CustomActionData property were it is safe.
 
-Blair
 
> From: chr...@iswix.com
> To: wix-users@lists.sourceforge.net; wix-users@lists.sourceforge.net
> Date: Tue, 26 Nov 2013 11:17:05 -0800
> Subject: Re: [WiX-users] DTF managed custom action - temporary file
> 
> 
> 
> Here's another approach to consider: 
> 
> http://blog.iswix.com/2011/10/beam-me-up-using-json-to-serialize.html 
> 
  
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF managed custom action - temporary file

2013-11-26 Thread Blair Murri
You could also put the actual path into the CustomActionData. Realize that 
anything that the nonelevated immediate action has write access to isn't secure 
and could be tampered with before the elevated deferred access can access it.
 
-Blair
 
> Date: Tue, 26 Nov 2013 11:06:00 -0800
> From: phildgwil...@gmail.com
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] DTF managed custom action - temporary file
> 
> If the users are different so is the temp location. The immediate CA gets
> the user's temp path, the system account (no impersonation) uses the
> system's temp path. As long as you create the file where both have access,
> perhaps you could put the actual path to it in the registry.
> 
> Phil Wilson
> 
> 
> On Tue, Nov 26, 2013 at 10:47 AM, Jens Teutenberg <
> jens.teutenb...@t-online.de> wrote:
> 
> > I want to use a temporary file to transfer data between my immediate
> > custom action and my deferred custom action (Impersonate="no"). I use the
> > method “Path.GetTempFileName()” to create a unique file in the immediate
> > CA. The file will be created but the deferred CA cannot see this file.
> >
> > Where I have to place the file to get it working?
> > Or is there another solution to transfer the content of a complete own
> > table?
> >
> > --
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> > Pro!
> > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> > ___
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> --
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
  
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF managed custom action - temporary file

2013-11-26 Thread Christopher Painter


Here's another approach to consider: 

http://blog.iswix.com/2011/10/beam-me-up-using-json-to-serialize.html 


 From: "Jens Teutenberg" 
Sent: Tuesday, November 26, 2013 12:54 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] DTF managed custom action - temporary file

I want to use a temporary file to transfer data between my immediate custom 
action and my deferred custom action (Impersonate="no"). I use the method 
"Path.GetTempFileName()" to create a unique file in the immediate CA. The file 
will be created but the deferred CA cannot see this file. Where I have to place 
the file to get it working? Or is there another solution to transfer the 
content of a complete own table? 
-- 
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance affects 
their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & 
PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! 
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk 
___ WiX-users mailing list 
WiX-users@lists.sourceforge.net https://lists.sourceforge.n
 et/lists/listinfo/wix-users
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF managed custom action - temporary file

2013-11-26 Thread Phil Wilson
If the users are different so is the temp location. The immediate CA gets
the user's temp path, the system account (no impersonation) uses the
system's temp path. As long as you create the file where both have access,
perhaps you could put the actual path to it in the registry.

Phil Wilson


On Tue, Nov 26, 2013 at 10:47 AM, Jens Teutenberg <
jens.teutenb...@t-online.de> wrote:

> I want to use a temporary file to transfer data between my immediate
> custom action and my deferred custom action (Impersonate="no"). I use the
> method “Path.GetTempFileName()” to create a unique file in the immediate
> CA. The file will be created but the deferred CA cannot see this file.
>
> Where I have to place the file to get it working?
> Or is there another solution to transfer the content of a complete own
> table?
>
> --
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] DTF managed custom action - temporary file

2013-11-26 Thread Jens Teutenberg
I want to use a temporary file to transfer data between my immediate custom 
action and my deferred custom action (Impersonate="no"). I use the method 
“Path.GetTempFileName()” to create a unique file in the immediate CA. The file 
will be created but the deferred CA cannot see this file. 

Where I have to place the file to get it working?
Or is there another solution to transfer the content of a complete own table?
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users