简体   繁体   English

使用NSIS的自定义安装程序包

[英]Custom Installer package using NSIS

I have an installer where all the database, server, connection and authentication information is collected at the end of the installation. 我有一个安装程序,在安装结束时会收集所有数据库,服务器,连接和身份验证信息。

Now I want to give an option to the user to create a custom install package at the end of installation with all the database, server, connection and authentication information pre-configured. 现在,我想为用户提供一个选项,使其在安装结束时创建一个自定义安装程序包,并预先配置所有数据库,服务器,连接和身份验证信息。

So that when the custom install package is run for the next time,all the information previously entered is retained and the installation should complete without having the user to enter the configurations again. 因此,当下次运行自定义安装软件包时,将保留先前输入的所有信息,并且安装应完成,而无需用户再次输入配置。

I guess you could store the information in a .ini file that the installer reads from if it is in the same directory as the installer ( $ExeDir ). 我猜您可以将信息存储在安装程序从中读取的.ini文件中,如果该文件与安装程序( $ExeDir )位于同一目录中。

It is also possible to append data to the end of the installer .exe and read it back later but you would have to make a copy of the .exe because you cannot write to it while it is running. 也可以将数据附加到安装程序.exe的末尾并稍后再读回,但是您必须制作.exe的副本,因为在运行时无法对其进行写入。

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

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