; MBInstaller.nsi ; MBScope and License Manager Installer ;Alexander Farley April 28 2009 ; ; ;Installs: ;License Manager ;MBScope ;PEF ;User's Guide ;Parallel Port drivers ;Seacom drivers ;---------------------- ;Include modern UI !include MUI2.nsh ;---------------------- ;General ;The name of the installer Name "MBInstaller" ;The installer file to create OutFile "MBInstaller.exe" ;The default installation directory ; (This should be changed to read the Registry Key) InstallDir $DESKTOP\InstallTest ShowUninstDetails show ;---------------------- ;Interface configuration !define MUI_WELCOMEFINISHPAGE_BITMAP C:\WINNT\Profiles\kf1864\Desktop\InstallTest\Backdrop2.bmp ;---------------------- ; Pages !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES ;---------------------- ; Sections Section "Main Section" ;no name SetOutPath $INSTDIR File MBInstaller.nsi WriteUninstaller "uninstall.exe" ;Write Uninstall information so that this program appears in Control Panel -> Add\Remove Programs WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS Test Script" \ "DisplayName" "Test script - to test uninstall from control panel" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS Test Script" \ "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" SectionEnd Section /o "MessageBox Display Section" MessageBox MB_OK "This my message box" SectionEnd Section "Uninstall" Delete $INSTDIR\MBInstaller.exe Delete $INSTDIR\uninstall.exe ;Remember to remove the key from the registry so the program no longer appears in Add\Remove Programs DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\NSIS Test Script" SectionEnd