3rd party software as prerequisite, NGen, publish.htm secure ...

1. I have an application need 3rd party software installed as prerequisite. I could install one 3rd party software (exe-based) via ClickOnce following Jacob's webcast and his suggestion on his weblog. But doesn't work for a MSI based software. Everytime it failed and told me:
return code: 1603 fatal error
winTrust: WinVerifyTrust returned -2146762496
I am not sure what it means. I put FullTrust permission in my application. Could anyone help me out of this? Thanks a lot!

2. I saw there was a question related to NGen after ClickOnce install but no one follows yet. Hope this time someone could throw some ideas?

3. I wonder about the security of ClickOnce. I could apply site security and folder security. But how could I identity who download this application? Any API from System.Deployment?

Thanks in advance!

[844 byte] By [StevenGuo] at [2008-2-13]
# 1
1. You can use create a customer package for the 3rd Party App (or ask for an official one from them) and use the Bootstrapper that ships with VS2005. The bootstrapper supports MSI and EXE based redists. There is also a power toy type tool to help you create those packages. See http://www.gotdotnet.com/workspaces/workspace.aspx?id=ddb4f08c-7d7c-4f44-a009-ea19fc812545

2. Clickonce does not support NGEN on install. The current implimentation of NGEN requires that it have access to the Global Assembly Cache and ClickOnce by design does not allow that type of impactfull behavior.

3. The System.Deployment APIs are only usefull from a client side perspective. To do what you want to do you should implement something on the server in ASP.NET to track users. You can actually get pretty fancy here determining what user is logged onto the page and serving up a custom application link for them, etc. Hopefully we will have better out of the box support in a future release.

This posting is provided "AS IS" with no warranties, and confers no rights

PatrickBaker at 2007-9-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...