如何使Visual Studio安装程序在安装过程中删除文件?

发布于 2025-01-28 23:48:42 字数 415 浏览 2 评论 0原文

我已经有当应用程序在程序文件目录中安装时,找出AppSettings在哪里存储在哪里

现在,接下来的事情是找出如何使应用程序安装程序也更新该位置。因为显然,Microsoft Windows不这样做。

当该应用程序安装在程序文件中时,您尝试更新其设置文件时,设置文件实际上保存到另一个位置:c:\ users \ user \ user \ appdata \ local \ local \ virtualstore \ virtualstore \ virtualstore \ program files(x86)\ company \ app

如何如何让Visual Studio安装程序在安装过程中删除此文件?

I already had trouble finding out where appSettings get stored when the app is installed in program files directory.

Now the next thing is finding out how to make the app installer update that location too. Because obviously, Microsoft Windows doesn't do it.

When the app is installed in program files and you try to update its settings file the setting file actually got saved to another location: C:\Users\user\AppData\Local\VirtualStore\Program Files (x86)\company\app

How to make Visual Studio Installer remove this file during installation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文