Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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)