Calling CASPOL from within Installshield 12.

E

eddieb7

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.
 
A

Alvin Bruney [MVP]

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.
 
E

Eddiw Boggis

I tried running caspol and my temp.exe in the same directory, but get it works ok.

It's only when I try to do it within Installshield I get the problem.

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
A

Alvin Bruney [MVP]

Right, so it appears that the installshield identity does not have the
required permissions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top