[DAC | DesktopAppConverter | Centennial]从安装文件夹访问文件 [英] [DAC | DesktopAppConverter | Centennial] Accessing Files from Install Folder

查看:64
本文介绍了[DAC | DesktopAppConverter | Centennial]从安装文件夹访问文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个MSI安装程序将程序安装到C:\Program Files(x86)\ Productname,目录结构如下:

I have an MSI Setup that installs a program to C:\Program Files (x86)\Productname with a directory structure like this:


  • C:\Program Files(x86)\ Productname
  • C:\Program Files(x86)\ Productname \ Bin
  • C:\Program Files(x86)\ Productname \Data
  • C:\Program Files(x86)\ Productname \ Data \ContentA
  • C: \Program Files(x86)\ Productname \Data\ContentA\FileA
  • C:\ Program Files(x86)\ Productname \ Data \ContentA\FileB
  • C:\Program Files(x86)\ Productname \Data \ContentB
  • C:\Program Files(x86)\ Productname \Data \ContentB\FileA

依旧。

产品代码通过引用其根目录来了解其数据目录:".. \Data"从那里访问文件通过它们的路径直接引用它们:"ContentA\FileA"。每个文件方法都知道如何通过搜索已注册的目录来查找各个文件的
;通常只有一个,即数据的根目录。

The Code of the product knows its data directory by referencing its root like this: "..\Data" and from there on accessing files by directly referencing them via their path like this: "ContentA\FileA". Every file method knows how to find the respective files by searching through registered directories; normally there's only one, namely the datas' root directory.

我能够用DAC成功转换我的应用程序,签名并部署它。但是,当.exe(存在于bin目录中)尝试查找数据文件时,它无法找到它。在WindowsApp文件夹中,bin和数据文件夹
与每个预期文件都以相同的方式存在,我的MSI将部署它们。

I was able to successfully convert my application with the DAC, sign and deploy it. However, when the .exe (which exists in the bin directory) tries to locate a data file, it cannot find it. Within the WindowsApp Folder, both the bin and the data folder exist with every single expected file the same way, my MSI would deploy them.

为什么应用程序无法找到数据文件?

Why is the application not able to locate the data files?

我认为这与UWP应用程序的工作方式有关,对吧?但是,我是新手,并且非常感谢这方面的一些提示。

I assume this has something to do with the way UWP apps work, right? However, I am new to this and would really appreciate some hints on this.

感谢阅读和期待建议,

Christian。

Christian.

推荐答案

Christian Jacob,

Hi Christian Jacob,

为了给你一个最好的答案,我们需要要做更多的研究,可能会有一段时间的延迟。提前感谢你的耐心。

In order to give you a best answer, we need to do more research, it may be some time delay. Appreciate you patience in advance.


这篇关于[DAC | DesktopAppConverter | Centennial]从安装文件夹访问文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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