By using heat, you can harvest the COM information from the file and add
that to your wix file. This works very well and also get removed correctly
when the product is uninstalled. Beats having to write custom actions for
install & uninstall.

-----Original Message-----
From: Jim Williams [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 18, 2008 10:58 AM
To: [EMAIL PROTECTED]; General discussion for Windows Installer XML
toolset.
Subject: Re: [WiX-users] invoking batch file inside wxs file

Yes, as Robert suggested, you could register the COM stuff using the
<Registry/> element.

Jim Williams

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


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

-------------------------------------------------------------------------
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


The information contained in this transmission contains potentially
privileged, export controlled and/or confidential information of Imageware
Systems, Inc. or its customers or partners.  It is intended only to be read
by the person(s) named above and for no other purpose.  You are hereby
notified that any dissemination, distribution, duplication of this
communication or use of its contents for any purpose not authorized
expressly by Imageware Systems, Inc. is strictly prohibited and could lead
to both civil and/or criminal penalties.  If you are not the intended
recipient, you are prohibited to review the contents herein and please
contact the sender by reply e-mail and destroy all copies of the original
message.  To reply to our e-mail administrator directly, please send an
e-mail to [EMAIL PROTECTED]
-------------------------------------------------------------------------
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