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