在运行时更新exe或msi文件中存在的文件 [英] Update the file present inside the exe or msi file during its runtime

查看:79
本文介绍了在运行时更新exe或msi文件中存在的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经在C#.net中创建了一个网站,并使用Web部署和Web安装项目(MSI安装程序文件)创建了ASP.NET部署包.

我想在运行时更新exe或msi文件中存在的文件.
更新应该发生在exe运行时(安装)期间exe内部的文件中.

Hi All,

I have created a website in C#.net and Created ASP.NET deployment package using Web Deployment and Web Setup project (MSI installer file)

I want to update the file present inside the exe or msi file during its runtime.
The update should happen to the file which is present inside the exe during exe run time (installation)

推荐答案

不是一个好主意-您必须在重新编译exe的同时exe正在运行,这可能会导致文件使用错误".

更重要的是,大多数PC上都有一些系统可以将其发现并标记给用户:您听说过反病毒程序吗?

我认为这是一些原始的任何复制系统?它不会工作.部分是由于上述原因,但主要是因为如果我将其下载并写入CD,将会发生什么?
Not a good idea - You would have to recompile the exe while the exe was running, which may cause "file in use errors".

And more importantly, there are systems in place on most PCs to spot that and flag it up to the user: Have you heard of Anti Virus Programs?

I assume this is some primitive any-copying system? It won''t work. Partly because of the above, but mostly because what will happen if I download it, and write it to a CD?


这篇关于在运行时更新exe或msi文件中存在的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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