The Property attribute should just be the name of a property containing the full path of the executable. You need to schedule another custom action before CreateCaspol20CA that sets the full path of the executable to a property and then use that in the Property attribute of CreateCaspol20CA.
-Brian Simoneau -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sam Sent: Monday, August 07, 2006 5:08 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Custom actions I made that change, that you suggested and now I get this error in the log. Any other ideas? MSI (s) (5C:A0) [16:44:44:140]: Executing op: CustomActionSchedule(Action=CreateCaspol20CA,ActionType=1074,,Target=-m -addgroup 1 -site localhost FullTrust -name "Xenware 2.0",) MSI (s) (5C:A0) [16:44:44:150]: Note: 1: 1721 2: CreateCaspol20CA 3: 4: -m -addgroup 1 -site localhost FullTrust -name "Xenware 2.0" -----Original Message----- From: Brian Simoneau [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 12:59 PM To: Scott Sam; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Custom actions The Property attribute should contain the full path of the executable and the ExeCommand attribute should only have the command line parameters. Try <CustomAction Id="CreateCaspol20CA" Property="[NET20]caspol.exe" ExeCommand="-m -addgroup 1 -site localhost FullTrust -name "Xenware 2.0"" Execute="deferred" Return="check" /> -Brian Simoneau -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sam Sent: Monday, August 07, 2006 12:51 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Custom actions I'm trying to create a custom action that executes the caspol.exe file that already exists on the target machine. I can't figure out what I am doing wrong. Does anyone have any suggestions? I want to set up caspol policy for .net 2.0, if they are installed on the target machine. I have this to check if it is installed. <Property Id="NET20"> <DirectorySearch Id="Net20Dir" Path="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\" /> </Property> Then I use this custom action to execute it. <CustomAction Id="CreateCaspol20CA" Property="[NET20]" ExeCommand="[NET20]caspol.exe -m -addgroup 1 -site localhost FullTrust -name "Xenware 2.0"" Execute="deferred" Return="check" /> I'm getting this error in the log file. Action 9:36:00: CreateCaspol20CA. MSI (s) (00:50) [09:36:00:750]: Executing op: CustomActionSchedule(Action=CreateCaspol20CA,ActionType=1074,,Target=C:\ WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -addgroup 1 -site localhost FullTrust -name "Xenware 2.0",) MSI (s) (00:50) [09:36:01:020]: Note: 1: 1721 2: CreateCaspol20CA 3: 4: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -addgroup 1 -site localhost FullTrust -name "Xenware 2.0" I can't figure out what I am doing wrong. Is there a better way to do this? If I copy everything after the 4: in the error message above, and paste it on the command line, it works fine. ------------------------------------------------------------------------ - 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 ------------------------------------------------------------------------ - 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 ------------------------------------------------------------------------- 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