Hi Jim,

I have already tried "deferred" but even that seems to fail. This batch file 
basically tries to register the COM components on the target machine. 
So, I want the batch file to run after the installer script has run, i.e after 
creating the installer, this script has to run to register the components. May 
be what I am trying to do, is not even possible.

Please suggest.

Thanks,
Anu


--- On Tue, 11/18/08, Jim Williams <[EMAIL PROTECTED]> wrote:
From: Jim Williams <[EMAIL PROTECTED]>
Subject: RE: [WiX-users] invoking batch file inside wxs file
To: [EMAIL PROTECTED], "General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>
Date: Tuesday, November 18, 2008, 11:10 AM

You might want to try deferred execution instead of immediate.  This will run
the custom action after InstallFinalize when the install script is run. 
Immediate causes it to be run when it is encountered when creating the
installation script.

<CustomAction
      Id='InvokeRegister'
      Property='CommandProcessorPath'
      ExeCommand='&quot;[InstallDir]\Register.bat&quot;
&quot;[InstallDir]\Drivers&quot; Release x64'
      Execute='deferred'
      Impersonate='no'
      Return='check' />

Jim Williams


-----Original Message-----
From: Kapoor, Anupama [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 18, 2008 8:42 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] invoking batch file inside wxs file

Hi,

I am trying to invoke a batch file from my
foo.wxs, which I want it to "run" after my installer has been
installed. So, I am doing something like this:

<Property Id='CommandProcessorPath'
Value='[SystemFolder]/cmd.exe/v:off /c' />

<CustomAction
      Id='InvokeRegister'
      Property='CommandProcessorPath'
      ExeCommand='&quot;[InstallDir]\Register.bat&quot;
&quot;[InstallDir]\Drivers&quot; Release x64'
      Execute='immediate'
      Impersonate='no'
      Return='check' />

<InstallExecuteSequence>
       <Custom Action='InvokeRegister'
After='InstallFinalize' />
    </InstallExecuteSequence>

I am running into issues with this. Can you please let me know what is
incorrect here?

Thanks much,
Anu


      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to