Ok  Thanks Jacques,   I'm more confused now than I was this morning when
I started and haven't gotten anywhere with this. It shouldn't be this
difficult to set up. As far as I can tell, I've got the code in my
main.wxs as you mentioned and I keep getting that darn error saying
unresolved reference to symbol 'CustomAction:Start_NFTS_Listener' in
section 'Product:*'   I don't know which way to go at this point. All I
want to do is execute an exe file that was written in-house. 

Thanks,
Jim


-----Original Message-----
From: Jacques Eloff [mailto:repst...@gmail.com] 
Sent: Monday, June 15, 2009 3:38 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Trying to execute an exe file during
oraftermyinstall

Hi

No, you shouldn't need to reference it. WixCA provides some built-in
custom actions, so if you want to use them then you would set the
BinaryKey attribute to WixCA. An example of this is using the
CAQuietExec custom action that's provided by the WixCA dll.

Thanks,
Jacques

On Mon, Jun 15, 2009 at 12:19 PM, MacDiarmid, James D <
james.macdiar...@eds.com> wrote:

>
> Ok Thanks, I'll give that a shot. Right now I have the Binary Command 
> and the <CustomAction /> statement at the bottom of my code after my 
> <InstallExecuteSequence /> section. All of this is in the same
product.
> Also I was reading on a post in the archives on the net about the 
> wixca.wixlib having to be included or have a reference to it?
>
>
>
> -----Original Message-----
> From: Jacques Eloff [mailto:repst...@gmail.com]
>  Sent: Monday, June 15, 2009 2:38 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Trying to execute an exe file during or 
> aftermyinstall
>
> Hi Jim
>
> So all three elements have the same parent (product/fragment)? Your 
> source should look something like this (Just want to make sure I 
> understand where you're at right now). If you're using <Binary>, make 
> the ExeCommand attribute an empty string and add the BinaryKey 
> attribute like the example below.
>
> <Binary Id="NFTS30Listner.exe"
> src="D:\Projects\NFTS\Src\apps\nfts\binaries\NFTS30Listener.exe"/>
> <CustomAction Id="Start_NFTS_Listener"
>                 Return="asyncNoWait"
>                 HideTarget="no"
>                 Execute="deferred"
>                 Impersonate="no"
>                 TerminalServerAware="no"
>                 ExeCommand=""
>                 BinaryKey="NFTS30Listner.exe"
>                 FileKey="NFTS30Listener"> </CustomAction> 
> <InstallExecuteSequence>  <Custom Action='Start_NTFS_Listener' 
> Before='InstallFinalize'/> </InstallExecuteSequence>
>
> As for your earlier question. The only time order really matters is 
> when you might have multiple CAs that depend on one another. You can 
> specify the order of custom actions using attributes such as Before 
> inside your <Custom> element. For example, let say you have two CAs, 
> Foo and Bar, then you can do the following:
>
> <InstallExecuteSequence>
>  <Custom Action='Foo' Before='Bar'/>
>  <Custom Action='Bar' />
> </InstallExecuteSequence>
> If you are using WiX 3, you should use SourceFile in your code since 
> the src attribute for Binary has been deprecated if I recall
correctly.
>
> Jacques
> On Mon, Jun 15, 2009 at 9:57 AM, MacDiarmid, James D < 
> james.macdiar...@eds.com> wrote:
>
> >
> > Ok I tried what you suggested and I'm getting the following error:
> >
> > Unresolved reference to symbol 'CustomAction:Start_NFTS_Listener' in

> > section product. I also added this
> >
> >
> > <Binary Id="NFTS30Listener.exe"
> > src="D:\Projects\NFTS\Src\apps\nfts\binaries\NFTS30Listener.exe" />
> >
> > ...above the line that you mentioned, but something seems to be
> missing.
> >
> > -----Original Message-----
> > From: Jacques Eloff [mailto:repst...@gmail.com]
> > Sent: Friday, June 12, 2009 6:14 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] Trying to execute an exe file during or 
> > after
>
> > myinstall
> >
> >  Hi Jim
> >
> > You still need to schedule the action. For example,
> >
> > <InstallExecuteSequence>
> >  <Custom Action='Start_NTFS_Listener' Before='InstallFinalize'/> 
> > </InstallExecuteSequence> Jacques On Fri, Jun 12, 2009 at 2:15 PM, 
> > MacDiarmid, James D < james.macdiar...@eds.com> wrote:
> >
> > >
> > > I added the following code in my install with the intention that 
> > > it would execute the exe file at some point, but it's not working.

> > > Is there anything I could be missing?
> > >
> > >    <CustomAction Id="Start_NFTS_Listener"
> > >                  Return="asyncNoWait"
> > >                  HideTarget="no"
> > >                  Execute="deferred"
> > >                  Impersonate="no"
> > >                  TerminalServerAware="no"
> > >
> > >
> >
>
ExeCommand="D:\Projects\NFTS\Src\apps\nfts\binaries\NFTS30Listener.exe"
> > >                  FileKey="NFTS30Listener">
> > >    </CustomAction>
> > >
> > > Thanks,
> > > Jim
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------------
> > > --
> > > --
> > > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check

> > > out
> >
> > > the new simplified licensing option that enables unlimited 
> > > royalty-free distribution of the report engine for externally 
> > > facing
>
> > > server and web deployment.
> > > http://p.sf.net/sfu/businessobjects
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > --------------------------------------------------------------------
> > --
> > --
> >  ------
> > Crystal Reports - New Free Runtime and 30 Day Trial Check out the 
> > new simplified licensing option that enables unlimited royalty-free 
> > distribution of the report engine for externally facing server and 
> > web
>
> > deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > --------------------------------------------------------------------
> > --
> > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check 
> > out
>
> > the new simplified licensing option that enables unlimited 
> > royalty-free distribution of the report engine for externally facing

> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> ----------------------------------------------------------------------
> --
> ------
>  Crystal Reports - New Free Runtime and 30 Day Trial Check out the new

> simplified licensing option that enables unlimited royalty-free 
> distribution of the report engine for externally facing server and web

> deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ----------------------------------------------------------------------
> -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out

> the new simplified licensing option that enables unlimited 
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------
------
Crystal Reports - New Free Runtime and 30 Day Trial Check out the new
simplified licensing option that enables unlimited royalty-free
distribution of the report engine for externally facing server and web
deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to