I am trying to call CASPOL from within an install being created using
Installsheild 12 Express using the Custom Actions. I have a custom
action which calls CASPOL but I cannot get CASPOL to find the exe that
I wasn to be used for adding the trust relationship.

I am using the following command line with CASPOL :-
-quiet -machine -pp off -ag All_Code -strong -file temp.exe -noname -
noversion FullTrust -name TempSnk -description "Code group granting
full trust to temp application"

The porblem seems to be with finding my temp.exe. Since I am doing
this through an install I do not know the specific location of my
temp.exe, so what I tried to do was copy CASPOL to the same location
as my temp.exe, but CASPOL still doesn't seem to find it.

I have tried doing this through a VBScript, but seem to have the same
problem.

Any help would e much appreciated.

Re: Calling CASPOL from within Installshield 12. by Alvin

Alvin
Mon Aug 20 19:22:11 CDT 2007

interesting. i don't think that's the crux of the matter. I think maybe you
have a permissions error for the access. caspol requires admin privileges,
make sure that the install process or the identity running caspol has admin
privileges. That's where I would start first. It's easy to rule out by
placing the temp.exe and caspol in the same directory.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"eddieb7" <eddieboggis@blueyonder.co.uk> wrote in message
news:1187613845.645480.3290@r29g2000hsg.googlegroups.com...
>I am trying to call CASPOL from within an install being created using
> Installsheild 12 Express using the Custom Actions. I have a custom
> action which calls CASPOL but I cannot get CASPOL to find the exe that
> I wasn to be used for adding the trust relationship.
>
> I am using the following command line with CASPOL :-
> -quiet -machine -pp off -ag All_Code -strong -file temp.exe -noname -
> noversion FullTrust -name TempSnk -description "Code group granting
> full trust to temp application"
>
> The porblem seems to be with finding my temp.exe. Since I am doing
> this through an install I do not know the specific location of my
> temp.exe, so what I tried to do was copy CASPOL to the same location
> as my temp.exe, but CASPOL still doesn't seem to find it.
>
> I have tried doing this through a VBScript, but seem to have the same
> problem.
>
> Any help would e much appreciated.
>