Exe文件创建器 [英] Exe File Creator
本文介绍了Exe文件创建器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建一个仅安装一次的exe文件,这意味着我们不能在任何计算机上多次使用该exe文件
请帮助
任何帮助都很好.
How to create an exe file that install only once at all,means we cant use the exe file more than one time on any machines
Kindly help
any help will be great
推荐答案
请参见
http://www.codeproject.com/KB/cs/CSSIApp.aspx [ ^ ]
http://codebetter.com/blogs/paul.laudeman/archive/2004/07/17/19576.aspx [
See
http://www.codeproject.com/KB/cs/CSSIApp.aspx[^]
http://codebetter.com/blogs/paul.laudeman/archive/2004/07/17/19576.aspx[^]
我认为他要求的是仅安装一次的exe,此后它的使用量减少了.我知道发生这种情况的一种方式是,在安装时,您可以在用户PC的某个位置(例如MyDocuments)写入一些文件(例如空白的txt文件),然后在尝试进行第二次安装时,exe可以检查该文件是否存在.如果该文件存在,将不会安装,否则将继续进行.您可以检查此内容以供进一步参考.
^ ]
:当用户完成安装并首次运行该应用程序时,可以执行此操作.那时,在用户PC上的任何位置写入txt文件.现在,即使在卸载后,该文件也将始终保留在用户的PC中,因此可以进行检查. :)
阿努拉格(Anurag)
I think that he is asking for an exe which installs only once and after that it becomes use less. One way which I know for this to happen is that while installation you can write some file(say a blank txt file) at some location(say MyDocuments) of user''s PC, and then while attempt for a second installation, exe can check if that file exists or not. In case if the file exists it will not install, otherwise will proceed further. You can check this for further reference.
Check here[^]
: You can do this, when user has completed installation and is running the application for first time. At that time, write a txt file at any place on user''s PC. Now, even after uninstallation, the file will always remain in user''s PC and hence can be checked. :)
Anurag
这篇关于Exe文件创建器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文