Try something like this: //CustomActions is the name of your class containing your custom action declarated methods. string baseDir = new FileInfo( Assembly.GetAssembly(typeof(CustomActions)).Location ).DirectoryName; Process.Start( Path.Combine(baseDir, "WindowsFormsApplication1.exe"));
Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me --- On Tue, 2/17/09, Romeo Salayo Jr. <dfox.mxyzp...@gmail.com> wrote: > From: Romeo Salayo Jr. <dfox.mxyzp...@gmail.com> > Subject: Re: [WiX-users] Extract Binaries at Install Time > To: wix-users@lists.sourceforge.net > Date: Tuesday, February 17, 2009, 12:05 AM > Thank you so much for the help! > > I have another problem, how can call the file in my dll > using > System.Diagnostics.Process.Start(File); > > Best Regards, > Romeo > > > Christopher Painter wrote: > > > > In Visual Studio, using the solution explorer, you > can right click your > > project and tell it to Add | Existing Item > > > > Change the file filter to *.* and select your file. > You'll see the file > > get added to your project. Click on it and then make > sure the Build > > Action property is set to Content and the Copy to > Output Directory > > property is set to Copy Always. > > > > This will cause DTF to package that file into your > foo.CA.dll. At > > runtime the hosting model will automatically extract > this file and clean > > it up when the CA is done executing. > > > > Christopher Painter, Author of Deployment Engineering > Blog > > Have a hot tip, know a secret or read a really good > thread that deserves > > attention? E-Mail Me > > > > > > --- On Thu, 2/12/09, Romeo Salayo Jr. > <dfox.mxyzp...@gmail.com> wrote: > > > >> From: Romeo Salayo Jr. > <dfox.mxyzp...@gmail.com> > >> Subject: Re: [WiX-users] Extract Binaries at > Install Time > >> To: wix-users@lists.sourceforge.net > >> Date: Thursday, February 12, 2009, 4:39 AM > >> @greenaj > >> > >> Yes, My custom action is an immidiate CA. But > still > >> don't get the correct > >> stream. > >> > >> @Christopher, > >> > >> How can I do that? sorry i'm a C# newbie. Can > you give > >> a link or example on > >> how can I add the files as content. Thanks! > >> > >> regards > >> romeo > >> > >> > >> Christopher Painter wrote: > >> > > >> > Have you considered adding the files as > content to > >> your DTF c# project? > >> > DTF will handle the extraction of non-managed > >> resources also for you. > >> > > >> > Christopher Painter, Author of Deployment > Engineering > >> Blog > >> > Have a hot tip, know a secret or read a > really good > >> thread that deserves > >> > attention? E-Mail Me > >> > > >> > > >> > --- On Tue, 2/10/09, gree...@cox.net > >> <gree...@cox.net> wrote: > >> > > >> >> From: gree...@cox.net > <gree...@cox.net> > >> >> Subject: Re: [WiX-users] Extract Binaries > at > >> Install Time > >> >> To: "General discussion for Windows > Installer > >> XML toolset." > >> >> <wix-users@lists.sourceforge.net> > >> >> Date: Tuesday, February 10, 2009, 12:20 > PM > >> >> One thing I can think of, make sure the > custom > >> action is run > >> >> in immediate mode, not deferred. > >> >> > >> >> > >> >> ajgreen > >> >> ---- "Romeo Salayo Jr." > >> >> <dfox.mxyzp...@gmail.com> wrote: > >> >> > > >> >> > Hi, > >> >> > > >> >> > I'm trying to extract binaries > at install > >> time in > >> >> able to use it during > >> >> > installation only. I'm using C# > DTF, the > >> problem > >> >> is I can't get > >> >> > Record.GetStream() to work. It > always write > >> to a file > >> >> with "[Binary data]" > >> >> > and not the stream itself. > >> >> > > >> >> > Can anyone give an example on how to > use > >> GetStream() > >> >> successfully? I just > >> >> > need to extract binaries into a > temporary > >> file. > >> >> > > >> >> > We have VBS that works, but we are > converting > >> VBS > >> >> CustomActions into C# DLL. > >> >> > > >> >> > Thank you! > >> >> > > >> >> > Best Regards, > >> >> > Romeo > >> >> > -- > >> >> > View this message in context: > >> >> > >> > http://n2.nabble.com/Extract-Binaries-at-Install-Time-tp2301189p2301189.html > >> >> > Sent from the wix-users mailing list > archive > >> at > >> >> Nabble.com. > >> >> > > >> >> > > >> >> > > >> >> > >> > ------------------------------------------------------------------------------ > >> >> > Create and Deploy Rich Internet Apps > outside > >> the > >> >> browser with Adobe(R)AIR(TM) > >> >> > software. With Adobe AIR, Ajax > developers can > >> use > >> >> existing skills and code to > >> >> > build responsive, highly engaging > >> applications that > >> >> combine the power of local > >> >> > resources and data with the reach of > the web. > >> Download > >> >> the Adobe AIR SDK and > >> >> > Ajax docs to start building > applications > >> >> today-http://p.sf.net/sfu/adobe-com > >> >> > > >> _______________________________________________ > >> >> > WiX-users mailing list > >> >> > WiX-users@lists.sourceforge.net > >> >> > > >> > https://lists.sourceforge.net/lists/listinfo/wix-users > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> Create and Deploy Rich Internet Apps > outside the > >> browser > >> >> with Adobe(R)AIR(TM) > >> >> software. With Adobe AIR, Ajax developers > can use > >> existing > >> >> skills and code to > >> >> build responsive, highly engaging > applications > >> that combine > >> >> the power of local > >> >> resources and data with the reach of the > web. > >> Download the > >> >> Adobe AIR SDK and > >> >> Ajax docs to start building applications > >> >> today-http://p.sf.net/sfu/adobe-com > >> >> > _______________________________________________ > >> >> WiX-users mailing list > >> >> WiX-users@lists.sourceforge.net > >> >> > >> > https://lists.sourceforge.net/lists/listinfo/wix-users > >> > > >> > > >> > > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > Create and Deploy Rich Internet Apps outside > the > >> browser with > >> > Adobe(R)AIR(TM) > >> > software. With Adobe AIR, Ajax developers can > use > >> existing skills and code > >> > to > >> > build responsive, highly engaging > applications that > >> combine the power of > >> > local > >> > resources and data with the reach of the web. > Download > >> the Adobe AIR SDK > >> > and > >> > Ajax docs to start building applications > >> > today-http://p.sf.net/sfu/adobe-com > >> > > _______________________________________________ > >> > WiX-users mailing list > >> > WiX-users@lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/wix-users > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://n2.nabble.com/Extract-Binaries-at-Install-Time-tp2301189p2314132.html > >> Sent from the wix-users mailing list archive at > Nabble.com. > >> > >> > >> > ------------------------------------------------------------------------------ > >> Create and Deploy Rich Internet Apps outside the > browser > >> with Adobe(R)AIR(TM) > >> software. With Adobe AIR, Ajax developers can use > existing > >> skills and code to > >> build responsive, highly engaging applications > that combine > >> the power of local > >> resources and data with the reach of the web. > Download the > >> Adobe AIR SDK and > >> Ajax docs to start building applications > >> today-http://p.sf.net/sfu/adobe-com > >> _______________________________________________ > >> WiX-users mailing list > >> WiX-users@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > > > > ------------------------------------------------------------------------------ > > Create and Deploy Rich Internet Apps outside the > browser with > > Adobe(R)AIR(TM) > > software. With Adobe AIR, Ajax developers can use > existing skills and code > > to > > build responsive, highly engaging applications that > combine the power of > > local > > resources and data with the reach of the web. Download > the Adobe AIR SDK > > and > > Ajax docs to start building applications > > today-http://p.sf.net/sfu/adobe-com > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > -- > View this message in context: > http://n2.nabble.com/Extract-Binaries-at-Install-Time-tp2301189p2339252.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open > source participation > -Receive a $600 discount off the registration fee with the > source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users