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