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 &quot;Xenware 2.0&quot;" 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.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander
Gnauck
Sent: Thursday, August 03, 2006 9:20 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Keep files after uninstall

Hello,

What is the correct way of installing files which i don't want to 
uninstall later, or only uninstall with a custom action (eg. important 
databases). I read that files in a component without GUID will not be 
uninstalled. Is this the way to go?

Thanks Alex


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to