[ https://issues.apache.org/jira/browse/CB-7144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063444#comment-14063444 ]
ASF GitHub Bot commented on CB-7144: ------------------------------------ GitHub user sgrebnov opened a pull request: https://github.com/apache/cordova-windows/pull/37 CB-7144 Windows8 run fails if replace default certificate https://issues.apache.org/jira/browse/CB-7144 You can merge this pull request into a Git repository by running: $ git pull https://github.com/MSOpenTech/cordova-windows CB-7144 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-windows/pull/37.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #37 ---- commit dabf44423d1aecbc927578283a7c23f0c1ccaba5 Author: sgrebnov <v-seg...@microsoft.com> Date: 2014-07-16T12:56:28Z CB-7144 Windows8 run fails if replace default certificate ---- > Windows8 run fails if replace default certificate > ------------------------------------------------- > > Key: CB-7144 > URL: https://issues.apache.org/jira/browse/CB-7144 > Project: Apache Cordova > Issue Type: Bug > Components: Windows 8 > Reporter: Sergey Grebnov > Assignee: Sergey Grebnov > > This occurs in the following situations: > 1. User has replaced his original certificate (.pfx) with another one, or > changed his certificate inside Visual Studio. Cordova script incorrectly > handles this situation so runs .ps file with ‘–force’ parameter (since we > test for Developer license only). > 2. (unlikely) Publisher certificate was removed from local certificates’ > store (manually or automatically). > 3. (unlikely) Some error occurred during first launch of ‘cordova run > windows8’ on clean machine, so Developer license was acquired but no > publisher certificate was installed. > In all situations above 'cordova run windows8' will fail with the following > error > Before installing this app, you need to do the following: > - Install the signing certificate > You must provide administrator credentials to proceed. Please run this script > ithout the -Force parameter or from an elevated PowerShell window. > powershell -ExecutionPolicy RemoteSigned ". > .\\cordova\lib\WindowsStoreAppUtils > ps1; Start-Locally 'io.cordova.hellocordova'" > ActivateApplication: ! > Get-AppxPackageManifest : Cannot validate argument on parameter 'Package'. The > argument is null or empty. Provide an argument that is not null or empty, and > then try the command again. > At > C:\Users\clantz\Documents\cordova\win8run\platforms\windows8\cordova\lib\Win > dowsStoreAppUtils.ps1:108 char:41 > + $manifest = Get-appxpackagemanifest $package > + ~~~~~~~~ > + CategoryInfo : InvalidData: (:) [Get-AppxPackageManifest], Para > meterBindingValidationException > + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Windo > ws.Appx.PackageManager.Commands.GetAppxPackageManifestCommand > Exception calling "ActivateApplication" with "4" argument(s): "Value does not > fall within the expected range." > At > C:\Users\clantz\Documents\cordova\win8run\platforms\windows8\cordova\lib\Win > dowsStoreAppUtils.ps1:115 char:5 > + > $appActivator.ActivateApplication($applicationUserModelId,$null,[StoreAppRun > ... > + > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~ > + CategoryInfo : NotSpecified: (:) [], MethodInvocationException > + FullyQualifiedErrorId : ArgumentException > Error: > C:\Users\clantz\Documents\cordova\win8run\platforms\windows8\cordova\run > bat: Command failed with exit code 2 > at ChildProcess.whenDone > (C:\Users\clantz\AppData\Roaming\npm\node_modules\ > ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23) > at ChildProcess.EventEmitter.emit (events.js:98:17) > at maybeClose (child_process.js:735:16) > at Process.ChildProcess._handle.onexit (child_process.js:802:5) -- This message was sent by Atlassian JIRA (v6.2#6252)