how to dysplay bitmap in description field under text (i make some custom where image can fit)
[IMG]http://addony.parba****temp/ro/lolipack_imgs/setup1.jpg[/IMG]
how to make section Readonly witouth defining instalation types like full, standard, etc? (i mean readonly not readonly and hiden)
and is there sum Modern gui witch is biger(higher and widther)?
display bmp (or jpg (: ) in description, RO section witouth install type combobox
8 posts
Section "blah"
SectionIn RO
SectionEnd
SectionIn RO
SectionEnd
and why i cant use
Var verze
Function promeny
StrCpy $verze "2"
FunctionEnd
and then
File "G:\gamez\ro\!moje\pack1\readme_lolipack_v${verze}.txt"
?
it look for file "G:\gamez\ro\!moje\pack1\readme_lolipack_v${verze}.txt" and not "G:\gamez\ro\!moje\pack1\readme_lolipack_v2.txt"
Var verze
Function promeny
StrCpy $verze "2"
FunctionEnd
and then
File "G:\gamez\ro\!moje\pack1\readme_lolipack_v${verze}.txt"
?
it look for file "G:\gamez\ro\!moje\pack1\readme_lolipack_v${verze}.txt" and not "G:\gamez\ro\!moje\pack1\readme_lolipack_v2.txt"
remove the { and }, these aren't used for variables but for defines
Originally posted by Yathoshoit don't work witouth { and } too ):
remove the { and }, these aren't used for variables but for defines
edit: hmm i RTFM again and i think it accpets only variables if /oname ...
edit2: still not work ))):
..... i want to specify file in top of script and then use it file, readme, uninstall etc ... maybe it can be done some other other way ...
Anyone have a tip here?
(to insert a little image under the text with Modern UI)
(to insert a little image under the text with Modern UI)
Use !define not Var. You are mixing run time variables with compile time.
For the description image have a look at this topic:
Stu
For the description image have a look at this topic:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Stu
!include MUI2.nsh
!define APPNAME "COMPONENTS; BitmapDesc"
name "${APPNAME}"
outfile "$%temp%\${APPNAME}.exe"
RequestExecutionLevel user
!define MUIDESCBITMAPDIALOGRESOURCE "COMPONENTS; BitmapDesc.exe" ;new components page with a static control (SS_BITMAP)
!define MUIDESCBITMAPID 1337 ;I used 1337 as the ID in resource hacker
!define MUIDESCBITMAPFILEPREFIX "compdesc" ;my files are named compdesc0.bmp and compdesc1.bmp
var /Global DescBitmapHandle
ReserveFile "${MUIDESCBITMAPFILEPREFIX}*.bmp"
Function SetDescBitmap
${NSD_FreeImage} $DescBitmapHandle
FindWindow $1 "#32770" "" $HWNDPARENT
GetDlgItem $1 $1 ${MUIDESCBITMAPID}
;Should already be a bitmap... ${NSD_AddStyle} $1 ${SS_BITMAP}
${NSD_SetImage} $1 "$pluginsdir\secdesc$0.bmp" $DescBitmapHandle
FunctionEnd
!macro RemoveDescBitmap
${NSD_FreeImage} $DescBitmapHandle
StrCpy $DescBitmapHandle 0
!macroend
Function CompShow
!insertmacro RemoveDescBitmap
FunctionEnd
Function CompLeave
!insertmacro RemoveDescBitmap
FunctionEnd
Section "hell" Section1
SectionEnd
Section "o there" Section2
SectionEnd
!insertmacro MUI_PAGE_WELCOME
!define MUI_PAGE_CUSTOMFUNCTION_SHOW CompShow
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE CompLeave
!define MUI_CUSTOMFUNCTION_ONMOUSEOVERSECTION SetDescBitmap
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!macro MUIDESCTEXTANDIMAGE s t
!insertmacro MUI_DESCRIPTION_TEXT ${s} "${t}"
${IfNot} ${FileExists} "$pluginsdir\secdesc${s}.bmp"
File "/oname=$pluginsdir\secdesc${s}.bmp" "${MUIDESCBITMAPFILEPREFIX}${s}.bmp"
${EndIf}
!macroend
ChangeUI IDD_SELCOM "${MUIDESCBITMAPDIALOGRESOURCE}" ;this has to come after the MUI pages so it does not replace our new dialog
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUIDESCTEXTANDIMAGE ${Section1} "foo"
!insertmacro MUIDESCTEXTANDIMAGE ${Section2} "bar baz"
!insertmacro MUI_FUNCTION_DESCRIPTION_END