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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
So, the verbose log that you took of your install...does it show the [V2.0.50727] property being resolved correctly?
Answered 10/22/2009 by: VBScab
Red Belt

Please log in to comment
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.
Answered 10/22/2009 by: cowley
Orange Belt

Please log in to comment
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"
Answered 10/22/2009 by: VBScab
Red Belt

Please log in to comment
0
or you could save yourself the stress and call your cmd.exe /c from a batch file

ie

cmd.exe /c "[#mybat.bat]"
Answered 10/22/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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.
Answered 10/22/2009 by: cowley
Orange Belt

Please log in to comment
0
Add this to the command line if it makes any different:
FullTrust -name "Finscan PS"
Answered 10/27/2009 by: NACM
Senior Yellow Belt

Please log in to comment
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.
Answered 10/27/2009 by: Jsaylor
Second Degree Blue Belt

Please log in to comment
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.
Answered 11/20/2009 by: cowley
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity