How to install XBAP's certificate in Root and TrustedPublisher Certificate Store of Client side?

来源:互联网 发布:windows udp编程 编辑:程序博客网 时间:2024/05/16 07:08

1. If you want to install certificate in your machine, you can directly input such commands in the command prompt window as followings:
 

    Certmgr /add penn.cer /s Root                            // which will install penn.cer into Root certificate store.
    Certmgr /add penn.cer /s TrustedPublisher        // which will install penn.cer into Trusted Published Certificate store. 

 

2.Here are some meterials about BootStrapper: http://msdn.microsoft.com/zh-cn/magazine/cc163899(en-us).aspx. BootStrapper is usually located in such directory as C:/Program Files/Microsoft SDKs/Windows/v6.0A/Bootstrapper if you already installed visual studio 2008. In a word it is bootstrapper who decides what the Prerequisites looks like when you want to publish your software (look at the figure below, which is in my vs 2005), furthermore you can also add new package if you want to!!

 

 

In the following figure I add a new package which named 'Amodis Monitoring Certificate 1.0' in my vs2008 (trial version), which is chinese version now.

 

 

3. Please read the example in the directory Bootstrapper seriously then you will know how to produce your own package.  In this demo I add the Certmgr.exe and penn.cer into the package, then when the user visit, Certmgr.exe and Penn.cer will download to the client side and Penn.cer will be installed.