Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
424 views
in Technique[技术] by (71.8m points)

code signing - Cannot install company app on windows phone 8

We are developing a company app for windows phone 8.

I have followed every step described in Company app distribution for Windows Phone

Here is what I did:

  • Registered company account
  • Bought an enterprise certificate from Symantec.
  • Exported PFX file with private key
  • Generated Enrollment Token (AETX file) from PFX.
  • Developed application, built with visual studio and get xap file generated. (Name it App.xap)
  • Precompiled managed assemblies and Signed it with certificate using BuildMDILXap.ps1 powershell script. (All messages indicated success).
  • Hosted AETX and signed XAP file on our web server.

At this point, when a wp8 phone tries to download XAP file without first installing AETX, The phone gives proper error message: "Before you install this app, you need to add XXXX company account. Contact your company's support person for help".

After installing AETX, when wp8 phone tries to install XAP file, the phone asks for confirmation: "Would you like to install App1 from XXXX?" After clicking "install" button, nothing happens. There is no success message, no error message, no indication of installation, and the application does not show in application list.

I have also tried sending AETX and XAP files over email (in case internet explorer or iis cannot handle file types), same result.

I have also tried doing the same for our company hub app, same result.

As far as I understand, company hub app is just another app (of course for different purpose) and both normal app and hub app can be distributed same way (over web address or email etc), right?

What is wrong? Cannot find the problem here? Any ideas?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I bet you don't have a proper setup for code signing. One important step that is easy to miss is to install the parent certificates of your enterprise code signing certificate (that you got from Symantec). Specifically, download and import the following two certificates and then try to sign the XAP file again.

https://knowledge.verisign.com/library/VERISIGN/ALL_OTHER/Symantec_Enterprise_Mobile_Root_for_Microsoft.cer https://knowledge.verisign.com/library/VERISIGN/ALL_OTHER/Symantec_Enterprise_Mobile_CA_for_Microsoft_Cert.cer

It is sad that the signing tool does not report any errors, yet the output is not a correctly signed XAP that WP8 would accept.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...