NSIS インストーラーの [ファイルのインストール] ページにある読み込みバーの色を変更するにはどうすればよいですか?
次の例では、メッセージ PBM_SETBARCOLOR をロード バー ウィンドウに送信しようとしていますが、ロード バーの色は変わりませんか?
!include MUI2.nsh
!include WinMessages.nsh
InstallDir "abc"
Name "def"
OutFile "def.exe"
!define MUI_PAGE_CUSTOMFUNCTION_SHOW InstFilesPageShow
!insertmacro MUI_PAGE_INSTFILES
!macro RefreshWindow HWND IDC
GetDlgItem $R0 ${HWND} ${IDC}
ShowWindow $R0 ${SW_HIDE}
ShowWindow $R0 ${SW_SHOW}
!macroend
Function InstFilesPageShow
SendMessage 1004 ${PBM_SETBARCOLOR} 0 "COLORREF(0,200,200)" #0xFF0000
System::Call `user32::SendMessage(i R1, i ${PBM_SETBARCOLOR}, i 0, i COLORREF(0,0,0))` #System::Call `user32::SetWindowPos(i R8, i ${HWND_TOP}, i 0, i 0, i ${w}, i ${h}, i ${SWP_NOMOVE})`
#!insertmacro RefreshWindow $HWND 1004
#!insertmacro RefreshWindow $mui.InstallPage 1004
!insertmacro RefreshWindow $HWNDPARENT 1004
FunctionEnd
Section "Dummy"
DetailPrint "Test"
SectionEnd