使用安装程序类创建设置 [英] Create a setup using installer class

查看:50
本文介绍了使用安装程序类创建设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用c#开发了一个Windows应用程序。我现在想要从编码创建一个设置,而不是使用可用的设置创建器。我想使用Installer类或任何其他需要的东西。

我想生成串行密钥,并且还应该防止安装多个pc,例如:如果我想允许安装2然后,如果客户端尝试在第三台PC中安装,则不应允许安装。还应该验证串行密钥。



如果您认为更好,请建议。



先谢谢!!!

I have developed a windows application using c#. I now want to create a setup from coding instead of using the available setup creators. I want to make use of Installer class or any other whichever needed.
I want to generate serial key and should also prevent the installation in number of pc's, for eg: if I want to allow installation for 2 pc's then, if the client tries to install in 3rd pc, it should not allow to install. Verification of serial key should also be done.

Anything new if you think is better please suggest.

Thanks in Advance !!!

推荐答案

我建​​议你阅读两篇文章:

Visual Studio安装项目中的自定义操作 [ ^ ]

创建用于Visual Studio安装项目的自定义对话框 [ ^ ]

和这个问题+答案:自定义Windows安装程序 [ ^ ]



您需要做的就是:

1)创建用户必须输入序列号的对话框,

2)创建数据库 - 必须可以从网上获取(例如在SQL服务器上)

3)检查从该客户端安装了多少个程序副本(我建议你存储用户名,应用程序版本和其他一些有关计算机的信息,如:IP,主板号等。

4)允许用户安装,如果安装限制小于最大值+ 1



试试!
I would suggest you to read two articles:
Custom Action in Visual Studio setup projects[^]
Create custom dialogs for use in your Visual Studio Setup projects[^]
and this question+answer: custom windows installer[^]

All what you need to do is to:
1) create dialog box in which user must type a serial key,
2) create database - must be avalible from web (for example on SQL server)
3) check how many copies of your program have been installed from this client (i would suggest you to store user name, application version and some other information about computer like: IP, mainboard number and others).
4) allow user to install if limit of installation is less then max +1

Try!


这篇关于使用安装程序类创建设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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