lovespy108
21st December 2007 02:05 UTC
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.
Joel
21st December 2007 02:31 UTC
Where did you put this code:
GetDlgItem $0 $HWNDPARENT 1027
ShowWindow $0 ${SW_HIDE}
lovespy108
21st December 2007 02:45 UTC
I put the code here:
!macro MUI_FUNCTION_INSTFILESPAGE PRE SHOW LEAVE
Function "${PRE}"
GetDlgItem $0 $HWNDPARENT 1027
ShowWindow $0 ${SW_HIDE}
.....
Joel
21st December 2007 04:07 UTC
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
lovespy108
21st December 2007 04:23 UTC
The ID is correct.I want to hide the ShowDetails button and ListBox when install.and show them when uninstall.
Joel
21st December 2007 04:37 UTC
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1027
ShowWindow $0 ${SW_HIDE}
:)
lovespy108
21st December 2007 05:01 UTC
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
____________________________________________________________
kichik
21st December 2007 09:47 UTC
Simply use:
ShowInstDetails nevershow
Joel
21st December 2007 14:54 UTC
Originally posted by kichik
Simply use:
ShowInstDetails nevershow
And where's the fun of hardcore code :rolleyes:
lovespy108
24th December 2007 08:41 UTC
:up: :up: :up: :up: :up: :up: :up: :up: :up: :up: :D :D :D :D :D :D :D :D :D :D :D :D :D :D