That's exactly what we do.

Nicholas

On 5 June 2013 14:42, Carlos Hdz Taylor <carlos...@live.com> wrote:

> What I ended up doing was extracting the location of the Executing
> Assembly which is the same location where the EULA is placed.
>
>
> If you can think off a better way of doing it please let me know.
>
>
>
> http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in
>
>
>
> Thanks,
>
> Carlos
>
>
>
>
> From: Carlos Hdz Taylor
> Sent: Wednesday, June 5, 2013 8:32 AM
> To: General discussion for Windows Installer XML toolset.
>
>
> Thanks Nicholas, and how can I get the path for that?
>
>
> If I look at a Process Monitor capture, I can see that when I execute the
> EXE installer the EULA file is copied to the following location:
>
>
>
> C:\Users\carlos\AppData\Local\Temp\{e9b77076-6fdf-4281-a8c3-7efed6bf46b7}\.ba1\EULA.htm
>
>
> But when my code (button action) executes it tries to get the file from
> the location where the EXE installer is located (Desktop).
>
>
> C:\Users\carlos\Desktop\EULA.htm
>
>
> My code looks like this:
>
>
> public RelayCommand LicenseTermsCommand
>         {
>             get
>             {
>                 if (licenseTermsCommand == null)
>                 {
>                     licenseTermsCommand = new RelayCommand(() =>
> Process.Start("EULA.htm"));
>                 }
>
>
>                 return licenseTermsCommand;
>             }
>         }
>
>
>
>
> Thanks,
>
> Carlos
>
>
>
> From: Nicholas Pierce
> Sent: Wednesday, June 5, 2013 3:54 AM
> To: General discussion for Windows Installer XML toolset.
>
>
> If it's a payload in your BootstrapperApplicationRef, then it'll be
> extracted to the same directory as the burn engine and your Managed BA
> assembly, so you should be able to get the path from that.
>
> Nicholas
>
> On 4 June 2013 17:34, Carlos Hdz Taylor <carlos...@live.com> wrote:
>
> > Hello guys,
> >
> >
> > I am new to WiX, I just created a Managed Bootstrapper project using WPF,
> > everything works fine except that I want to programmatically access a
> file
> > (EULA.htm) that I referenced in the Bundle.wxs as a Payload, so when the
> > user clicks a button it opens the EULA.
> >
> >
> > <Payload SourceFile="C:\Temp\EULA.htm"/>
> >
> >
> > How can I access this file from within my WPF application? Is there a way
> > to get the location where the Bootstrapper copies the payload files when
> is
> > executed?
> >
> >
> > Thanks,
> >
> > Carlos
> >
> >
> ------------------------------------------------------------------------------
> > How ServiceNow helps IT people transform IT departments:
> > 1. A cloud service to automate IT design, transition and operations
> > 2. Dashboards that offer high-level views of enterprise services
> > 3. A single system of record for all IT processes
> > http://p.sf.net/sfu/servicenow-d2d-j
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to