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:
; Script generated by the HM NIS Edit Script Wizard.I hope anyone can help :(
; 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