0
如何在安裝頁面上更改進度條位置,並將其放置在表單中心而不是默認頂端位置?NSIS中的進度條位置
如何在安裝頁面上更改進度條位置,並將其放置在表單中心而不是默認頂端位置?NSIS中的進度條位置
A)編輯與Resource Hacker的UI文件中的一個,並與ChangeUI
或
乙申請吧)在運行時改變它:
outfile "$%temp%\test.exe"
requestexecutionlevel user
showinstdetails nevershow
Page instfiles "" instfilesshow
Function instfilesshow
FindWindow $9 "#32770" "" $HWNDPARENT
GetDlgItem $8 $9 0x3EC
System::Call '*(i,i,i,i)i.r7' ; Allocate a RECT struct
System::Call 'USER32::GetClientRect(ir9,ir7)'
System::Call '*$7(i,i,i.r0,i.r1)' ; Get inner dialog width/height
System::Call 'USER32::GetWindowRect(ir8,ir7)'
System::Call '*$7(i.r2,i.r3,i.r4,i.r5)'
System::Free $7
IntOp $5 $5 - $3 ; progress height
StrCpy $2 10 ; left padding
IntOp $4 $0 - 20 ; width = dialog - left+right padding
IntOp $0 $5/2
IntOp $1 $1/2
IntOp $1 $1 - $0
!define SWP_NOZORDER 4
System::Call 'USER32::SetWindowPos(ir8,i0,ir2,ir1,ir4,ir5,i${SWP_NOZORDER})'
FunctionEnd
Section
SectionEnd