需要Web部署和Web安装项目(MSI安装程序文件)项目帮助 [英] Web Deployment and Web Setup project (MSI installer file) project help needed

查看:128
本文介绍了需要Web部署和Web安装项目(MSI安装程序文件)项目帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我现在想创建的exe或msi文件应该在任何特定计算机或不同的机器上仅运行一次.

i,e EXE在其生存期内(一次执行)应仅安装一次

例如:我从网站上下载了一个exe文件,我是第一次安装该exe文件,同一下载的exe文件不应第二次安装在同一台计算机或另一台计算机上.

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 now that created exe or msi file should run only once on any particular machine or different machince .

i,e EXE should be installed only one once in its life time(one time execution)

For example: I downloaded an exe from website i have installed the exe for first time , the same downloaded exe should not install in the same machine or different machine for second time.

This the urgent requirnment please help me.

推荐答案

存在一个与安全相关的问题,因此您需要编写自己的安全程序,该程序将随该exe一起附加.第一次运行时,它将在该exe中进行更改,因此它将不会在任何系统上再次运行.
并且还需要根据实现的安全性来修改设置/部署项目逻辑.
its an security related issue, so you need to write your own security program that will attached with that exe and when it will run first time it will make changes in that exe so it will not run again on any of the system.
and also you need to modified your setup/deployment project logic as per that security you implement.


您的PC是否允许您多次安装同一软件副本?我认为Windows不会允许它,除非您设置"removepreviousversion = true".

然后,如果要手动检查应用程序的存在,请考虑
关于在安装过程中在注册表中写入条目,并在尝试再次安装时阅读它...

问候
塞巴斯蒂安
Will your PC allow you to install same copy of software more than once? I don''t think windows will allow it unless you set "removepreviousversion = true".

Then, If you want to check the presence of your application manually, think
about writing an entry in registry while your installation and read it when you try to install it again...

Regards
Sebastian


这篇关于需要Web部署和Web安装项目(MSI安装程序文件)项目帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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