Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th January 2019, 12:07   #1
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 298
Existence a space character in the installer's title default page

I encountered a problem that was a bit strange to me!

Custome Pages haven't Space Character in the last Character [Caption (Title Bar)]


But MUI_PAGES have Space Character in the last Character [Caption (Title Bar)]



HTML Code:
;------------------
XPStyle on
;------------------
!include "MUI.nsh"
;------------------
Caption "Test Title Bar"
;------------------
!insertmacro MUI_PAGE_LICENSE "C:\1.txt"
Page Custom Show_Custom_Page
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE English
;------------------

Function Show_Custom_Page
nsDialogs::Create 1018
Pop $0
;-----
;Work
FindWindow $0 "" "Test Title Bar" #Have not Space
MessageBox MB_OK "Now You Are in Custome_PAGES$\r$\nTitle Bar Without Space Return number: $0 And Find Application With This Title Bar"
;-
;Don't Work
FindWindow $1 "" "Test Title Bar " #Have Space
MessageBox MB_OK "Now You Are in Custome_PAGES$\r$\nTitle Bar With Space Return number: $1 And Don't Find Application With This Title Bar"
;-----
nsDialogs::Show
FunctionEnd


Section


;-----
;Work
FindWindow $3 "" "Test Title Bar " #Have Space
MessageBox MB_OK "Now You Are in MUI_PAGES$\r$\nTitle Bar With Space Return number: $3 And Don't Find Application With This Title Bar"

;-
;Don't Work
FindWindow $4 "" "Test Title Bar" #Have not Space
MessageBox MB_OK "Now You Are in MUI_PAGES$\r$\nTitle Bar Without Space Return number: $4 And Find Application With This Title Bar"
;-----


SectionEnd
r2du-soft is offline   Reply With Quote
Old 7th January 2019, 13:27   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,013
MUI sets the sub caption to " " inside PageEx, I'm guessing that's why.

IntOp $PostCount $PostCount + 1
Anders 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