Windows UWP Deployment

237 views
Skip to first unread message

mcw

unread,
Nov 17, 2016, 5:09:11 PM11/17/16
to CodenameOne Discussions
I have been following the instructions in the developer guide for the deployment of Windows UWP app. I have deployed my app on both a Windows 10 Phone and Desktop with the appropriate builds.

You don't mention anything about installing a new build.

I am finding that I cannot install a new build over an existing app. i have to delete the existing app first and then install my new build. This means that I lose my data and it makes testing very time consuming.

This happens with both the phone and desktop builds.

When installing a new build on a Windows 10 phone I get:

Failure reason: Failed to start deployment. Failure text: The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details. (0x80073cfb)

When installing a new build on the desktop I get:

At C:\Temp\fbe17252-ad37-4e0b-bdfa-233debc9e17e-1479417903578-UWPApp_3.53.1.0_Test\Add-AppDevPackage.ps1:392 char:13
+             Add-AppxPackage -Path $DeveloperPackagePath.FullName -For ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceExists: (C:\Temp\fbe1725..._x86.appxbundle:String) [Add-AppxPackage], PSInvalidO
   perationException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

Error: Could not install the app.
Press Enter to continue...:

How can I install a new build without uninstalling the app first?

Thanks
 

Steve Hannah

unread,
Nov 17, 2016, 5:47:28 PM11/17/16
to codenameone...@googlegroups.com
You can use the build hint windows.build.version to increment the build version each time you build.   Default value is 0.0.
So first build do
windows.build.version=1.0

Next time
windows.build.versioln=2.0

or
windows.build.version=1.1

etc...

The version just can't be the same as the existing one you have installed.

This build version is effectively appended to the end of your app's actual version.

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/63ded974-f5f8-481c-8761-a2271af139ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages