Hi Chandra, I am using below code to execute the Batch file but no luck, could you please let me know if any thing went wrong.
<CustomAction Id="SetPropertySampleEXE" Property="SampleEXE" Value='C:\Windows\System32\cmd.exe /k ""C:\Program Files\Vlogger\fscommand\camRecorder.bat"" ' /> <InstallExecuteSequence> <Custom Action='SetPropertySampleEXE' After="InstallFiles" /> </InstallExecuteSequence> Regards, SivaKrishna Kalvagadda, 201-671-5552. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chandra Vuppala Sent: Tuesday, July 29, 2008 11:59 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Help on Executing batch file from WIX Hi Siva, You can use custom action for caling batch or msbuild scripts. If you find any better approach let me know. code sample; <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="c6669e98-e409-45ef-8ff8-4ab317d4df5e" Name="WixCustomTask" Language="1033" Version="1.0.0.0" Manufacturer="Oakton" UpgradeCode="d9730644-ea3f-4927-b492-b30068bf9825"> <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="WixCustomTask.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="WixCustomTask"> <Component Id="ProductComponent" Guid="2ded3d1a-8b56-44b9-ab2b-a223e58cc04e"> <File Id="SCCTest.xml" Source="C:\ddf.xml"></File> </Component> </Directory> </Directory> </Directory> <!-- Define a custom action to set the property value of the command to execute. This could have been hardcoded, but this is a bit more realistic. --> <CustomAction Id="SetPropertySampleEXE" Property="SampleEXE" Value="C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe" /> <!-- Define a custom action to execute our sample EXE (which just happens to be an XCOPY (as defined by the property SampleEXE. C:\Windows\System32\cmd.exe /k ""D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sdkvars.bat"" --> <CustomAction Id="InvokeSampleEXE" Property="SampleEXE" ExeCommand="/property:EnvironmentConfig=DEV;BT06_InstallDirectory=C:\Dir ectoryName ;BizTalkDatabaseServer=(local); BizTalkBuildConfiguration=Debug;BizTalkManagementDatabaseName=DBName Project file path" /> <!-- Invoke the custom actions - Set the property first, then execute the command --> <InstallExecuteSequence> <Custom Action="SetPropertySampleEXE" After="InstallFiles" /> <Custom Action="InvokeSampleEXE" After="SetPropertySampleEXE" /> </InstallExecuteSequence> <UIRef Id="WixUI_Mondo"/> <Feature Id="ProductFeature" Title="WixCustomTask" Level="1"> <ComponentRef Id="ProductComponent" /> </Feature> </Product> </Wix> ________________________________ From: [EMAIL PROTECTED] on behalf of Kalvagadda, SivaKrishna (GMIT-TASS) Sent: Wed 30/07/2008 9:25 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Help on Executing batch file from WIX Hi, I have tried different methods of executing MSI or Batch files from WIX but couldn't find the solution. Could someone please help me in executing a batch file or MSI from WIX. Thanks...Siva. Regards, SivaKrishna Kalvagadda, 201-671-5552. -------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. -------------------------------------------------------- ------------------------------------------------------------------------ - 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 IMPORTANT 1. This email and any attachments are confidential. Any unauthorised dissemination or other use of these materials is prohibited. If received in error, please contact us and delete all copies. 2. Before opening or using attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. 3. Protecting your privacy is important to us. Our privacy statement and further information is available at www.oakton.com.au. ------------------------------------------------------------------------- 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