kfank
31st January 2008 01:59 UTC
Trouble hiding BACK button in instfiles page
I am using the standard UI (not MUI) and am trying to hide the <Back button on the instfiles page. In my show-creation callback for this page I have the following code:
GetDlgItem $0 $HWDPARENT 3
ShowWindow $0 ${SW_HIDE}
This works fine until the installation completes. Then the sub-caption on the dialog changes to "Completed", the Close button gets focus and the <Back button is redrawn (although not enabled).
Is there anyway to keep this button hidden?
Red Wine
31st January 2008 08:41 UTC
Is it really a trouble? The button is disabled.
Afrow UK
31st January 2008 10:23 UTC
Try putting it in .onInstSuccess + .onInstFailed as well.
Stu
kfank
31st January 2008 17:57 UTC
Yes, I would like it gone. It looks funny to have it appear disabled at the end of the process.
Putting the code in .onInstSuccess does not work as this function is not called until the user clicks Close on the instfiles dialog.
Instructor
26th March 2009 17:20 UTC
kfank
I was searching answer too. Here is some workaround:
Name "Test"
OutFile "Test.exe"
Section
;Hide Cancel button
GetDlgItem $0 $HWNDPARENT 2
ShowWindow $0 0
;Hide Back button
GetDlgItem $0 $HWNDPARENT 3
System::Call 'user32::MoveWindow(i $0, i 0, i 0, i 0, i 0, i 1)'
SectionEnd