0

如何更改默认按钮的宽度(下一步、取消等)。我想将按钮的宽度增加 20 像素,听起来很简单,但是..

假设我有这样的事情:

# declare name of installer file
outfile "hello world.exe"

# open section
section

# create a popup box, with an OK button and some text
messageBox MB_OK "Now We are Creating Hello_world.txt at Desktop!"

/* open an output file called "Hello_world.txt", 
on the desktop in write mode. This file does not need to exist 
before script is compiled and run */

fileOpen $0 "$DESKTOP\Hello_world.txt" w

# write the string "hello world!" to the output file
fileWrite $0 "hello world!"

# close the file
fileClose $0
# Show Success message.
messageBox MB_OK "Hello_world.txt has been created successfully at Desktop!"


# end the section
sectionEnd

我该怎么做呢?

4

2 回答 2

1

这是您正在寻找的插件,可能是。

于 2013-05-22T07:22:52.497 回答
0

最好的方法可能是使用Resource Hacker编辑 ${NSISDIR}\Contrib\UIs 中的文件之一,然后ChangeUI IDD_INST myui.exe在您的脚本中使用。

另一种选择是在运行时使用系统插件调用 user32::SetWindowPos ...

于 2013-05-21T19:35:35.513 回答