Archive: Hide the ShowDetails button and listBox on installfiles page?


Hide the ShowDetails button and listBox on installfiles page?
I want to hide the Show Details Button and ListBox on InstallFils page with code.How to do that?

I tried to do with the following way,but failed.

GetDlgItem $0 $HWNDPARENT 1027 (or 1016)
ShowWindow $0 ${SW_HIDE}

So I did that with "Resource Hacker.exe".Though I succeeded,I meet troubles on my Uninstall.exe.I want to show the button and listbox on uninstall UI.

the pic in attachment is the result I changed the UI of install files with "Resource Hacker.exe" and some codes.


Where did you put this code:


GetDlgItem $0 $HWNDPARENT 1027
ShowWindow $0 ${SW_HIDE}

I put the code here:

!macro MUI_FUNCTION_INSTFILESPAGE PRE SHOW LEAVE

Function "${PRE}"
GetDlgItem $0 $HWNDPARENT 1027
ShowWindow $0 ${SW_HIDE}
.....


Because it suppose to go in SHOW.
Are you use the correct ID of the button...I'm in linux right now, can't help that much


The ID is correct.I want to hide the ShowDetails button and ListBox when install.and show them when uninstall.



FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1027
ShowWindow $0 ${SW_HIDE}

:)

Thank you very much.The ShowDetails button was hiden like the following way.
_______________________________________________________
!macro MUI_FUNCTION_INSTFILESPAGE PRE SHOW LEAVE

Function "${PRE}"
....
FunctionEnd

Function "${SHOW}"
;;;;put the code here;;;
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 1027
ShowWindow $1 ${SW_HIDE}
;;;;;;;;;;;;;;;;;;;;;;;;
!insertmacro MUI_PAGE_FUNCTION_CUSTOM SHOW
FunctionEnd
____________________________________________________________


Simply use:

ShowInstDetails nevershow

Originally posted by kichik
Simply use:
ShowInstDetails nevershow
And where's the fun of hardcore code :rolleyes:

:up: :up: :up: :up: :up: :up: :up: :up: :up: :up: :D :D :D :D :D :D :D :D :D :D :D :D :D :D