简体   繁体   English

创建安装程序

[英]Creating Installer

What I want to do is when the user installs my Application is to create a demo licence for them. 我想做的是,当用户安装我的应用程序时,就是为他们创建演示许可证。 The demo licence will be valid for a limited amount of time. 演示许可证将在有限的时间内有效。 My question is how can I do that in the installer project, is it even possible to create dynamic files in there? 我的问题是我该如何在安装程序项目中执行此操作,甚至可以在其中创建动态文件吗?

The difficulty is not creating a license. 困难在于不创建许可证。 It is more of a problem to make the application apply the intent of the license. 使应用程序应用许可证的意图更成问题。

If you assume that your software is adequately secure on the client (from decompilation, for example) then you can use a service on a trusted server to generate the license and return this to the client for subsequent use. 如果您假设您的软件在客户端上具有足够的安全性(例如,从反编译中起),则可以使用受信任服务器上的服务来生成许可证,并将其返回给客户端以供以后使用。

If you can't do this, there is no way to prevent the user from replaying the installation process to generate additional valid licenses at will. 如果您不能执行此操作,则无法阻止用户重播安装过程以随意生成其他有效许可证。

If you have a commercial application, it will almost certainly be cheaper to use a commercial license wrapper to manage the licensing. 如果您有商业应用程序,那么使用商业许可证包装程序来管理许可几乎肯定会便宜一些。

There is a great (and free) installer called Inno Setup (see http://www.jrsoftware.org ) 有一个很棒的(免费)安装程序,称为Inno Setup(请参阅http://www.jrsoftware.org )。

This will enable you to create an installer. 这将使您能够创建安装程序。

There is a plugin called Inno Download plugin ( http://mitrich.net23.net/?/inno-download-plugin.html ) 有一个名为Inno Download插件的插件( http://mitrich.net23.net/?/inno-download-plugin.html

An idea would be to use the download plugin to include "Demo" dlls or files which will expire? 一个想法是使用下载插件包含将要到期的“ Demo” dll或文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM