[桌面转换器] UWP桌面桥接ProgramData [英] [Desktop Converter]UWP Desktop Bridge ProgramData

查看:61
本文介绍了[桌面转换器] UWP桌面桥接ProgramData的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将win32应用程序转换为UWP(即使用DAC将旧的.exe安装程序转换为appx包)。转换工作正常,我得到一个我可以安装的appx包。但是,在安装过程中,win32应用程序在C:/ ProgramData / my_setup_log_folder中创建
文件夹,该文件夹在appx包中成为VFS / Common AppData / my_setup_log_folder。当我安装转换后的安装程序时,不会创建文件夹C:ProgramData / my_setup_log_folder,然后该应用程序将无法启动。如果我
手动创建文件夹,应用程序就会启动。



我在注册表中查找了常见的AppData密钥但没有帮助。根据我发现的一些话题,问题是由于UWP app无法在AppData中写入文件。这样对吗?如果是,我可以绕过它,还是让我在我的应用程序的设置过程中为另一个更改C:ProgramData / my_setup_log_folder



谢谢: - )

解决方案

嗨daufinsyd,


>>"是不是?如果是,我可以绕过它,还是让我在我的应用程序的设置过程中为另一个更改C:ProgramData / my_setup_log_folder?"


是。转换后,ProgramData将重定向到C:\Program Files \ WindowsApps \ package_name \ VFS \ Common AppData \。这是正确的行为。您的问题可能出在其他
的地方。我想知道你的应用程序在启动时是否对该文件夹进行了一些操作。例如,您的应用程序将在此文件夹中创建一些文件等。


最好的问候,



Hi, I try to convert an win32 application to UWP (namely convert the old .exe installer to an appx package using the DAC). The conversion works fine and I get an appx package that i can install. However, during the installation process the win32 app create a folder in C:/ProgramData/my_setup_log_folder which becomes VFS/Common AppData/my_setup_log_folder in the appx package. When I install the converted installer, the folder C:ProgramData/my_setup_log_folder isn't created and then the app won't launch. If I create the folder manually the app starts.

I looked in the registry for Common AppData key but didn't help. According to some topic I found, the problem is due to the fact that UWP app cannot write files in AppData. Is it right? And if yes can I bypass it or have I to change C:ProgramData/my_setup_log_folder for another in the setup process of my application ?

Thanks :-)

解决方案

Hi daufinsyd,

>>" Is it right? And if yes can I bypass it or have I to change C:ProgramData/my_setup_log_folder for another in the setup process of my application ?"

Yes. After conversion, the ProgramData is redirected to C:\Program Files\WindowsApps\package_name\VFS\Common AppData\. It’s correct behavior. Your issue might be on other places. I want to know if your app do some operations for this folder when it’s starting. For example, your app will create some files in this folder etc.

Best Regards,

Xavier


这篇关于[桌面转换器] UWP桌面桥接ProgramData的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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