Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st December 2009, 17:22   #1
mcp700
Junior Member
 
Join Date: Dec 2009
Posts: 2
Big Problem with Background

Hi,
I have use google and search the forum but i dont become a fullscreen backgroud image behind the installer.
Here is the code:
Quote:
; Script generated by the HM NIS Edit Script Wizard.

; HM NIS Edit Wizard helper defines


!define PRODUCT_NAME "CCCCC"
!define PRODUCT_VERSION "C"
!define PRODUCT_PUBLISHER "TD"
!define PRODUCT_WEB_SITE "www.de"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\addoninstaller.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!include "MUI.nsh"


SetCompressor lzma


; MUI 1.67 compatible ------
!include "MUI.nsh"

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"


; Welcome page
!insertmacro MUI_PAGE_WELCOME
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\L2.exe"
!define MUI_FINISHPAGE_RUN_PARAMETERS "-console"
!insertmacro MUI_PAGE_FINISH

; Uninstaller pages
!insertmacro MUI_UNPAGE_INSTFILES

; Language files
!insertmacro MUI_LANGUAGE "German"

; Reserve files
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; MUI end ------


Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Setup.exe"
InstallDir "$PROGRAMFILES\L2"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
Var CAB
Var DIR
#--------------------------------------------
Function onmyguiinit
BgImage::SetBg /FULLSCREEN 0 0x80 0 0x80 0 0
BgImage::AddImage $EXEDIR\Background.bmp 150 0
function end
#--------------------------------------------
Function .onVerifyInstDir

InitPluginsDir
File /oname=$PLUGINSDIR\CabDLL.dll "${NSISDIR}\Plugins\CabDLL.dll"
#Here we set the global var that will handle the path of our cabinet:
StrCpy $CAB "$EXEDIR\sample.cab"
#Here we set the global var that will handle the target directory of extraction:
StrCpy $DIR "$INSTDIR"
FunctionEnd



Section -default
DetailPrint "CabDLL has started..."
#Let's be sure that the cabinet is in that folder:
IfFileExists $CAB green red

#Sorry cowboy!
red:
DetailPrint "Cabinet not found!!!"
Goto exit

#Eureka!
green:
CreateDirectory $DIR
CabDLL::Ca******ctAll $CAB $DIR
#CabInfo function returns in "$R0" 0 if is a good cab, otherwise error:
StrCmp $R0 "1" exit



exit:
DetailPrint "CabDLL has finished"
SectionEnd
I hope anyone can help
mcp700 is offline   Reply With Quote
Old 23rd December 2009, 11:31   #2
mcp700
Junior Member
 
Join Date: Dec 2009
Posts: 2
can oneone help me whats the simple code to add a background image ???
mcp700 is offline   Reply With Quote
Reply
Go Back   Winamp 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