如何进行C#窗口应用程序的设置 [英] How to make a setup of C# window application

查看:75
本文介绍了如何进行C#窗口应用程序的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用第三方软件进行项目设置,安装后该软件将在一年后失效.

How to make a setup of project with third party software and after installation the software will expire in one year.

推荐答案

有关创建C#窗口应用程序的设置,请按照以下步骤操作
中的答案 1. 为C#Windows应用程序创建设置 [ ^ ]
2. 制作C#安装程序应用程序,并将.NET Framework安装程序包含在安装程序中 [如何使用到期日期创建安装程序中的答案? [ ^ ].
For creating setup of C# window application follow the answers in
1. Create Set up For C# windows Application[^]
2. Make an Installation program for C# applications and include .NET Framework installer into the setup[^]
and
for implementing Expiry Date functionality follow the answers in How to Create Setup with Expiry Date?[^].


新项目"-其他项目类型"中有一个选项,您可以在其中选择设置和部署"
There is Option in "New Project" - "Other Project Types" here you can select a "Setup and Deployement"


要创建Windows应用程序的设置,您需要从解决方案中添加新项目.
链接 [应用程序试用版. [ MSDN跟踪期问题. [ ^ ]
试用版安全问题 [
For creating setup of your windows application you need to add new project from solution.
The detailed pictorial representation shown in this Link[^].

I am assuming you want to install some prerequisites(Third party software like .net framework, Crystal reports, Sql server etc.) before your actual application''s installation you can follow below steps.

1) Go to Solution Explorer.
2) Right click on setup project.
3) Click on Properties.
4) Click on Prerequisites button.
5) Select your packages.
6) Below to that, Select second option radio button i.e. Download prerequisites from the same location as my application.
7) Build the application.

Now your build with your required prerequisites in it.

For Trial Period: You can store the installation date in the registry when your applications gets installed & checks every time when your application starts whether it completes the 365 days or not but it has some pitfalls. For more detail you can follow below links.

Application Trial Maker.[^]
MSDN Trail period question.[^]
Trial Version security problem[^]


这篇关于如何进行C#窗口应用程序的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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