简体   繁体   English

在NSIS中创建自定义窗口

[英]Creating custom windows in NSIS

I want to customize our installer which is based on NSIS. 我要自定义基于NSIS的安装程序。 My question is could we create custom windows? 我的问题是我们可以创建自定义窗口吗? Where I mean not customizing Modern UI or other built-in surface, but building a totally new look with custom Window header, buttons and other elements like list where all element have other state, and all of the states are represented with an animated item before the text. 我的意思不是自定义Modern UI或其他内置表面,而是使用自定义Window标题,按钮和其他元素(如list)构建全新外观,其中所有元素都具有其他状态,并且所有状态之前都用动画项表示文本。

So I want to develop my look from ground to the peak. 因此,我希望将自己的外观从地面发展到高峰。 This can be done somehow? 这可以以某种方式完成吗?

You can do this using a resource hacker of your choice, eg PE Explorer , XNResourceEditor , Resource Hacker FX or good old ResHacker . 您可以使用您选择的资源黑客来执行此操作,例如PE ExplorerXNResourceEditorResource Hacker FX或旧的ResHacker You'll have to make sure to use the same IDs for the controls, so you probably best start by editing on of the existing UIs. 您必须确保对控件使用相同的ID,因此最好从对现有UI进行编辑开始。

Like idleberg said you have to edit one of the .exe resource files (in the Contrib folder) with a resource editor. 就像idleberg所说,您必须使用资源编辑器编辑其中一个.exe资源文件(在Contrib文件夹中)。 To apply the new UI you have to use the ChangeUI instruction. 要应用新的UI,您必须使用ChangeUI指令。 You can change all pages or just a single page... 您可以更改所有页面或仅更改一个页面...

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

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