/build/static/layout/Breadcrumb_cap_w.png

Applying .net security settings to package as custom action, HELP!!!

Hi,

I'm trying to add some .net security settings to my package, this is how I've setup it up, but unfortunately it fails, can anybody shed any light on this, it's driving me crazy.

Package is entitled Finscan.

It installs 2 files to C:\Program Files\Finscan, finscan.exe & finscan.url

In addition, the Finscan.xml file is installed to .net framework DIR, i.e. C:\WINNT\Microsoft.NET\Framework\v2.0.50727.

If I run the commands inside the custom action outside of Windows Installer they work fine so I know my commands are correct, whenever I run them as custom actions I'm getting 1722 errors. See custom actions;

Type: 3106
Source: SystemFolder
Target: cmd.exe /c [V2.0.50727]caspol.exe -m -quiet -addpset [V2.0.50727]finscan.xml "Finscan PS"

This custom action fails everytime, anybody have any ideas?

0 Comments   [ + ] Show comments

Answers (8)

Posted by: anonymous_9363 15 years ago
Red Belt
0
So, the verbose log that you took of your install...does it show the [V2.0.50727] property being resolved correctly?
Posted by: cowley 15 years ago
Orange Belt
0
Yes. the property is being resolved correctly. A few things I forgot to mention. I've set the action as a Deferred Execution In System Context and have also set the processing to be synchronous (check exit code). It's been sequenced after InstallFiles.
Posted by: anonymous_9363 15 years ago
Red Belt
0
'ere! What happened to the part of my post which said:

If it resolves correctly, does the path have spaces in? If so, you'll need to enclose the calls in quotes:cmd.exe /c "[V2.0.50727]caspol.exe" -m -quiet -addpset "[V2.0.50727]finscan.xml" "Finscan PS"
Posted by: cygan 15 years ago
Fifth Degree Brown Belt
0
or you could save yourself the stress and call your cmd.exe /c from a batch file

ie

cmd.exe /c "[#mybat.bat]"
Posted by: cowley 15 years ago
Orange Belt
0
Unfortunately this didn't fix it. I've checked the verbose log and it isn't very descriptive, right after the custom action fails I get this error, quite a generic one I believe;

The actual Windows Installer error is 1722. There is a problem with the Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action PGDS_Caspol, location: C:\WINNT ...\finscan.xml" "Finscan PS"

Info 2835.The control ErrorIcon was not found on dialog SetupError.
Posted by: NACM 15 years ago
Senior Yellow Belt
0
Add this to the command line if it makes any different:
FullTrust -name "Finscan PS"
Posted by: Jsaylor 15 years ago
Second Degree Blue Belt
0
Would you mind posting the section of your log that contains the fully resolved CA? There may be some subtle pathing issues that someone here could spot.
Posted by: cowley 15 years ago
Orange Belt
0
Hi guys, thanks for the help on this but in the end I gave up and just went down the route of executing the custom action as a batch file, it worked a treat.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ