居中 NSIS MUI 标题图像
正如我到目前为止所读到的,NSIS MUI 创建的向导页面的标题图像似乎只能左对齐或右对齐?
是否有可能使图像居中?
As I have read so far, it seems that the header image of a wizard page created by NSIS MUI can be only left or right aligned?
Is there any possibility of centering the image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以用它做任何您想做的事情,但是您需要修改该对话框,该对话框存储在可执行文件的资源中。查看
Contrib\UIs
目录。您需要资源黑客来更改它(modern.exe
是默认值,请参阅Contrib\Modern UI\System.nsh
)。然后,完成后,您可以将MUI_UI
定义为修改后的可执行文件的路径。还要考虑如果将图像居中(或者想将其丢弃),如何获取标题文本。
You can do whatever you want with it—but you will need to modify the dialog, which is stored in a resource in an executable. Take a look in the
Contrib\UIs
directory. You'll need a resource hacker to change it (modern.exe
is the default, seeContrib\Modern UI\System.nsh
). Then when you're done you can defineMUI_UI
to the path to your modified executable.Also consider how you'll get the header text in if you centre the image (or if you want to throw it away).