Archive: Trouble hiding BACK button in instfiles page


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?


Is it really a trouble? The button is disabled.


Try putting it in .onInstSuccess + .onInstFailed as well.

Stu


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.


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