在安装商店应用程序期间将文件部署在localState文件夹中 [英] Deploy files in the localState folder during installation of a store app

查看:416
本文介绍了在安装商店应用程序期间将文件部署在localState文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Windows商店构建一个应用程序,并且需要一些默认数据和示例数据以将它们放在localstate文件夹中( Windows.Storage.ApplicationData.current.localFolder )该应用程序第一次运行。

I am building an app for windows store and I need some default and example data to be in the localstate folder (Windows.Storage.ApplicationData.current.localFolder) when the app run the first time.

文件夹和文件结构有点复杂,我尝试在应用程序的开头复制文件,但是我无法

The folder and files structure is a bit complex and I tryed to copy the files at the start of the application, but I can't manage that way.

在商店应用程序安装过程中是否可以将文件从安装文件夹自动复制到localstate文件夹?

Is it possible to have files being copied automatically from the installation folder to the localstate folder during the store app installation?

推荐答案

不幸的是,当前不支持自定义应用程序安装过程。

Unfortunately, customization of the app install process isn't currently supported. You have to do this as part of your first run processing.

一种可能是将数据作为.ZIP或其他压缩文件包含在包中,并使用适当的库,可在启动时将该文件扩展为文件夹结构。这样可以大大简化您的逻辑。 (我没有值得推荐的图书馆;这只是个主意。)

One possibility is that you include the data in your package as a .ZIP or other compressed file and use an appropriate library to expand that file into a folder structure on startup. That could simplify your logic considerably. (I don't have a library to recommend; it's just an idea.)

这篇关于在安装商店应用程序期间将文件部署在localState文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆