Old 23rd August 2007, 21:30   #1
ummite
Junior Member
 
Join Date: Aug 2007
Location: montreal
Posts: 2
Unhappy Uninstaller, removal of header text

Hi

I've read a lot of post, the documentation etc...

I cannot remove the text "Uninstall my application blabla".. at the upper left of the application. It comes over my left branding (or top) and I really want to get rid of it.

For the install phase, I've been able to found in the documentation the right function to override, it's :

!define MUI_CUSTOMFUNCTION_GUIINIT myGUIInit

and then

Function myGUIInit ; nom arbitraire
skinnedbutton::skinit /NOUNLOAD "$PLUGINSDIR\button.bmp" ; good
Pop $0
StrCmp $0 "success" noerror
MessageBox MB_ICONEXCLAMATION|MB_OK "skinned button error: $0"
noerror:

!define MUI_PAGE_CUSTOMFUNCTION_PRE preFonction ; Pour ne pas avoir de texte dans le graphique
!define MUI_PAGE_CUSTOMFUNCTION_SHOW showFunction ; Pour ne pas avoir de texte dans le graphique
!insertmacro MUI_HEADER_TEXT " " " "

FunctionEnd

and


; CETTE MÉTHODE PERMET, ainsi que preFonction, de supprimer le texte et sous-texte en haut du dialogue.
; Doit être appellée juste avant !insertmacro dialogue
Function showFunction
!insertmacro MUI_HEADER_TEXT " " " "
FunctionEnd

; CETTE MÉTHODE PERMET, ainsi que showFunction, de supprimer le texte et sous-texte en haut du dialogue.
; Doit être appellée juste avant !insertmacro dialogue
Function preFonction
!insertmacro MUI_HEADER_TEXT " " " "
FunctionEnd

But, how can I do the same this for the UNINSTALLER ?
I'm really tired, can't count the hours in the last 3 weeks I've tried to find that. It's probably very very easy, but I can't figure out.

Thanks in advance for ANY help.

Philippe
ummite is offline   Reply With Quote
Old 23rd August 2007, 21:40   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
In the pages' show functions, use GetDlgItem and SendMessage with ${WM_SETTEXT}. There are lots of examples of this.
Use Resource Hacker to identify which static texts you want to change in UIs\modern.exe.

Stu
Afrow UK is offline   Reply With Quote
Old 23rd August 2007, 21:46   #3
ummite
Junior Member
 
Join Date: Aug 2007
Location: montreal
Posts: 2
Is there any harder way to make that?
Ish... I can't beleive there is no simpler way. I mean, it's nearly faster to hex edit the installer to remove that string.
Isn't this string the same for everyone? If yes, I could simply cut&paste instead of resource hacking, I don't want to do advance modification.

If I use UMUI, is it the same as normal NSIS?

Why can't I find any example on the net, a .nsi, that does exactly that?
ummite is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump