!include "${NSISDIR}\Contrib\Modern UI\System.nsh" !define MUI_PRODUCT "FAMAS" !define MUI_VERSION "Build 105" !define MUI_NAME "FAMAS Network Client ${MUI_VERSION}" !define VER_MAJOR 2 !define VER_MINOR 0b0 !define MUI_WELCOMEPAGE !define MUI_DIRECTORYPAGE !define MUI_FINISHPAGE !define MUI_FINISHPAGE_NOREBOOTSUPPORT !define MUI_ABORTWARNING !define MUI_TEXT_WELCOME_INFO "\r\n\r\nThis will install ${MUI_PRODUCT} on your computer.\r\n\r\n\r\n\r\n" !define MUI_UI "${NSISDIR}\Contrib\UIs\modern.exe" !insertmacro MUI_LANGUAGE "English" !insertmacro MUI_SYSTEM !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS !insertmacro MUI_RESERVEFILE_SPECIALINI !insertmacro MUI_RESERVEFILE_SPECIALBITMAP ; ==INSTALLER OPTIONS============================================ ; Set Installer Output Name OutFile "..\outgoing\famas_build105_client.exe" Icon "..\resources\setup.ico" ; Define Options ShowInstDetails nevershow SetDateSave on InstallDir $PROGRAMFILES\FAMAS InstallDirRegKey HKLM SOFTWARE\FAMAS "" ; ==CORE COMPONENTS============================================ Section "-Required Components" ; Set Overwrite only if newer version SetOverwrite ifnewer ; Set Out Path SetOutPath $SYSDIR ; Combo Box OCX Control File "..\library\comboboxlb.ocx" RegDll $SYSDIR\comboboxlb.ocx ; VS Printer/Reporter File "..\library\vsprint7.ocx" File "..\library\vsrpt7.ocx" RegDll $SYSDIR\vsprint7.ocx RegDll $SYSDIR\vsrpt7.ocx ; DevPower Button Bar File "..\library\buttonbar.ocx" RegDll $SYSDIR\buttonbar.ocx ; Extended List View Control File "..\library\extlvctl.ocx" RegDll $SYSDIR\extlvctl.ocx ; MBSplitter Control File "..\library\mbsplit.ocx" RegDll $SYSDIR\mbsplit.ocx ; MS Masked Edit Control File "..\library\msmask32.ocx" RegDll $SYSDIR\msmask32.ocx ; MS Tabbed Dialog Control File "..\library\tabctl32.ocx" RegDll $SYSDIR\tabctl32.ocx ; MS Windows Common Controls 6.0 File "..\library\mscomctl.ocx" RegDll $SYSDIR\mscomctl.ocx ; MS Windows Common Controls 6.0 - II File "..\library\mscomct2.ocx" RegDll $SYSDIR\mscomct2.ocx ; Sax Smart UI 2 File "..\library\smartui2.ocx" RegDll $SYSDIR\smartui2.ocx" ; SimpleDate Control File "..\library\simpledate2.ocx" RegDll $SYSDIR\simpledate2.ocx ; MS VB6 Runtime File "..\library\msvbvm60.dll" RegDll $SYSDIR\msvbvm60.dll ; Write Core Files Always SetOverwrite on SetOutPath $INSTDIR File "..\client\client.exe" ; Create Shortcuts CreateShortCut "$SMPROGRAMS\FAMAS.lnk" "$INSTDIR\client.exe" ; Write registry key for component license WriteRegStr HKCR Licenses\DFAC6980-45E6-11d4-AC3E-ADBCE8B30410 "" "" SectionEnd ; ============================================================