程序文件(x86)中的WPF应用程序无法成功创建/修改xml / xaml文件 [英] WPF app in Program File(x86) can't create/modify xml/xaml files successfully

查看:92
本文介绍了程序文件(x86)中的WPF应用程序无法成功创建/修改xml / xaml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的WPF应用程序(比如MyApp)中,我有一个选项,我需要创建/修改XML和XAML文件。该应用程序安装在Program Files(x86)\ MyAppFolder中,这些xaml / xml文件的位置位于MyAppFolder中名为Config的子文件夹中。因此,每当我尝试使用MyApp创建或修改xml / xaml文件并在下次重新启动MyApp时,我会收到Windows安装程序的提示,并显示消息请等待Windows配置MyApp



Windows安装程序运行并将我的更改覆盖回原始版本。当我安装应用程序时,我选择Everyone选项为所有用户安装它。该应用程序可供所有用户使用,但适用于我们安装的用户。



此C#/ WPF应用程序需要.NET 4并且我正在运行Windows 7主页溢价。



我使用Visual Studio 2010中的Setup Project类型创建安装程序,如下所示: -



新项目 - >其他项目类型 - >设置和部署 - > Visual Studio Installer - >设置项目



谢谢,

SG

Hi,
In my WPF application (say MyApp), I have an option where I need to create/modify XML and XAML files. The app is installed in Program Files(x86)\MyAppFolder and location of these xaml/xml files is in a subfolder named "Config" within MyAppFolder. So whenever I try to create or modify xml/xaml files using MyApp and relaunch the MyApp next time I get prompted with the windows installer with a message "Please wait while windows configures MyApp"

Windows installer runs and overwrite my changes back to original. When I installed the application I selected "Everyone" option to install it for all the users. The app is available to all the users but works for the user whom we installed from.

This C#/WPF application requires .NET 4 and I am running Windows 7 home premium.

I am creating the installer using the Setup Project type from the Visual Studio 2010 as follows:-

New Project -> Other Project Types -> Setup and Deployment -> Visual Studio Installer -> Setup Project

Thanks,
SG

推荐答案

这里的问题是安装程序。使用不同的安装程序,如NSIS或Inno Setup,你不会得到这种类型的错误,这实际上是修复病毒感染和修改/损坏程序的功能。
The problem here is the Installer. Use a different installer, Like NSIS, or Inno Setup and you'l not get this type of "error", which is actualy a feature to repair virus infected, and modified/damaged programs.


这篇关于程序文件(x86)中的WPF应用程序无法成功创建/修改xml / xaml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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