Hi You can use " as below. ExeCommand=' "schtasks.exe" /Create /RU "[SQLUSERNAME]" /rp [SQLPASSWORD] /SC [CLEANUPFREQUENCY] /ST 01:00:00 /TN "DBCLEANUPTASK" /TR ""[#CLEANUP_EXE]""' />
Thanks Bibhuti Date: Tue, 22 Aug 2006 14:18:18 -0700 From: "Chandra Rentachintala" <[EMAIL PROTECTED]> Subject: [WiX-users] How to put '\"' in the customaction as it is ? To: <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" I am adding a scheduled task thru the installer like this. <CustomAction Id="CleanupTaskInstall" Directory="CompDir" Return="asyncNoWait" ExeCommand=' "schtasks.exe" /Create /RU "[SQLUSERNAME]" /rp [SQLPASSWORD] /SC [CLEANUPFREQUENCY] /ST 01:00:00 /TN "DBCLEANUPTASK" /TR "[#CLEANUP_EXE]" ' /> and it works fine in adding scheduled task, but not starting due to schtasks error. I found out from the support site http://support.microsoft.com/?KBID=823093 that I need to put "\" around the executable path to make it work. I verified this using command line and it works fine. I want to put this in WIX code, but ICE is complaining that it is not the correct format. Is there a way I can escape this sequence and achieve " \"[#CLEANUP_EXE]\" " from "[#CLEANUP_EXE]". Thanks in advance, chandra ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users