Skip to content
⌘ NSIS Forum Archive

Please Help. How To Add Background image & Looped Audio?

5 posts

Albania#

Please Help. How To Add Background image & Looped Audio?

How to add background image and looped audio when install wizard starts?

How to add this to existing script?

Please help.

I don't know how to program.

I used "NSIS Quick Setup Script Generator".

How to add additional background image on full screen and looped audio into script generated by "NSIS Quick Setup Script Generator"?

I tried to add script from example "BgImage" but many errors pop out.

When I tried to fix errors and deleted some lines and script compiled there is no difference, no background image.


Is someone could explain me how to add those to my script? Background image and looped music? And put simple script of them?
What plugins I need? And where to put it into my script?


Here is the script:
############################################################################################
# NSIS Installation Script created by NSIS Quick Setup Script Generator v1.09.18
# Entirely Edited with NullSoft Scriptable Installation System
# by Vlasis K. Barkas aka Red Wine red_wine@freemail.gr Sep 2006
############################################################################################

!define APP_NAME "Exapp"
!define COMP_NAME "Exapp"
!define WEB_SITE "http://www.example.com"
!define VERSION "00.00.00.00"
!define COPYRIGHT "example © 2024"
!define DESCRIPTION "example"
!define INSTALLER_NAME "C:\Users\Downloads\NSIS Quick Setup Script Generator\Output\Example\example.exe"
!define INSTALL_TYPE "SetShellVarContext current"
!define REG_ROOT "HKCU"
!define UNINSTALL_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}"

######################################################################

VIProductVersion "${VERSION}"
VIAddVersionKey "ProductName" "${APP_NAME}"
VIAddVersionKey "CompanyName" "${COMP_NAME}"
VIAddVersionKey "LegalCopyright" "${COPYRIGHT}"
VIAddVersionKey "FileDescription" "${DESCRIPTION}"
VIAddVersionKey "FileVersion" "${VERSION}"

######################################################################

SetCompressor ZLIB
Name "${APP_NAME}"
Caption "${APP_NAME}"
OutFile "${INSTALLER_NAME}"
BrandingText "${APP_NAME}"
XPStyle on
InstallDirRegKey "${REG_ROOT}" "${UNINSTALL_PATH}" "UninstallString"
InstallDir "C:\Program Files\Exapp\Exapp"

######################################################################

!include "MUI.nsh"

!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING

!insertmacro MUI_PAGE_WELCOME

!ifdef LICENSE_TXT
!insertmacro MUI_PAGE_LICENSE "${LICENSE_TXT}"
!endif

!insertmacro MUI_PAGE_DIRECTORY

!insertmacro MUI_PAGE_INSTFILES

!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_CONFIRM

!insertmacro MUI_UNPAGE_INSTFILES

!insertmacro MUI_UNPAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

######################################################################

Section -MainProgram
${INSTALL_TYPE}
SetOverwrite ifnewer
SetOutPath "$INSTDIR"
SetOutPath "C:\Program Files\Exapp\Exapp x64"
File "C:\Program Files\Exapp\Exapp\Exapp x64.exe"
SectionEnd

######################################################################

Section -Additional
SetOutPath "C:\Program Files (x86)\Exapp\Exapp x86"
File "C:\Program Files (x86)\Exapp\Exapp x86\Exapp x86\Exapp.exe"
SectionEnd

######################################################################

Section -Icons_Reg
SetOutPath "$INSTDIR"
WriteUninstaller "$INSTDIR\uninstall.exe"

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayName" "${APP_NAME}"
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "UninstallString" "$INSTDIR\uninstall.exe"
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "DisplayVersion" "${VERSION}"
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "Publisher" "${COMP_NAME}"

!ifdef WEB_SITE
WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}" "URLInfoAbout" "${WEB_SITE}"
!endif
SectionEnd

######################################################################

Section Uninstall
${INSTALL_TYPE}
Delete "$INSTDIR\Exapp\Exapp\Exapp 64.exe"

RmDir "$INSTDIR\Exapp x64\Exapp\Exapp"

Delete "$INSTDIR\uninstall.exe"
!ifdef WEB_SITE
Delete "$INSTDIR\${APP_NAME} website.url"
!endif

RmDir "$INSTDIR"

!ifndef NEVER_UNINSTALL
Delete "C:\Program Files (x86)\Exapp\Exapp x86\Exapp x86\Exapp.exe"

RmDir "C:\Program Files (x86)\Exapp\Exapp x86\Exapp x86"

RmDir "C:\Program Files (x86)\Exapp\Exapp x86"
!endif

DeleteRegKey ${REG_ROOT} "${UNINSTALL_PATH}"
SectionEnd

######################################################################

Anders#
http://graphical-installer.com/ maybe.

As for audio, why would you do that to your users? You could probably use the System plug-in to call the MCI API but yeah, why?
Albania#
Originally Posted by Anders View Post
http://graphical-installer.com/ maybe.

As for audio, why would you do that to your users? You could probably use the System plug-in to call the MCI API but yeah, why?
Thanks for the answer Anders.
Yeah I hear about graphic installer. Looks cool but it is paid option. Right now I even don't have credit card. I am looking for free options. I wanna distribute free content.

Why audio? I wanna distribute in installers old 90s or stylized 90s - early 00s audio stuff, plugins, and other more and less cheesy.
Something like demoscene etc. and people like audio installers in stuff like this.
JasonFriday13#
I have an old project that uses older style installers, it's https://nsis.sourceforge.io/InstallSpiderUI. I haven't touched it in over 10 years though, so I don't know if it still works in NSIS 3.
Albania#
Originally Posted by JasonFriday13 View Post
I have an old project that uses older style installers, it's https://nsis.sourceforge.io/InstallSpiderUI. I haven't touched it in over 10 years though, so I don't know if it still works in NSIS 3.
Whoa. Nice. I will check this. Thx!