Archive: Install external setup files


Install external setup files
I've been browsing and looking at the examples but I'm still having some trouble with my script. I'm trying to pop up a selection box and then allow users to select the programs they wish to install.

Using the examples provided i've managed to get the window up to select what to install and have managed to get one of my programs to install w/o trouble(note the one that works is a complete hands free install).

Now i'm currently working with real vnc. At the moment I'm just trying to get it to install period. I'll worry about making it silent after I figure this part out.

I've tried using execWait and nsexec:: but with no luck.

My script:
;--------------------------------
;Include Modern UI

!include "MUI.nsh"

;--------------------------------
;General

;Name and file
Name "Application Installer"
OutFile "ApplicationInstaller.exe"

;Default installation folder
;InstallDir "$PROGRAMFILES\AppTest"
;Get installation folder from registry if available
;InstallDirRegKey HKCU "Software\AppTest" ""
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
!insertmacro MUI_PAGE_COMPONENTS
;!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH

;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------

;Installer Sections
ShowInstDetails show
Section "Symantec Antivirus" Antivirus
;SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
;Store installation folder
;WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
;Create uninstaller
;WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd

Section "BlueZone 1 Session" bzone1
;SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
nsExec::ExecToLog '"C:\test\bz1\SETUP.exe"'
SectionEnd

Section "Real VNC" vnc
;SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
ExecWait '"C:\test\bz1\vnc-4_1_1-x86_win32.exe"'
SectionEnd

;--------------------------------
;Descriptions

;Language strings
LangString DESC_Antivirus ${LANG_ENGLISH} "This will protect your computer from viruses."
LangString DESC_bzone1 ${LANG_ENGLISH} "1 Session of blue zone."
LangString DESC_vnc ${LANG_ENGLISH} "Remote Desktop software."

;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${Antivirus} $(DESC_Antivirus)
!insertmacro MUI_DESCRIPTION_TEXT ${bzone1} $(DESC_bzone1)
!insertmacro MUI_DESCRIPTION_TEXT ${vnc} $(DESC_vnc)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

So why is it not popping up the vnc installer? Thanks in advance for any information
I didn't think this script was too long to post let me know if so and i'll edit and attach it.


Note: I realized my directory was off and have since fixed the problem. Any suggestions on how to improve are welcome though.