如何更改默认nsis按钮的宽度(下一步,取消等..)

时间:2013-05-21 15:07:01

标签: nsis

如何更改默认按钮的宽度(下一步,取消等等) 我想将按钮的宽度增加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

我将如何做到这一点?

2 个答案:

答案 0 :(得分:1)

答案 1 :(得分:0)

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

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