简体   繁体   English

在NSIS MUI中在安装完成时向用户显示变量

[英]Displaying variable to user on installation finish in NSIS MUI

I am trying to write a fairly simple installer using NSIS. 我正在尝试使用NSIS编写一个相当简单的安装程序。 I am completely new to installers in general, let alone NSIS so I apologize if this question is easy. 一般而言,我对安装人员是完全陌生的,更不用说NSIS了,如果这个问题很简单,我深表歉意。 It just needs to accomplish 3 things: 它只需要完成三件事:

  1. Write some files to the correct directory in Program Files (x86) (I have that working) 将一些文件写到程序文件(x86)中的正确目录中(我可以正常工作)
  2. Generate a random string (15-20 chars long) and write that string to a file in the installation directory so that the program being installed can use it 生成一个随机字符串(15-20个字符长),并将该字符串写入安装目录中的文件,以便正在安装的程序可以使用它
  3. Present that same random string to the user when the application is finished installing in a way that is easy to copy and paste. 应用程序完成安装后,以易于复制和粘贴的方式向用户提供相同的随机字符串。

I found a plugin that can generate random strings here . 我在这里找到了一个可以生成随机字符串的插件。 I was able to get the plugin to compile but am having trouble getting it to actually work. 我能够编译该插件,但无法使其实际工作。 How can I accomplish this? 我该怎么做? Thanks for any help. 谢谢你的帮助。

PS: I am open to any other installation scripting methods that are available for free. PS:我可以免费使用任何其他安装脚本方法。

Solved: NSIS Dialog Designer allowed me to design a dialog and showed me how to put it into the script successfully. 已解决: NSIS对话框设计器允许我设计一个对话框,并向我展示了如何将其成功放入脚本中。 Definitely Simplified the process. 绝对简化了过程。

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

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