Answered by:
Metro App: Uninstall and ReInstall of newer version

Question
-
Hi all,
During the reinstallation of newer verion of the same app , how i can prevent the data lose.
Suppose say i have some folders and files in app localfolder and I will get a newer version of the same app. If i install the newer version folder and files should be avialable to the newer version as well. Please give me an hint how can i achive this.
Regard's
Gopikris
Wednesday, August 21, 2013 4:44 AM
Answers
-
If you update the app without uninstalling then the application data won't be removed.
If the user uninstalls the app then the local application data will be removed. Roamed data will be removed from the local machine but will persist in the cloud for some time after the last installation is removed. This allows the user to uninstall and reinstall while maintaining the roamed data.
--Rob
- Marked as answer by Xiaoliang Chen - MSFTModerator Friday, August 30, 2013 2:01 AM
Wednesday, August 21, 2013 6:20 AMModerator
All replies
-
If you update the app without uninstalling then the application data won't be removed.
If the user uninstalls the app then the local application data will be removed. Roamed data will be removed from the local machine but will persist in the cloud for some time after the last installation is removed. This allows the user to uninstall and reinstall while maintaining the roamed data.
--Rob
- Marked as answer by Xiaoliang Chen - MSFTModerator Friday, August 30, 2013 2:01 AM
Wednesday, August 21, 2013 6:20 AMModerator -
we tried with sample application not working , it is giving the following error. Please help us .
We are getting following Error
Installing package...
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, Install failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CF9)
The current user has already installed an unpackaged version of this app. A packaged version cannot replace this. The
conflicting package is 052b7431-f9f4-4333-b6fa-cc555d53513312 and it was published by CN=sps5kor.
NOTE: For additional information, look for [ActivityId] 91f72c27-84ba-0000-97d6-1e92ba84ce01 in the Event Log or use
the command line Get-AppxLog -ActivityID 91f72c27-84ba-0000-97d6-1e92ba84ce01
At C:\Users\sps5kor\Documents\AppPack\HelloWorld_3.0.0.6_AnyCPU_Test\Add-AppDevPackage.ps1:401 char:13
+ Add-AppxPackage -Path $DeveloperPackagePath.FullName -ForceApplicati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\sps5ko...0.6_AnyCPU.appx:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
Error: Could not install the package.
Press Enter to continue...:
Thursday, August 22, 2013 9:59 AM -
This generally occurs when you mix development and deployed installs of the app.
Please see Prashant's blog entry Registration of the app failed. Another user has already installed a packaged version of this app. An unpackaged version cannot replace this… for more details and information on how to clean it up.
--Rob
Thursday, August 22, 2013 7:48 PMModerator