;****************************************************************************************************** ;Configuration ;****************************************************************************************************** !define VER_MAJOR 9 !define VER_MINOR 0 !define VER_REVISION 0 !define SOURCEDIR "D:\Package\Files" !define RESDIR "D:\Package\Resources" ;!define OutFile "LEONI Apps v${VER_MAJOR}.${VER_MINOR}${VER_REVISION}.exe" SetCompressor lzma InstType "Select from drop down list or individual items";1 InstType "Full (No Data Server)" ;2 InstType "Data Server" ;3 InstType "CarMan";4 InstType "DELTA";5 InstType "Editing";6 InstType "KSK Carousel Workstation";7 InstType "FlashTest";8 InstType "PreBlockClient";9 ;****************************************************************************************************** ;Include ;****************************************************************************************************** !include "MUI.nsh" !include "Sections.nsh" !include Library.nsh ;!include FontName.nsh ;!include FontReg.nsh !include WinMessages.nsh ;****************************************************************************************************** ;General ;****************************************************************************************************** ;Name and file Name "LEONI Applications v${VER_MAJOR}.${VER_MINOR}${VER_REVISION}" ;Default installation folder InstallDir "$PROGRAMFILES\LEONI" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\LEONI" "" ;****************************************************************************************************** ;Variables ;****************************************************************************************************** Var SPGDrv Var DPCIDrv ;****************************************************************************************************** ;Add File Version Info ;****************************************************************************************************** VIProductVersion "${VER_MAJOR}.${VER_MINOR}.${VER_REVISION}.0" VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "LEONI Applications Installer" ; VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "A test comment" VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "LEONI Wiring Systems UK Ltd" ;VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Test Application is a trademark of Fake company" VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© LEONI Wiring Systems UK Ltd" VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Installs LEONI Applications" VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VER_MAJOR}.${VER_MINOR}${VER_REVISION}" ;****************************************************************************************************** ;Interface Settings ;****************************************************************************************************** !define MUI_ICON "${RESDIR}\install1.ico" !define MUI_UNICON "${RESDIR}\uninstall1.ico" !define MUI_HEADERIMAGE !define MUI_ABORTWARNING !define MUI_COMPONENTSPAGE_SMALLDESC !define MUI_HEADERIMAGE_BITMAP "${RESDIR}\LEONI.bmp" ;****************************************************************************************************** ;Pages ;****************************************************************************************************** !insertmacro MUI_PAGE_LICENSE "${RESDIR}\License.txt" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES ;****************************************************************************************************** ;Languages ;****************************************************************************************************** !insertmacro MUI_LANGUAGE "English" !insertmacro MUI_LANGUAGE "Spanish" !insertmacro MUI_LANGUAGE "Romanian" !insertmacro MUI_LANGUAGE "Arabic" ;****************************************************************************************************** ;Macros ;****************************************************************************************************** !macro RegActiveXEXE sSource sInst sApp sLabel ;only print the label editor details if it is actually a label editor! strcmp "1" "${sLabel}" 0 +4 SetDetailsPrint both DetailPrint "Installing Label Editors | Labels | ${sApp}" SetDetailsPrint listonly File "${sSource}${sApp}" ClearErrors Exec '"${sInst}${sApp}" /regserver' IfErrors 0 +2 MessageBox MB_OK "Error Registering ${sInst}${sApp}" !macroend !macro UnRegActiveXEXEDel sPath sApp sLabel ;only print the label editor details if it is actually a label editor! strcmp "1" "${sLabel}" 0 +4 SetDetailsPrint both DetailPrint "Deleting Label Editors | Labels | ${sApp}" SetDetailsPrint listonly ClearErrors ExecWait '"${sPath}${sApp}" /unregserver' IfErrors 0 +2 DetailPrint "Could not UnRegister ${sPath}${sApp}" Delete "${sPath}${sApp}" !macroend !macro CheckSection sRegPath nSection ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "${sRegPath}" StrCmp $R1 "1" 0 +2 SectionSetFlags ${nSection} 1 !macroend !macro IsSectionFlagSet nSection SectionGetFlags ${nSection} $R1 !macroend ;****************************************************************************************************** ;Installer Sections ;****************************************************************************************************** ; ;This section installs everything ; ;****************************************************************************************************** ;The following are the sections used ; 0 - Poseidon ; 1 - Help Files ; 2 - CarMan ; 3 - DELTA and Tools ; 4 - DELTA App ; 5 - DELTA Help ; 6 - - ; 7 - Data Server and Tools ; 8 - DataServer ; 9 - AutoArch ; 10 - - ; 11 - Editing Tools ; 12 - Fastest ; 13 - VCTEditor ; 14 - WCData ; 15 - - ;16 - MGFRobGen ;17 - PowerFuseStats ;18 - KSK Tools ; 19 - Query ; 20 - Sequencer ; 21 - Watch-it ; 22 - - ;23 - TestGen ;24 - VCTInject ;25 - Analysis Tools ;26 - Flashtest ;27 - Label Editors ;28 - PreBlockClient ;****************************************************************************************************** ;Installer sections ;****************************************************************************************************** Section "Poseidon (Required)" SecPoseidon SectionIn RO SetDetailsPrint both DetailPrint "Installing | Removing old installations" SetDetailsPrint listonly !insertmacro UninstallPoseidon "" !insertmacro UninstallHelp "" !insertmacro UninstallCarMan "" !insertmacro UninstallDELTA "" !insertmacro UninstallDELTAHelp "" !insertmacro UninstallDataServer "" !insertmacro UninstallAutoArch "" !insertmacro UninstallFasTest "" !insertmacro UninstallVCTEditor "" !insertmacro UninstallWCData "" !insertmacro UninstallMGFRobGen "" !insertmacro UninstallPowerFuseStats "" !insertmacro UninstallQuery "" !insertmacro UninstallSequencer "" !insertmacro UninstallWatchIt "" !insertmacro UninstallTestGen "" !insertmacro UninstallVCTInject "" !insertmacro UninstallAnalysis "" !insertmacro UninstallFlashTest "" !insertmacro UninstallLabelEditors "" !insertmacro UninstallPreBlockClient "" !insertmacro UninstallMisc "" SetDetailsPrint both DetailPrint "Installing Shared Files | Poseidon Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\Poseidon.exe" SetDetailsPrint both DetailPrint "Installing Shared Files | DLLs" SetDetailsPrint listonly SetOutPath "$SYSDIR" ;Hugh's DLLs !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\TimeBomb.dll" "$SYSDIR\TimeBomb.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\CarManUtils.dll" "$SYSDIR\CarManUtils.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\SophieNet.dll" "$SYSDIR\SophieNet.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\SPGDrv.dll" "$SYSDIR\SPGDrv.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\SPGUser.dll" "$SYSDIR\SPGUser.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTAmalgam.dll" "$SYSDIR\VCTAmalgam.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTAux.dll" "$SYSDIR\VCTAux.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTEd.dll" "$SYSDIR\VCTEd.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTEmptyChk.dll" "$SYSDIR\VCTEmptyChk.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTLED.dll" "$SYSDIR\VCTLED.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTNonOC.dll" "$SYSDIR\VCTNonOC.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTNonOCEd.dll" "$SYSDIR\VCTNonOCEd.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTTestEd.dll" "$SYSDIR\VCTTestEd.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\Visualise.dll" "$SYSDIR\Visualise.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\StatsMan.dll" "$SYSDIR\StatsMan.dll" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing Shared Files | OCXs" SetDetailsPrint listonly ;My OCxs !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\FuseViewControl.OCX" "$SYSDIR\FuseViewControl.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\VCTcc.OCX" "$SYSDIR\VCTcc.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\WipClientControl.OCX" "$SYSDIR\WipClientControl.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\WipServerControl.OCX" "$SYSDIR\WipServerControl.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\WipClientMulti.OCX" "$SYSDIR\WipClientMulti.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\WipServerMulti.OCX" "$SYSDIR\WipServerMulti.OCX" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing Shared Files | ActiveX DLLs" SetDetailsPrint listonly ;My ActiveX Dlls !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\SPGLabRes.dll" "$SYSDIR\SPGLabRes.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\SPGVCTRes.dll" "$SYSDIR\SPGVCTRes.dll" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing Shared Files | MS DLLs" SetDetailsPrint listonly ;MS Dlls !insertmacro InstallLib DLL $R1 REBOOT_PROTECTED "${SOURCEDIR}\asycfilt.dll" "$SYSDIR\asycfilt.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 REBOOT_PROTECTED "${SOURCEDIR}\comcat.dll" "$SYSDIR\comcat.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 REBOOT_NOTPROTECTED "${SOURCEDIR}\msvbvm60.dll" "$SYSDIR\msvbvm60.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 REBOOT_PROTECTED "${SOURCEDIR}\oleaut32.dll" "$SYSDIR\oleaut32.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 REBOOT_PROTECTED "${SOURCEDIR}\olepro32.dll" "$SYSDIR\olepro32.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\scrrun.dll" "$SYSDIR\scrrun.dll" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing Shared Files | MS OCXs" SetDetailsPrint listonly ;MS OCXs !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\COMDLG32.OCX" "$SYSDIR\COMDLG32.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\MSCAL.OCX" "$SYSDIR\MSCAL.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\MSCOMCT2.OCX" "$SYSDIR\MSCOMCT2.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\MSCOMCTL.OCX" "$SYSDIR\MSCOMCTL.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\MSCOMM32.OCX" "$SYSDIR\MSCOMM32.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\MSWINSCK.OCX" "$SYSDIR\MSWINSCK.OCX" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\TABCTL32.OCX" "$SYSDIR\TABCTL32.OCX" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing Shared Files | MS TLBs" SetDetailsPrint listonly ;MS TLBs !insertmacro InstallLib TLB $R1 REBOOT_PROTECTED "${SOURCEDIR}\stdole2.tlb" "$SYSDIR\stdole2.tlb" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing Shared Files | Fonts" SetDetailsPrint listonly SetDetailsPrint both DetailPrint "Installing Shared Files | Icons" SetDetailsPrint listonly SetOutPath "$INSTDIR\Resources\Icons" File "${SOURCEDIR}\aff.ico" File "${SOURCEDIR}\auxicon.ico" File "${SOURCEDIR}\bar.ico" File "${SOURCEDIR}\cct.ico" File "${SOURCEDIR}\dia.ico" File "${SOURCEDIR}\dlt.ico" File "${SOURCEDIR}\dod.ico" File "${SOURCEDIR}\dsi.ico" File "${SOURCEDIR}\dsm.ico" File "${SOURCEDIR}\dst.ico" File "${SOURCEDIR}\flt.ico" File "${SOURCEDIR}\fpf.ico" File "${SOURCEDIR}\ftd.ico" File "${SOURCEDIR}\fus.ico" File "${SOURCEDIR}\hxf.ico" File "${SOURCEDIR}\lab.ico" File "${SOURCEDIR}\lcn.ico" File "${SOURCEDIR}\llb.ico" File "${SOURCEDIR}\lmn.ico" File "${SOURCEDIR}\noc.ico" File "${SOURCEDIR}\plc.ico" File "${SOURCEDIR}\rlt.ico" File "${SOURCEDIR}\smo.ico" File "${SOURCEDIR}\tht.ico" File "${SOURCEDIR}\tst.ico" File "${SOURCEDIR}\utl.ico" File "${SOURCEDIR}\vct.ico" File "${SOURCEDIR}\vis.ico" File "${SOURCEDIR}\vsc.ico" File "${SOURCEDIR}\vst.ico" File "${SOURCEDIR}\xrl.ico" SetOutPath "$SYSDIR\Drivers" File "${SOURCEDIR}\SPGDriver.sys" ;SetOutPath "$SYSDIR" ;do we need these now??? ;File "${SOURCEDIR}\hhctrl.ocx" ;File "${SOURCEDIR}\hh.exe" ;File "${SOURCEDIR}\itircl.dll" ;File "${SOURCEDIR}\itss.dll" ;File "${SOURCEDIR}\msvcrt.dll" SetDetailsPrint both DetailPrint "Installing Shared Files | Uninstall Information" SetDetailsPrint listonly ;Create uninstaller WriteUninstaller "$INSTDIR\Uninstall.exe" ;Write info for control panel add/remove programs WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "UninstallString" '"$INSTDIR\UnInstall.exe"' WriteRegExpandStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "InstallLocation" "$INSTDIR" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "DisplayName" "LEONI Applications v${VER_MAJOR}.${VER_MINOR}${VER_REVISION}" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "DisplayIcon" "$INSTDIR\Poseidon.exe,0" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "DisplayVersion" "${VER_MAJOR}.${VER_MINOR}${VER_REVISION}" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "VersionMajor" "${VER_MAJOR}" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "VersionMinor" "${VER_MINOR}.${VER_REVISION}" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "URLInfoAbout" "http://www.leoni.com" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "NoModify" "1" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" "NoRepair" "1" SetDetailsPrint both DetailPrint "Installing Shared Files | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateDirectory "$SMPROGRAMS\LEONI Applications" CreateShortCut "$SMPROGRAMS\LEONI Applications\Poseidon.lnk" "$INSTDIR\Poseidon.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Changes common application settings" CreateShortCut "$SMPROGRAMS\LEONI Applications\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Uninstalls LEONI Applications" SetDetailsPrint both DetailPrint "Installing Shared Files | Install details to registry" SetDetailsPrint listonly ;Store installation folder WriteRegStr HKCU "Software\LEONI" "" $INSTDIR WriteRegStr HKLM "Software\LEONI\Install Options" "Poseidon" "1" WriteRegStr HKLM "Software\LEONI\Install Options" "Help Files" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "CarMan" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "DELTA App" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "DELTA Help" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "DataServer" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "AutoArch" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "FasTest" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "VCTEditor" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "WCData" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "MGFRobGen" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "PowerFuseStats" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "Query" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "Sequencer" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "Watch-it" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "TestGen" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "VCTInject" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "Analysis Tools" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "FlashTest" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "Label Editors" "0" WriteRegStr HKLM "Software\LEONI\Install Options" "PreBlockClient" "0" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "Help Files" SecHelpFiles SectionIn 2 SetDetailsPrint both DetailPrint "Installing Help | Help File" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\LEONI Applications.chm" SetDetailsPrint both DetailPrint "Installing Help | Shortcut" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\LEONI Applications Help.lnk" "$INSTDIR\LEONI Applications.chm" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "LEONI Applications Help File" WriteRegStr HKLM "Software\LEONI\Install Options" "Help Files" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "CarMan" SecCarMan SectionIn 2 4 7 SetDetailsPrint both DetailPrint "Installing CarMan | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "CarMan.exe" 0 File "${SOURCEDIR}\MakeXRef.exe" call InstSPGUser SetDetailsPrint both DetailPrint "Installing CarMan | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\CarMan.lnk" "$INSTDIR\CarMan.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Controls carousel workstations and VCT equipment" CreateShortCut "$SMPROGRAMS\LEONI Applications\MakeXRef.lnk" "$INSTDIR\MakeXRef.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Creates an XRefList for CarMan to use" WriteRegStr HKLM "Software\LEONI\Install Options" "CarMan" "1" SetDetailsPrint both SectionEnd ;********************************************************** SubSection "DELTA and Tools" SecDELTAMain Section /o "DELTA Application" SecDELTAApp SectionIn 2 5 SetDetailsPrint both DetailPrint "Installing DELTA | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\DELTA.exe" SetDetailsPrint both DetailPrint "Installing DELTA | Resources" SetDetailsPrint listonly CreateDirectory "$INSTDIR\Resources\DELTA" CreateDirectory "$INSTDIR\Resources\DELTA\Data" CreateDirectory "$INSTDIR\Resources\DELTA\Debug" CreateDirectory "$INSTDIR\Resources\DELTA\LayMan" CreateDirectory "$INSTDIR\Resources\DELTA\Lib" CreateDirectory "$INSTDIR\Resources\DELTA\Station1" CreateDirectory "$INSTDIR\Resources\DELTA\Station1\Symbols" CreateDirectory "$INSTDIR\Resources\DELTA\Station2" CreateDirectory "$INSTDIR\Resources\DELTA\Station2\Symbols" CreateDirectory "$INSTDIR\Resources\DELTA\Station3" CreateDirectory "$INSTDIR\Resources\DELTA\Station3\Symbols" CreateDirectory "$INSTDIR\Resources\DELTA\Station4" CreateDirectory "$INSTDIR\Resources\DELTA\Station4\Symbols" SetOutPath "$INSTDIR\Resources\DELTA" File "${SOURCEDIR}\Alert.wav" File "${SOURCEDIR}\Fail.wav" File "${SOURCEDIR}\Pass.wav" SetDetailsPrint both DetailPrint "Installing DELTA | DLLs" SetDetailsPrint listonly SetOutPath "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\SequenceMan.dll" "$SYSDIR\SequenceMan.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\ModuleMan.dll" "$SYSDIR\ModuleMan.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DataParser.dll" "$SYSDIR\DataParser.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\Comms.dll" "$SYSDIR\Comms.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\ProcessIO.dll" "$SYSDIR\ProcessIO.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\Diagnose.dll" "$SYSDIR\Diagnose.dll" "$SYSDIR" !insertmacro InstallLib REGDLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DELTAAdmin.dll" "$SYSDIR\DELTAAdmin.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DPCI.dll" "$SYSDIR\DPCI.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\Vtext.dll" "$SYSDIR\Vtext.dll" "$SYSDIR" SetOutPath "$SYSDIR\Drivers" File "${SOURCEDIR}\DELTAPCI.sys" call InstDPCI SetDetailsPrint both DetailPrint "Installing DELTA | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\DELTA.lnk" "$INSTDIR\DELTA.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "DELTA test equipment Application" WriteRegStr HKLM "Software\LEONI\Install Options" "DELTA App" "1" SetDetailsPrint both SectionEnd Section /o "DELTA Help Files" SecDELTAHelp SectionIn 2 5 SetDetailsPrint both DetailPrint "Installing DELTA | Help File" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\DELTA.chm" SetDetailsPrint both DetailPrint "Installing DELTA | Help File Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\DELTA Help.lnk" "$INSTDIR\DELTA.chm" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "DELTA test equipment Help File" WriteRegStr HKLM "Software\LEONI\Install Options" "DELTA Help" "1" SetDetailsPrint both SectionEnd SubSectionEnd ;********************************************************** SubSection "Data Server and Tools" SecDSMain Section /o "Data Server" SecDataServer SectionIn 3 SetDetailsPrint both DetailPrint "Installing Data Server and Tools | Data Server | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\DataServer.exe" SetDetailsPrint both DetailPrint "Installing Data Server and Tools | Data Server | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\DataServer.lnk" "$INSTDIR\DataServer.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Controls a KSK Manufacturing System" WriteRegStr HKLM "Software\LEONI\Install Options" "DataServer" "1" SetDetailsPrint both SectionEnd Section /o "Auto Archiver" SecAutoArch SectionIn 3 SetDetailsPrint both DetailPrint "Installing Data Server and Tools | AutoArchiver | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\AutoArchiver.exe" SetDetailsPrint both DetailPrint "Installing Data Server and Tools | AutoArchiver | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\AutoArchiver.lnk" "$INSTDIR\AutoArchiver.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Archives HisOrds and HisCirc information" WriteRegStr HKLM "Software\LEONI\Install Options" "AutoArch" "1" SetDetailsPrint both SectionEnd SubSectionEnd ;********************************************************** SubSection "Editing Tools" SecEditingTools Section /o "FasTest" SecFasTest SetDetailsPrint both DetailPrint "Installing Editing Tools | FasTest | Application" SetDetailsPrint listonly SectionIn 2 6 SetOutPath "$INSTDIR" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "FasTest.exe" 0 SetDetailsPrint both DetailPrint "Installing Editing Tools | FasTest | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\FasTest.lnk" "$INSTDIR\FasTest.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Manual editing of a FasTest folder" WriteRegStr HKLM "Software\LEONI\Install Options" "FasTest" "1" SetDetailsPrint both SectionEnd Section /o "VCTEditor" SecVCTEditor SectionIn 2 6 SetDetailsPrint both DetailPrint "Installing Editing Tools | VCTEditor | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "VCTEditor.exe" 0 call InstSPGUser SetDetailsPrint both DetailPrint "Installing Editing Tools | VCTEditor | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\VCTEditor.lnk" "$INSTDIR\VCTEditor.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Manual editing of DELTA and VCT Data Files" WriteRegStr HKLM "Software\LEONI\Install Options" "VCTEditor" "1" SetDetailsPrint both SectionEnd Section /o "WCData" SecWCData SectionIn 2 6 SetDetailsPrint both DetailPrint "Installing Editing Tools | WCData | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "WCData.exe" 0 SetDetailsPrint both DetailPrint "Installing Editing Tools | WCData | Resources" SetDetailsPrint listonly SetOutPath "$INSTDIR\Resources\WCData" File "${SOURCEDIR}\Barcodes.xls" File "${SOURCEDIR}\Wiring Chart.xls" File "${SOURCEDIR}\LabelInfo.cfg" File "${SOURCEDIR}\ProbeInfo.cfg" File "${SOURCEDIR}\VacOff.aux" File "${SOURCEDIR}\VacOn.aux" SetDetailsPrint both DetailPrint "Installing Editing Tools | WCData | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\WCData.lnk" "$INSTDIR\WCData.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Creates wiring chart data for test boards" WriteRegStr HKLM "Software\LEONI\Install Options" "WCData" "1" SetDetailsPrint both SectionEnd SubSectionEnd ;********************************************************** Section /o "MGF Robust Label Generator" SecMGFRobGen SectionIn 2 SetDetailsPrint both DetailPrint "Installing MGFRobGen | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\MGFRobGen.exe" SetDetailsPrint both DetailPrint "Installing MGFRobGen | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\MGFRobGen.lnk" "$INSTDIR\MGFRobGen.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Produces robust labels in pseudo KSK manufacturing cells" WriteRegStr HKLM "Software\LEONI\Install Options" "MGFRobGen" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "PowerFuseStats" SecPowerFuseStats SectionIn 2 SetDetailsPrint both DetailPrint "Installing PowerFuseStats | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\PowerFuseStats.exe" SetDetailsPrint both DetailPrint "Installing PowerFuseStats | Resources" SetDetailsPrint listonly SetOutPath "$INSTDIR\Resources\PowerFuseStats" File "${SOURCEDIR}\ErrorL.wav" File "${SOURCEDIR}\SuccessL.wav" call InstSPGUser SetDetailsPrint both DetailPrint "Installing PowerFuseStats | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\PowerFuseStats.lnk" "$INSTDIR\PowerFuseStats.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Records torque values in T5 Mega Fuse and T02 products" WriteRegStr HKLM "Software\LEONI\Install Options" "PowerFuseStats" "1" SetDetailsPrint both SectionEnd ;********************************************************** SubSection "KSK Tools" SecKSKTools Section /o "Query" SecQuery SectionIn 2 SetDetailsPrint both DetailPrint "Installing KSK Tools | Query | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\Query.exe" SetDetailsPrint both DetailPrint "Installing KSK Tools | Query | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\Query.lnk" "$INSTDIR\Query.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Checks the status of harnesses in a KSK environment" WriteRegStr HKLM "Software\LEONI\Install Options" "Query" "1" SetDetailsPrint both SectionEnd Section /o "Sequencer" SecSequencer SectionIn 2 7 SetDetailsPrint both DetailPrint "Installing KSK Tools | Sequencer | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\Sequencer.exe" SetDetailsPrint both DetailPrint "Installing KSK Tools | Sequencer | DLLs" SetDetailsPrint listonly SetOutPath "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DSAFF.dll" "$SYSDIR\DSAFF.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DSAppLib.dll" "$SYSDIR\DSAppLib.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DSFF9.dll" "$SYSDIR\DSFF9.dll" "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\DSFntMap.dll" "$SYSDIR\DSFntMap.dll" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing KSK Tools | Sequencer | Resources" SetDetailsPrint listonly SetOutPath "$INSTDIR\Resources\Sequencer" File "${SOURCEDIR}\BC.aff" File "${SOURCEDIR}\OldBC.aff" File "${SOURCEDIR}\Barcodes.dat" File "${SOURCEDIR}\Local.txt" File "${SOURCEDIR}\Messages.txt" File "${SOURCEDIR}\Error.wav" File "${SOURCEDIR}\Success.wav" ;IfFileExists "$FONTS\Free3of9.ttf" +2 0 ; File "${SOURCEDIR}\Free3of9.ttf" SetOutPath "$WINDIR" File "${SOURCEDIR}\DSFntMap.ini" SetDetailsPrint both DetailPrint "Installing KSK Tools | Sequencer | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\Sequencer.lnk" "$INSTDIR\Sequencer.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Controls production on a KSK carousel" WriteRegStr HKLM "Software\LEONI\Install Options" "Sequencer" "1" SetDetailsPrint both SectionEnd Section /o "Watch-it" SecWatchit SectionIn 2 7 SetDetailsPrint both DetailPrint "Installing KSK Tools | Watch-it | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\Watch-it.exe" SetDetailsPrint both DetailPrint "Installing KSK Tools | Watch-it | Shortucts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\Watch-it.lnk" "$INSTDIR\Watch-it.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Ensures that critical KSK applications are running on a carousel workstation" WriteRegStr HKLM "Software\LEONI\Install Options" "Watch-it" "1" SetDetailsPrint both SectionEnd SubSectionEnd ;********************************************************** Section /o "TestGen" SecTestGen SectionIn 2 4 5 6 7 SetDetailsPrint both DetailPrint "Installing TestGen | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "TestGen.exe" 0 SetDetailsPrint both DetailPrint "Installing TestGen | Resources" SetDetailsPrint listonly SetOutPath "$INSTDIR\Resources\TestGen" File "${SOURCEDIR}\UserCom.dat" SetOutPath "$SYSDIR" !insertmacro InstallLib DLL $R1 NOREBOOT_NOTPROTECTED "${SOURCEDIR}\TestGen.dll" "$SYSDIR\TestGen.dll" "$SYSDIR" SetDetailsPrint both DetailPrint "Installing TestGen | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\TestGen.lnk" "$INSTDIR\TestGen.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Compiles FasTest folders to create DELTA and VCT Data Files" WriteRegStr HKLM "Software\LEONI\Install Options" "TestGen" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "VCTInject" SecVCTInject SectionIn 2 4 6 SetDetailsPrint both DetailPrint "Installing VCTInject | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "VCTInject.exe" 0 call InstSPGUser SetDetailsPrint both DetailPrint "Installing VCTInject | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\VCTInject.lnk" "$INSTDIR\VCTInject.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Sends VCT Data files to VCT test equipment" WriteRegStr HKLM "Software\LEONI\Install Options" "VCTInject" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "Analysis Tools" SecAnalTools SectionIn 2 6 SetDetailsPrint both DetailPrint "Installing Analysis Tools | Applications" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\BackTrack.exe" File "${SOURCEDIR}\TestBoard.exe" File "${SOURCEDIR}\StatsToText.exe" File "${SOURCEDIR}\CrossAcorn.exe" File "${SOURCEDIR}\NodeConv.exe" File "${SOURCEDIR}\VCTCompare.exe" ;File "${SOURCEDIR}\LayMan Grabber.exe" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\" "HeadView.exe" 0 SetDetailsPrint both DetailPrint "Installing Analysis Tools | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\BackTrack.lnk" "$INSTDIR\BackTrack.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Checks historic airbag records from a stats file" CreateShortCut "$SMPROGRAMS\LEONI Applications\TestBoard.lnk" "$INSTDIR\TestBoard.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Checks historical failures on a testboard from a stats file" CreateShortCut "$SMPROGRAMS\LEONI Applications\StatsToText.lnk" "$INSTDIR\StatsToText.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Converts a Stats file in human readable text" CreateShortCut "$SMPROGRAMS\LEONI Applications\CrossAcorn.lnk" "$INSTDIR\CrossAcorn.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Converts Acorn files into the PC equivalent" CreateShortCut "$SMPROGRAMS\LEONI Applications\NodeConv.lnk" "$INSTDIR\NodeConv.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Tool to convert between node numbers and mux/aux board numbers on DELTA and VCT test equipment" CreateShortCut "$SMPROGRAMS\LEONI Applications\VCTCompare.lnk" "$INSTDIR\VCTCompare.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Compares two similar DELTA or VCT data files" CreateShortCut "$SMPROGRAMS\LEONI Applications\HeadView.lnk" "$INSTDIR\HeadView.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "View header shorting configurations from header or cap part numbers" ;CreateShortCut "$SMPROGRAMS\LEONI Applications\LayMan Grabber.lnk" "$INSTDIR\LayMan Grabber.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Automatically or manually updates LayMan library files" WriteRegStr HKLM "Software\LEONI\Install Options" "Analysis Tools" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "FlashTest" SecFlashTest SectionIn 2 8 SetDetailsPrint both DetailPrint "Installing FlashTest | Applications" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\FlashTest.exe" File "${SOURCEDIR}\FlashCreate.exe" SetDetailsPrint both DetailPrint "Installing FlashTest | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\FlashTest.lnk" "$INSTDIR\FlashTest.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Tests harnesses using FlashTest hardware" CreateShortCut "$SMPROGRAMS\LEONI Applications\FlashCreate.lnk" "$INSTDIR\FlashCreate.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Creates FlashTest data" WriteRegStr HKLM "Software\LEONI\Install Options" "FlashTest" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "Label Editors" SecLabelEditors SectionIn 2 4 5 6 7 SetDetailsPrint both DetailPrint "Installing Label Editors | Labels" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Type003" SetDetailsPrint both DetailPrint "Installing Label Editors | Labels" SetDetailsPrint listonly !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "AirBag.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "AirBagLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "AlarmLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "Cum_Lab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "CumMany.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "Cummings.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "DensoLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "DiscoAir.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "DiscoLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "DiscoTail.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "EUILab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "FlashLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "GDSLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "HellaLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "L320Lamp.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "LamStart.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "McMercLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "MegaFuse.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "MicroLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "MicroPack.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "Op_Label.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "PowerFuse.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "PowerTran.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R8AbsFBox.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R25BLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R25FLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R25MLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R25PLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R40Lab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R75AirLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R75Clip.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "R75Lab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "RMS_Lab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "ShrewBar.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "ShrewLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "ShrewNew.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "SM6Lab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "SOP2000.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "SOPLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "SPTLab.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "Starters.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "StartNisn.exe" 1 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type003\" "DensoA6.exe" 1 SetDetailsPrint both DetailPrint "Installing Label Editors | Label Resources" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Resources\Type003" File "${SOURCEDIR}\AirBagSN.dat" File "${SOURCEDIR}\AirLabSts.dat" File "${SOURCEDIR}\CapslF39.dat" File "${SOURCEDIR}\DayNo.dat" File "${SOURCEDIR}\IniTECB370.dat" File "${SOURCEDIR}\IniTECBag.dat" File "${SOURCEDIR}\LabSts.dat" File "${SOURCEDIR}\LabStsStr2.dat" File "${SOURCEDIR}\OpClock.dat" File "${SOURCEDIR}\PassCount3.dat" File "${SOURCEDIR}\PassCount4.dat" File "${SOURCEDIR}\PassCount5.dat" File "${SOURCEDIR}\PCL5F39.dat" File "${SOURCEDIR}\PCL5F39u.dat" File "${SOURCEDIR}\PrBoard.dat" File "${SOURCEDIR}\PrDay.dat" File "${SOURCEDIR}\PrDom.dat" File "${SOURCEDIR}\PrFail.dat" File "${SOURCEDIR}\PrFault.dat" File "${SOURCEDIR}\PrIdent.dat" File "${SOURCEDIR}\PrintSeq.dat" File "${SOURCEDIR}\PrMonth.dat" File "${SOURCEDIR}\PrMonthNum.dat" File "${SOURCEDIR}\PrPLCFail.dat" File "${SOURCEDIR}\PrSnkCon.dat" File "${SOURCEDIR}\PrSnkNum.dat" File "${SOURCEDIR}\PrSrcCon.dat" File "${SOURCEDIR}\PrSrcNum.dat" File "${SOURCEDIR}\PrStation.dat" File "${SOURCEDIR}\PrTime.dat" File "${SOURCEDIR}\PrVarDigit.dat" File "${SOURCEDIR}\PrVariant.dat" File "${SOURCEDIR}\PrVCTNum.dat" File "${SOURCEDIR}\PrYear.dat" File "${SOURCEDIR}\PrYearSP.dat" File "${SOURCEDIR}\RequestSeq.dat" File "${SOURCEDIR}\SbpTsn.dat" File "${SOURCEDIR}\Seconds.dat" File "${SOURCEDIR}\TECB30OD.dat" File "${SOURCEDIR}\TimeNoCol.dat" File "${SOURCEDIR}\WeekNo.dat" File "${SOURCEDIR}\WeekNoSP.dat" File "${SOURCEDIR}\YearDigit.dat" File "${SOURCEDIR}\AudiLogo.pcx" SetOutPath "$INSTDIR\Resources\McMercLab" File "${SOURCEDIR}\MBLogo.pcx" SetOutPath "$INSTDIR\Resources\MegaFuse" File "${SOURCEDIR}\MFLogoLarge.pcx" File "${SOURCEDIR}\MFLogoSmall.pcx" SetOutPath "$INSTDIR\VCTTools\Resources" File "${SOURCEDIR}\TypeDesc.dat" SetDetailsPrint both DetailPrint "Installing Label Editors | Tools" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Type001" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type001\" "Amalgam.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type001\" "EmptyChk.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type001\" "LED.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Type001\" "NonOC.exe" 0 SetDetailsPrint both DetailPrint "Installing Label Editors | Software Modules" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Type004" File "${SOURCEDIR}\AirBarcode.smo" File "${SOURCEDIR}\BarChk27.smo" File "${SOURCEDIR}\Barcode.smo" File "${SOURCEDIR}\CB40BarChk.smo" File "${SOURCEDIR}\ChkBarLab.smo" File "${SOURCEDIR}\Erase.smo" File "${SOURCEDIR}\FiveSecDly.smo" File "${SOURCEDIR}\LHEJBChk.smo" File "${SOURCEDIR}\OneSecDly.smo" File "${SOURCEDIR}\Online.smo" File "${SOURCEDIR}\Pass_VCT.smo" File "${SOURCEDIR}\ReadBar.smo" File "${SOURCEDIR}\RHEJBChk.smo" File "${SOURCEDIR}\SmallDly.smo" File "${SOURCEDIR}\TwoSecDly.smo" SetDetailsPrint both DetailPrint "Installing Label Editors | Diagnostic Modules" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Type007" File "${SOURCEDIR}\Calibrate.dia" File "${SOURCEDIR}\HTMuxTest.dia" File "${SOURCEDIR}\InputBrd.dia" File "${SOURCEDIR}\InputDis.dia" File "${SOURCEDIR}\LCDDisplay.dia" File "${SOURCEDIR}\MultiAn.dia" File "${SOURCEDIR}\MuxTest.dia" File "${SOURCEDIR}\OutBoard.dia" File "${SOURCEDIR}\Printer.dia" SetDetailsPrint both DetailPrint "Installing Label Editors | Utilities" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Type009" File "${SOURCEDIR}\Logon15.utl" File "${SOURCEDIR}\Logon.utl" File "${SOURCEDIR}\Logon_Yst.utl" File "${SOURCEDIR}\SerNo.utl" File "${SOURCEDIR}\SerNoLog.utl" SetDetailsPrint both DetailPrint "Installing Label Editors | Editors" SetDetailsPrint listonly SetOutPath "$INSTDIR\VCTTools\Utils" !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Utils\" "AuxDrvEd.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Utils\" "FuseEdit.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Utils\" "NonOCEdit.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Utils\" "TestEdit.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Utils\" "VisAidEdit.exe" 0 !insertmacro RegActiveXEXE "${SOURCEDIR}\" "$INSTDIR\VCTTools\Utils\" "Diagnose.exe" 0 WriteRegStr HKLM "Software\LEONI\Install Options" "Label Editors" "1" SetDetailsPrint both SectionEnd ;********************************************************** Section /o "PreBlockClient" SecPreBlockClient SectionIn 2 9 SetDetailsPrint both DetailPrint "Installing PreBlockClient | Application" SetDetailsPrint listonly SetOutPath "$INSTDIR" File "${SOURCEDIR}\PreBlockClient.exe" CreateDirectory "$INSTDIR\Resources" CreateDirectory "$INSTDIR\Resources\PreBlock" SetDetailsPrint both DetailPrint "Installing PreBlockClient | Shortcuts" SetDetailsPrint listonly ;Create ShortCuts etc CreateShortCut "$SMPROGRAMS\LEONI Applications\PreBlockClient.lnk" "$INSTDIR\PreBlockClient.exe" "" "" 0 SW_SHOWNORMAL ALT|CTRL|SHIFT|F5 "Allows viewing of Pre-block diagram generated by the Data Server application" WriteRegStr HKLM "Software\LEONI\Install Options" "PreBlockClient" "1" SetDetailsPrint both SectionEnd ;****************************************************************************************************** ;Descriptions ;****************************************************************************************************** ;Language strings LangString DESC_SecPoseidon ${LANG_ENGLISH} "Poseidon and common files." LangString DESC_SecPoseidon ${LANG_SPANISH} "Poseidon and common files." LangString DESC_SecPoseidon ${LANG_ROMANIAN} "Poseidon and common files." LangString DESC_SecPoseidon ${LANG_ARABIC} "Poseidon and common files." LangString DESC_SecHelpFiles ${LANG_ENGLISH} "LEONI Applications Help Files." LangString DESC_SecHelpFiles ${LANG_SPANISH} "LEONI Applications Help Files." LangString DESC_SecHelpFiles ${LANG_ROMANIAN} "LEONI Applications Help Files." LangString DESC_SecHelpFiles ${LANG_ARABIC} "LEONI Applications Help Files." LangString DESC_SecCarMan ${LANG_ENGLISH} "CarMan and MakeXRef Applications." LangString DESC_SecCarMan ${LANG_SPANISH} "CarMan and MakeXRef Applications." LangString DESC_SecCarMan ${LANG_ROMANIAN} "CarMan and MakeXRef Applications." LangString DESC_SecCarMan ${LANG_ARABIC} "CarMan and MakeXRef Applications." LangString DESC_SecDELTAMain ${LANG_ENGLISH} "DELTA application, DLLs and Help File." LangString DESC_SecDELTAMain ${LANG_SPANISH} "DELTA application, DLLs and Help File." LangString DESC_SecDELTAMain ${LANG_ROMANIAN} "DELTA application, DLLs and Help File." LangString DESC_SecDELTAMain ${LANG_ARABIC} "DELTA application, DLLs and Help File." LangString DESC_SecDELTAApp ${LANG_ENGLISH} "DELTA application and DLLs." LangString DESC_SecDELTAApp ${LANG_SPANISH} "DELTA application and DLLs." LangString DESC_SecDELTAApp ${LANG_ROMANIAN} "DELTA application and DLLs." LangString DESC_SecDELTAApp ${LANG_ARABIC} "DELTA application and DLLs." LangString DESC_SecDELTAHelp ${LANG_ENGLISH} "DELTA Help File." LangString DESC_SecDELTAHelp ${LANG_SPANISH} "DELTA Help File." LangString DESC_SecDELTAHelp ${LANG_ROMANIAN} "DELTA Help File." LangString DESC_SecDELTAHelp ${LANG_ARABIC} "DELTA Help File." LangString DESC_SecDSMain ${LANG_ENGLISH} "DataServer application and associated tools." LangString DESC_SecDSMain ${LANG_SPANISH} "DataServer application and associated tools." LangString DESC_SecDSMain ${LANG_ROMANIAN} "DataServer application and associated tools." LangString DESC_SecDSMain ${LANG_ARABIC} "DataServer application and associated tools." LangString DESC_SecDataServer ${LANG_ENGLISH} "DataServer application." LangString DESC_SecDataServer ${LANG_SPANISH} "DataServer application." LangString DESC_SecDataServer ${LANG_ROMANIAN} "DataServer application." LangString DESC_SecDataServer ${LANG_ARABIC} "DataServer application." LangString DESC_SecEditingTools ${LANG_ENGLISH} "Editing Tools. FasTest, VCTEditor and WCData." LangString DESC_SecEditingTools ${LANG_SPANISH} "Editing Tools. FasTest, VCTEditor and WCData." LangString DESC_SecEditingTools ${LANG_ROMANIAN} "Editing Tools. FasTest, VCTEditor and WCData." LangString DESC_SecEditingTools ${LANG_ARABIC} "Editing Tools. FasTest, VCTEditor and WCData." LangString DESC_SecFasTest ${LANG_ENGLISH} "FasTest application." LangString DESC_SecFasTest ${LANG_SPANISH} "FasTest application." LangString DESC_SecFasTest ${LANG_ROMANIAN} "FasTest application." LangString DESC_SecFasTest ${LANG_ARABIC} "FasTest application." LangString DESC_SecVCTEditor ${LANG_ENGLISH} "VCTEditor application and DLLs." LangString DESC_SecVCTEditor ${LANG_SPANISH} "VCTEditor application and DLLs." LangString DESC_SecVCTEditor ${LANG_ROMANIAN} "VCTEditor application and DLLs." LangString DESC_SecVCTEditor ${LANG_ARABIC} "VCTEditor application and DLLs." LangString DESC_SecWCData ${LANG_ENGLISH} "WCData application." LangString DESC_SecWCData ${LANG_SPANISH} "WCData application." LangString DESC_SecWCData ${LANG_ROMANIAN} "WCData application." LangString DESC_SecWCData ${LANG_ARABIC} "WCData application." LangString DESC_SecMGFRobGen ${LANG_ENGLISH} "MGF Robust Label Generator for pseudo KSK carousels." LangString DESC_SecMGFRobGen ${LANG_SPANISH} "MGF Robust Label Generator for pseudo KSK carousels." LangString DESC_SecMGFRobGen ${LANG_ROMANIAN} "MGF Robust Label Generator for pseudo KSK carousels." LangString DESC_SecMGFRobGen ${LANG_ARABIC} "MGF Robust Label Generator for pseudo KSK carousels." LangString DESC_SecPowerFuseStats ${LANG_ENGLISH} "PowerFuseStats Application for recording statistics on T5 and T02 products." LangString DESC_SecPowerFuseStats ${LANG_SPANISH} "PowerFuseStats Application for recording statistics on T5 and T02 products." LangString DESC_SecPowerFuseStats ${LANG_ROMANIAN} "PowerFuseStats Application for recording statistics on T5 and T02 products." LangString DESC_SecPowerFuseStats ${LANG_ARABIC} "PowerFuseStats Application for recording statistics on T5 and T02 products." LangString DESC_SecKSKTools ${LANG_ENGLISH} "KSK Specific Tools and Applications." LangString DESC_SecKSKTools ${LANG_SPANISH} "KSK Specific Tools and Applications." LangString DESC_SecKSKTools ${LANG_ROMANIAN} "KSK Specific Tools and Applications." LangString DESC_SecKSKTools ${LANG_ARABIC} "KSK Specific Tools and Applications." LangString DESC_SecQuery ${LANG_ENGLISH} "Query application." LangString DESC_SecQuery ${LANG_SPANISH} "Query application." LangString DESC_SecQuery ${LANG_ROMANIAN} "Query application." LangString DESC_SecQuery ${LANG_ARABIC} "Query application." LangString DESC_SecSequencer ${LANG_ENGLISH} "Sequencer application and associated files." LangString DESC_SecSequencer ${LANG_SPANISH} "Sequencer application and associated files." LangString DESC_SecSequencer ${LANG_ROMANIAN} "Sequencer application and associated files." LangString DESC_SecSequencer ${LANG_ARABIC} "Sequencer application and associated files." LangString DESC_SecWatchit ${LANG_ENGLISH} "Watch-it application." LangString DESC_SecWatchit ${LANG_SPANISH} "Watch-it application." LangString DESC_SecWatchit ${LANG_ROMANIAN} "Watch-it application." LangString DESC_SecWatchit ${LANG_ARABIC} "Watch-it application." LangString DESC_SecTestGen ${LANG_ENGLISH} "TestGen application and dll." LangString DESC_SecTestGen ${LANG_SPANISH} "TestGen application and dll." LangString DESC_SecTestGen ${LANG_ROMANIAN} "TestGen application and dll." LangString DESC_SecTestGen ${LANG_ARABIC} "TestGen application and dll." LangString DESC_SecVCTInject ${LANG_ENGLISH} "VCTInject Application and DLLs." LangString DESC_SecVCTInject ${LANG_SPANISH} "VCTInject Application and DLLs." LangString DESC_SecVCTInject ${LANG_ROMANIAN} "VCTInject Application and DLLs." LangString DESC_SecVCTInject ${LANG_ARABIC} "VCTInject Application and DLLs." LangString DESC_SecAutoArch ${LANG_ENGLISH} "AutoArchiver application. Archives old HisOrds and HisCirc information." LangString DESC_SecAutoArch ${LANG_SPANISH} "AutoArchiver application. Archives old HisOrds and HisCirc information." LangString DESC_SecAutoArch ${LANG_ROMANIAN} "AutoArchiver application. Archives old HisOrds and HisCirc information." LangString DESC_SecAutoArch ${LANG_ARABIC} "AutoArchiver application. Archives old HisOrds and HisCirc information." LangString DESC_SecAnalTools ${LANG_ENGLISH} "Tools for analysis of data. TestBoard, StatsToText, BackTrack, NodeConv, HeadView, CrossAcorn, VCTCompare, etc" LangString DESC_SecAnalTools ${LANG_SPANISH} "Tools for analysis of data. TestBoard, StatsToText, BackTrack, NodeConv, HeadView, CrossAcorn, VCTCompare, etc" LangString DESC_SecAnalTools ${LANG_ROMANIAN} "Tools for analysis of data. TestBoard, StatsToText, BackTrack, NodeConv, HeadView, CrossAcorn, VCTCompare, etc" LangString DESC_SecAnalTools ${LANG_ARABIC} "Tools for analysis of data. TestBoard, StatsToText, BackTrack, NodeConv, HeadView, CrossAcorn, VCTCompare, etc" LangString DESC_SecFlashTest ${LANG_ENGLISH} "FlashTest and FlashCreate Applications." LangString DESC_SecFlashTest ${LANG_SPANISH} "FlashTest and FlashCreate Applications." LangString DESC_SecFlashTest ${LANG_ROMANIAN} "FlashTest and FlashCreate Applications." LangString DESC_SecFlashTest ${LANG_ARABIC} "FlashTest and FlashCreate Applications." LangString DESC_SecLabelEditors ${LANG_ENGLISH} "All label editors and VCTEditor Tools" LangString DESC_SecLabelEditors ${LANG_SPANISH} "All label editors and VCTEditor Tools" LangString DESC_SecLabelEditors ${LANG_ROMANIAN} "All label editors and VCTEditor Tools" LangString DESC_SecLabelEditors ${LANG_ARABIC} "All label editors and VCTEditor Tools" LangString DESC_SecPreBlockClient ${LANG_ENGLISH} "PreBlockClient Viewer Application." LangString DESC_SecPreBlockClient ${LANG_SPANISH} "PreBlockClient Viewer Application." LangString DESC_SecPreBlockClient ${LANG_ROMANIAN} "PreBlockClient Viewer Application." LangString DESC_SecPreBlockClient ${LANG_ARABIC} "PreBlockClient Viewer Application." ;Assign language strings to sections !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SecPoseidon} $(DESC_SecPoseidon) !insertmacro MUI_DESCRIPTION_TEXT ${SecHelpFiles} $(DESC_SecHelpFiles) !insertmacro MUI_DESCRIPTION_TEXT ${SecCarMan} $(DESC_SecCarMan) !insertmacro MUI_DESCRIPTION_TEXT ${SecDELTAMain} $(DESC_SecDELTAMain) !insertmacro MUI_DESCRIPTION_TEXT ${SecDELTAApp} $(DESC_SecDELTAApp) !insertmacro MUI_DESCRIPTION_TEXT ${SecDELTAHelp} $(DESC_SecDELTAHelp) !insertmacro MUI_DESCRIPTION_TEXT ${SecDSMain} $(DESC_SecDSMain) !insertmacro MUI_DESCRIPTION_TEXT ${SecDataServer} $(DESC_SecDataServer) !insertmacro MUI_DESCRIPTION_TEXT ${SecAutoArch} $(DESC_SecAutoArch) !insertmacro MUI_DESCRIPTION_TEXT ${SecEditingTools} $(DESC_SecEditingTools) !insertmacro MUI_DESCRIPTION_TEXT ${SecFasTest} $(DESC_SecFasTest) !insertmacro MUI_DESCRIPTION_TEXT ${SecVCTEditor} $(DESC_SecVCTEditor) !insertmacro MUI_DESCRIPTION_TEXT ${SecWCData} $(DESC_SecWCData) !insertmacro MUI_DESCRIPTION_TEXT ${SecMGFRobGen} $(DESC_SecMGFRobGen) !insertmacro MUI_DESCRIPTION_TEXT ${SecPowerFuseStats} $(DESC_SecPowerFuseStats) !insertmacro MUI_DESCRIPTION_TEXT ${SecKSKTools} $(DESC_SecKSKTools) !insertmacro MUI_DESCRIPTION_TEXT ${SecQuery} $(DESC_SecQuery) !insertmacro MUI_DESCRIPTION_TEXT ${SecSequencer} $(DESC_SecSequencer) !insertmacro MUI_DESCRIPTION_TEXT ${SecWatchit} $(DESC_SecWatchit) !insertmacro MUI_DESCRIPTION_TEXT ${SecTestGen} $(DESC_SecTestGen) !insertmacro MUI_DESCRIPTION_TEXT ${SecVCTInject} $(DESC_SecVCTInject) !insertmacro MUI_DESCRIPTION_TEXT ${SecAnalTools} $(DESC_SecAnalTools) !insertmacro MUI_DESCRIPTION_TEXT ${SecFlashTest} $(DESC_SecFlashTest) !insertmacro MUI_DESCRIPTION_TEXT ${SecLabelEditors} $(DESC_SecLabelEditors) !insertmacro MUI_DESCRIPTION_TEXT ${SecPreBlockClient} $(DESC_SecPreBlockClient) !insertmacro MUI_FUNCTION_DESCRIPTION_END ;****************************************************************************************************** ;UnInstaller Sections ;****************************************************************************************************** ; ;These sections Uninstall everything that was installed on the last install ;but only if we are either not installing it again this time, or doing a complete uninstall ; ;****************************************************************************************************** ;************************** ;Poseidon !macro UninstallPoseidon UN SetDetailsPrint both DetailPrint "Deleting Shared Files | Applications" SetDetailsPrint listonly strcmp "${UN}" "un" 0 AlwaysRemovePoseidon Delete "$INSTDIR\Poseidon.exe" ;Hugh's DLLs SetDetailsPrint both DetailPrint "Deleting Shared Files | DLLs" SetDetailsPrint listonly !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\TimeBomb.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\Visualise.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\StatsMan.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\CarManUtils.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\SophieNet.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\SPGDrv.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\SPGUser.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTAmalgam.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTAux.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTEd.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTEmptyChk.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTLED.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTNonOC.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTNonOCEd.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTTestEd.dll" SetDetailsPrint both DetailPrint "Deleting Shared Files | OCXs" SetDetailsPrint listonly ;My OCxs !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\FuseViewControl.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\VCTcc.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\WipClientControl.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\WipServerControl.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\WipClientMulti.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\WipServerMulti.OCX" SetDetailsPrint both DetailPrint "Deleting Shared Files | ActiveX DLLs" SetDetailsPrint listonly ;My ActiveX Dlls !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\SPGLabRes.dll" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\SPGVCTRes.dll" SetDetailsPrint both DetailPrint "Deleting Shared Files | MS DLLs" SetDetailsPrint listonly ;MS Dlls !insertmacro UnInstallLib DLL SHARED NOREMOVE "$SYSDIR\asycfilt.dll" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\comcat.dll" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\msvbvm60.dll" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\oleaut32.dll" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\olepro32.dll" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\scrrun.dll" SetDetailsPrint both DetailPrint "Deleting Shared Files | MS OCXs" SetDetailsPrint listonly ;MS OCXs !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\COMDLG32.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\MSCAL.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\MSCOMCT2.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\MSCOMCTL.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\MSCOMM32.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\MSWINSCK.OCX" !insertmacro UnInstallLib REGDLL SHARED NOREMOVE "$SYSDIR\TABCTL32.OCX" SetDetailsPrint both DetailPrint "Deleting Shared Files | MS TLBs" SetDetailsPrint listonly ;MS TLBs !insertmacro UnInstallLib TLB SHARED NOREMOVE "$SYSDIR\stdole2.tlb" SetDetailsPrint both DetailPrint "Deleting Shared Files | Icons" SetDetailsPrint listonly Delete "$INSTDIR\Resources\Icons\aff.ico" Delete "$INSTDIR\Resources\Icons\auxicon.ico" Delete "$INSTDIR\Resources\Icons\bar.ico" Delete "$INSTDIR\Resources\Icons\cct.ico" Delete "$INSTDIR\Resources\Icons\dia.ico" Delete "$INSTDIR\Resources\Icons\dlt.ico" Delete "$INSTDIR\Resources\Icons\dod.ico" Delete "$INSTDIR\Resources\Icons\dsi.ico" Delete "$INSTDIR\Resources\Icons\dsm.ico" Delete "$INSTDIR\Resources\Icons\dst.ico" Delete "$INSTDIR\Resources\Icons\flt.ico" Delete "$INSTDIR\Resources\Icons\fpf.ico" Delete "$INSTDIR\Resources\Icons\ftd.ico" Delete "$INSTDIR\Resources\Icons\fus.ico" Delete "$INSTDIR\Resources\Icons\hxf.ico" Delete "$INSTDIR\Resources\Icons\lab.ico" Delete "$INSTDIR\Resources\Icons\lcn.ico" Delete "$INSTDIR\Resources\Icons\llb.ico" Delete "$INSTDIR\Resources\Icons\lmn.ico" Delete "$INSTDIR\Resources\Icons\noc.ico" Delete "$INSTDIR\Resources\Icons\plc.ico" Delete "$INSTDIR\Resources\Icons\rlt.ico" Delete "$INSTDIR\Resources\Icons\smo.ico" Delete "$INSTDIR\Resources\Icons\tht.ico" Delete "$INSTDIR\Resources\Icons\tst.ico" Delete "$INSTDIR\Resources\Icons\utl.ico" Delete "$INSTDIR\Resources\Icons\vct.ico" Delete "$INSTDIR\Resources\Icons\vis.ico" Delete "$INSTDIR\Resources\Icons\vsc.ico" Delete "$INSTDIR\Resources\Icons\vst.ico" Delete "$INSTDIR\Resources\Icons\xrl.ico" RMDir "$INSTDIR\Resources\Icons" Delete "$SYSDIR\Drivers\SPGDriver.sys" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LEONI Applications" DeleteRegKey HKLM "Software\LEONI Applications" Delete "$SMPROGRAMS\LEONI Applications\Poseidon.lnk" Delete "$SMPROGRAMS\LEONI Applications\Uninstall.lnk" AlwaysRemovePoseidon: !macroend ;************************** ;Help File !macro UninstallHelp UN ;ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "Help Files" ;StrCmp $R1 "1" 0 AlwaysRemoveHelp !insertmacro IsSectionFlagSet ${secHelpFiles} MessageBox MB_OK ${secHelpFiles} MessageBox MB_OK $R1 strcmp $R1 "1" AlwaysRemoveHelp 0 SetDetailsPrint both DetailPrint "Deleting Help Files" SetDetailsPrint listonly Delete "$INSTDIR\LEONI Applications.chm" Delete "$SMPROGRAMS\LEONI Applications\LEONI Applications Help.lnk" AlwaysRemoveHelp: !macroend ;************************** ;CarMan !macro UninstallCarMan UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "CarMan" StrCmp $R1 "1" 0 AlwaysRemoveCarMan SetDetailsPrint both DetailPrint "Deleting CarMan | Application" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "CarMan.exe" 0 Delete "$INSTDIR\MakeXRef.exe" Delete "$SMPROGRAMS\LEONI Applications\CarMan.lnk" Delete "$SMPROGRAMS\LEONI Applications\MakeXRef.lnk" AlwaysRemoveCarMan: !macroend ;************************** ;DELTAApp !macro UninstallDELTA UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "DELTA App" StrCmp $R1 "1" 0 AlwaysRemoveDELTA SetDetailsPrint both DetailPrint "Deleting DELTA | Application" SetDetailsPrint listonly Delete "$INSTDIR\DELTA.exe" Delete "$INSTDIR\Resources\DELTA\Alert.wav" Delete "$INSTDIR\Resources\DELTA\Fail.wav" Delete "$INSTDIR\Resources\DELTA\Pass.wav" RMDir "$INSTDIR\Resources\DELTA\Data" RMDir /r "$INSTDIR\Resources\DELTA\Debug" RMDir "$INSTDIR\Resources\DELTA\LayMan" RMDir "$INSTDIR\Resources\DELTA\Lib" RMDir /r "$INSTDIR\Resources\DELTA\Station1\Symbols" RMDir /r "$INSTDIR\Resources\DELTA\Station1" RMDir /r "$INSTDIR\Resources\DELTA\Station2\Symbols" RMDir /r "$INSTDIR\Resources\DELTA\Station2" RMDir /r "$INSTDIR\Resources\DELTA\Station3\Symbols" RMDir /r "$INSTDIR\Resources\DELTA\Station3" RMDir /r "$INSTDIR\Resources\DELTA\Station4\Symbols" RMDir /r "$INSTDIR\Resources\DELTA\Station4" RMDir "$INSTDIR\Resources\DELTA" SetDetailsPrint both DetailPrint "Deleting DELTA | DLLs" SetDetailsPrint listonly !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\SequenceMan.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\ModuleMan.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DataParser.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\Comms.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\ProcessIO.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\Diagnose.dll" !insertmacro UnInstallLib REGDLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DELTAAdmin.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DPCI.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\Vtext.dll" Delete "$SYSDIR\Drivers\DELTAPCI.sys" Delete "$SMPROGRAMS\LEONI Applications\DELTA.lnk" AlwaysRemoveDELTA: !macroend ;************************** ;DELTAHelp !macro UninstallDELTAHelp UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "DELTA Help" StrCmp $R1 "1" 0 AlwaysRemoveDELTAHelp SetDetailsPrint both DetailPrint "Deleting DELTA | Help File" SetDetailsPrint listonly Delete "$INSTDIR\DELTA.chm" Delete "$SMPROGRAMS\LEONI Applications\DELTA Help.lnk" AlwaysRemoveDELTAHelp: !macroend ;************************** ;DataServer !macro UninstallDataServer UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "DataServer" StrCmp $R1 "1" 0 AlwaysRemoveDataServer SetDetailsPrint both DetailPrint "Deleting DataServer | Application" SetDetailsPrint listonly Delete "$INSTDIR\DataServer.exe" Delete "$SMPROGRAMS\LEONI Applications\DataServer.lnk" AlwaysRemoveDataServer: !macroend ;************************** ;AutoArch !macro UninstallAutoArch UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "AutoArch" StrCmp $R1 "1" 0 AlwaysRemoveAutoArch SetDetailsPrint both DetailPrint "Deleting DataServer | Auto Archiver" SetDetailsPrint listonly Delete "$INSTDIR\AutoArchiver.exe" Delete "$SMPROGRAMS\LEONI Applications\AutoArchiver.lnk" AlwaysRemoveAutoArch: !macroend ;************************** ;FasTest !macro UninstallFasTest UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "FasTest" StrCmp $R1 "1" 0 AlwaysRemoveFasTest SetDetailsPrint both DetailPrint "Deleting Editing Tools | FasTest" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "FasTest.exe" 0 Delete "$SMPROGRAMS\LEONI Applications\FasTest.lnk" AlwaysRemoveFasTest: !macroend ;************************** ;VCTEditor !macro UninstallVCTEditor UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "VCTEditor" StrCmp $R1 "1" 0 AlwaysRemoveVCTEditor SetDetailsPrint both DetailPrint "Deleting Editing Tools | VCTEditor" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "VCTEditor.exe" 0 Delete "$SMPROGRAMS\LEONI Applications\VCTEditor.lnk" AlwaysRemoveVCTEditor: !macroend ;************************** ;WCData !macro UninstallWCData UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "WCData" StrCmp $R1 "1" 0 AlwaysRemoveWCData SetDetailsPrint both DetailPrint "Deleting Editing Tools | WCData" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "WCData.exe" 0 SetDetailsPrint both DetailPrint "Deleting Editing Tools | Resources" SetDetailsPrint listonly Delete "$INSTDIR\Resources\WCData\Barcodes.xls" Delete "$INSTDIR\Resources\WCData\Wiring Chart.xls" Delete "$INSTDIR\Resources\WCData\LabelInfo.cfg" Delete "$INSTDIR\Resources\WCData\ProbeInfo.cfg" Delete "$INSTDIR\Resources\WCData\VacOff.aux" Delete "$INSTDIR\Resources\WCData\VacOn.aux" RMDir "$INSTDIR\Resources\WCData" Delete "$SMPROGRAMS\LEONI Applications\WCData.lnk" AlwaysRemoveWCData: !macroend ;************************** ;MGFRobGen !macro UninstallMGFRobGen UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "MGFRobGen" StrCmp $R1 "1" 0 AlwaysRemoveMGFRobGen SetDetailsPrint both DetailPrint "Deleting MGFRobGen | Application" SetDetailsPrint listonly Delete "$INSTDIR\MGFRobGen.exe" Delete "$SMPROGRAMS\LEONI Applications\MGFRobGen.lnk" AlwaysRemoveMGFRobGen: !macroend ;************************** ;PowerFuseStats !macro UninstallPowerFuseStats UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "PowerFuseStats" StrCmp $R1 "1" 0 AlwaysRemovePowerFuseStats SetDetailsPrint both DetailPrint "Deleting PowerFuseStats | Application" SetDetailsPrint listonly Delete "$INSTDIR\PowerFuseStats.exe" Delete "$INSTDIR\Resources\PowerFuseStats\ErrorL.wav" Delete "$INSTDIR\Resources\PowerFuseStats\SuccessL.wav" RMDir "$INSTDIR\Resources\PowerFuseStats" Delete "$SMPROGRAMS\LEONI Applications\PowerFuseStats.lnk" AlwaysRemovePowerFuseStats: !macroend ;************************** ;Query !macro UninstallQuery UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "Query" StrCmp $R1 "1" 0 AlwaysRemoveQuery SetDetailsPrint both DetailPrint "Deleting KSK Tools | Query" SetDetailsPrint listonly SetOutPath "" Delete "$INSTDIR\Query.exe" Delete "$SMPROGRAMS\LEONI Applications\Query.lnk" AlwaysRemoveQuery: !macroend ;************************** ;Sequencer !macro UninstallSequencer UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "Sequencer" StrCmp $R1 "1" 0 AlwaysRemoveSequencer SetDetailsPrint both DetailPrint "Deleting KSK Tools | Sequencer" SetDetailsPrint listonly SetOutPath "" Delete "$INSTDIR\Sequencer.exe" SetDetailsPrint both DetailPrint "Deleting KSK Tools | DLLs" SetDetailsPrint listonly !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DSAFF.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DSAppLib.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DSFF9.dll" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\DSFntMap.dll" SetDetailsPrint both DetailPrint "Deleting KSK Tools | Resources" SetDetailsPrint listonly Delete "$INSTDIR\Resources\Sequencer\BC.aff" Delete "$INSTDIR\Resources\Sequencer\OldBC.aff" Delete "$INSTDIR\Resources\Sequencer\Barcodes.dat" Delete "$INSTDIR\Resources\Sequencer\Error.wav" Delete "$INSTDIR\Resources\Sequencer\Success.wav" Delete "$INSTDIR\Resources\Sequencer\Local.txt" ;only remove the messages file if uninstalling everything strcmp "${UN}" "un" 0 +2 Delete "$INSTDIR\Resources\Sequencer\Messages.txt" RMDir "$INSTDIR\Resources\Sequencer" ;delete the font from the fonts folder only if uninstalling everything strcmp "${UN}" "un" 0 Cont2 System::Call "GDI32::RemoveFontResourceA(t) i ('fontname.fon') .s" Pop $0 # $0 is zero if the function failed Delete "$FONTS\Free3of9.ttf" SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000 Cont2: Delete "$WINDIR\DSFntMap.ini" Delete "$SMPROGRAMS\LEONI Applications\Sequencer.lnk" AlwaysRemoveSequencer: !macroend ;************************** ;Watch-it !macro UninstallWatchIt UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "Watch-it" StrCmp $R1 "1" 0 AlwaysRemoveWatchIt SetDetailsPrint both DetailPrint "Deleting KSK Tools | Watch-it" SetDetailsPrint listonly Delete "$INSTDIR\Watch-it.exe" Delete "$SMPROGRAMS\LEONI Applications\Watch-it.lnk" AlwaysRemoveWatchIt: !macroend ;************************** ;TestGen !macro UninstallTestGen UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "TestGen" StrCmp $R1 "1" 0 AlwaysRemoveTestGen SetDetailsPrint both DetailPrint "Deleting TestGen | Application" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "TestGen.exe" 0 Delete "$INSTDIR\Resources\TestGen\UserCom.dat" RMDir "$INSTDIR\Resources\TestGen" !insertmacro UnInstallLib DLL SHARED NOREBOOT_NOTPROTECTED "$SYSDIR\TestGen.dll" Delete "$SMPROGRAMS\LEONI Applications\TestGen.lnk" AlwaysRemoveTestGen: !macroend ;************************** ;VCTInject !macro UninstallVCTInject UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "VCTInject" StrCmp $R1 "1" 0 AlwaysRemoveVCTInject SetDetailsPrint both DetailPrint "Deleting VCTInject | Application" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "VCTInject.exe" 0 Delete "$SMPROGRAMS\LEONI Applications\VCTInject.lnk" AlwaysRemoveVCTInject: !macroend ;************************** ;Analysis Tools !macro UninstallAnalysis UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "Analysis Tools" StrCmp $R1 "1" 0 AlwaysRemoveAnalysis SetDetailsPrint both DetailPrint "Deleting Analysis Tools | Applications" SetDetailsPrint listonly Delete "$INSTDIR\BackTrack.exe" Delete "$INSTDIR\TestBoard.exe" Delete "$INSTDIR\StatsToText.exe" Delete "$INSTDIR\CrossAcorn.exe" Delete "$INSTDIR\NodeConv.exe" Delete "$INSTDIR\VCTCompare.exe" !insertmacro UnRegActiveXEXEDel "$INSTDIR\" "HeadView.exe" 0 ;Delete "$INSTDIR\LayMan Grabber.exe" Delete "$SMPROGRAMS\LEONI Applications\BackTrack.lnk" Delete "$SMPROGRAMS\LEONI Applications\TestBoard.lnk" Delete "$SMPROGRAMS\LEONI Applications\StatsToText.lnk" Delete "$SMPROGRAMS\LEONI Applications\CrossAcorn.lnk" Delete "$SMPROGRAMS\LEONI Applications\NodeConv.lnk" Delete "$SMPROGRAMS\LEONI Applications\VCTCompare.lnk" Delete "$SMPROGRAMS\LEONI Applications\HeadView.lnk" ;Delete "$SMPROGRAMS\LEONI Applications\LayMan Grabber.lnk" AlwaysRemoveAnalysis: !macroend ;************************** ;FlashTest !macro UninstallFlashTest UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "FlashTest" StrCmp $R1 "1" 0 AlwaysRemoveFlashTest SetDetailsPrint both DetailPrint "Deleting FlashTest | Applications" SetDetailsPrint listonly Delete "$INSTDIR\FlashTest.exe" Delete "$INSTDIR\FlashCreate.exe" Delete "$SMPROGRAMS\LEONI Applications\FlashTest.lnk" Delete "$SMPROGRAMS\LEONI Applications\FlashCreate.lnk" AlwaysRemoveFlashTest: !macroend ;************************** ;Label Editors !macro UninstallLabelEditors UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "Label Editors" StrCmp $R1 "1" 0 AlwaysRemoveLabelEditors SetDetailsPrint both DetailPrint "Deleting Label Editors | Labels" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "AirBag.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "AirBagLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "AlarmLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "Cum_Lab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "CumMany.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "Cummings.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "DensoLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "DiscoAir.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "DiscoLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "DiscoTail.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "EUILab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "FlashLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "GDSLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "HellaLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "L320Lamp.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "LamStart.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "McMercLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "MegaFuse.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "MicroLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "MicroPack.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "Op_Label.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "PowerFuse.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "PowerTran.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R8AbsFBox.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R25BLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R25FLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R25MLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R25PLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R40Lab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R75AirLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R75Clip.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "R75Lab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "RMS_Lab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "ShrewBar.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "ShrewLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "ShrewNew.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "SM6Lab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "SOP2000.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "SOPLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "SPTLab.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "Starters.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "StartNisn.exe" 1 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type003\" "DensoA6.exe" 1 RMDir "$INSTDIR\VCTTools\Type003" SetDetailsPrint both DetailPrint "Deleting Label Editors | Labels | Resources" SetDetailsPrint listonly Delete "$INSTDIR\VCTTools\Resources\Type003\AirBagSN.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\AirLabSts.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\CapslF39.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\DayNo.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\IniTECB370.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\IniTECBag.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\LabSts.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\LabStsStr2.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\OpClock.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PassCount3.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PassCount4.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PassCount5.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PCL5F39.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PCL5F39u.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrBoard.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrDay.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrDom.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrFail.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrFault.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrIdent.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrintSeq.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrMonth.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrMonthNum.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrPLCFail.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrSnkCon.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrSnkNum.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrSrcCon.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrSrcNum.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrStation.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrTime.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrVarDigit.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrVariant.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrVCTNum.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrYear.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\PrYearSP.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\RequestSeq.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\SbpTsn.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\Seconds.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\TECB30OD.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\TimeNoCol.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\WeekNo.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\WeekNoSP.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\YearDigit.dat" Delete "$INSTDIR\VCTTools\Resources\Type003\AudiLogo.pcx" RMDir "$INSTDIR\VCTTools\Resources\Type003" Delete "$INSTDIR\Resources\McMercLab\MBLogo.pcx" RMDir "$INSTDIR\Resources\McMercLab" Delete "$INSTDIR\Resources\MegaFuse\MFLogoLarge.pcx" Delete "$INSTDIR\Resources\MegaFuse\MFLogoSmall.pcx" RMDir "$INSTDIR\Resources\MegaFuse" Delete "$INSTDIR\VCTTools\Resources\TypeDesc.dat" RMDir "$INSTDIR\VCTTools\Resources" SetDetailsPrint both DetailPrint "Deleting Label Editors | Tools" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type001\" "Amalgam.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type001\" "EmptyChk.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type001\" "LED.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Type001\" "NonOC.exe" 0 RMDir "$INSTDIR\VCTTools\Type001" SetDetailsPrint both DetailPrint "Deleting Label Editors | Software Modules" SetDetailsPrint listonly Delete "$INSTDIR\VCTTools\Type004\AirBarcode.smo" Delete "$INSTDIR\VCTTools\Type004\BarChk27.smo" Delete "$INSTDIR\VCTTools\Type004\Barcode.smo" Delete "$INSTDIR\VCTTools\Type004\CB40BarChk.smo" Delete "$INSTDIR\VCTTools\Type004\ChkBarLab.smo" Delete "$INSTDIR\VCTTools\Type004\Erase.smo" Delete "$INSTDIR\VCTTools\Type004\FiveSecDly.smo" Delete "$INSTDIR\VCTTools\Type004\LHEJBChk.smo" Delete "$INSTDIR\VCTTools\Type004\OneSecDly.smo" Delete "$INSTDIR\VCTTools\Type004\Online.smo" Delete "$INSTDIR\VCTTools\Type004\Pass_VCT.smo" Delete "$INSTDIR\VCTTools\Type004\ReadBar.smo" Delete "$INSTDIR\VCTTools\Type004\RHEJBChk.smo" Delete "$INSTDIR\VCTTools\Type004\SmallDly.smo" Delete "$INSTDIR\VCTTools\Type004\TwoSecDly.smo" RMDir "$INSTDIR\VCTTools\Type004" SetDetailsPrint both DetailPrint "Deleting Label Editors | Diagnostics" SetDetailsPrint listonly Delete "$INSTDIR\VCTTools\Type007\Calibrate.dia" Delete "$INSTDIR\VCTTools\Type007\HTMuxTest.dia" Delete "$INSTDIR\VCTTools\Type007\InputBrd.dia" Delete "$INSTDIR\VCTTools\Type007\InputDis.dia" Delete "$INSTDIR\VCTTools\Type007\LCDDisplay.dia" Delete "$INSTDIR\VCTTools\Type007\MultiAn.dia" Delete "$INSTDIR\VCTTools\Type007\MuxTest.dia" Delete "$INSTDIR\VCTTools\Type007\OutBoard.dia" Delete "$INSTDIR\VCTTools\Type007\Printer.dia" RMDir "$INSTDIR\VCTTools\Type007" SetDetailsPrint both DetailPrint "Deleting Label Editors | Utilites" SetDetailsPrint listonly Delete "$INSTDIR\VCTTools\Type009\Logon15.utl" Delete "$INSTDIR\VCTTools\Type009\Logon.utl" Delete "$INSTDIR\VCTTools\Type009\Logon_Yst.utl" Delete "$INSTDIR\VCTTools\Type009\SerNo.utl" Delete "$INSTDIR\VCTTools\Type009\SerNoLog.utl" RMDir "$INSTDIR\VCTTools\Type009" SetDetailsPrint both DetailPrint "Deleting Label Editors | Editors" SetDetailsPrint listonly !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Utils\" "AuxDrvEd.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Utils\" "FuseEdit.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Utils\" "NonOCEdit.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Utils\" "TestEdit.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Utils\" "VisAidEdit.exe" 0 !insertmacro UnRegActiveXEXEDel "$INSTDIR\VCTTools\Utils\" "Diagnose.exe" 0 RMDir "$INSTDIR\VCTTools\Utils" RMDir "$INSTDIR\VCTTools" RMDir "$INSTDIR\Resources" AlwaysRemoveLabelEditors: !macroend ;************************** ;PreBlockClient !macro UninstallPreBlockClient UN ReadRegStr $R1 HKLM "Software\LEONI\Install Options" "PreBlockClient" StrCmp $R1 "1" 0 AlwaysRemovePreBlockClient SetDetailsPrint both DetailPrint "Deleting PreBlockClient | Application" SetDetailsPrint listonly Delete "$INSTDIR\PreBlockClient.exe" RMDir /r "$INSTDIR\Resources\PreBlock" Delete "$SMPROGRAMS\LEONI Applications\PreBlockClient.lnk" AlwaysRemovePreBlockClient: !macroend ;************************** ;Misc !macro UninstallMisc UN Delete "$INSTDIR\Uninstall.exe" RMDir "$INSTDIR" DeleteRegKey /ifempty HKCU "Software\LEONI Apps" RMDir "$SMPROGRAMS\LEONI Applications" SetDetailsPrint both !macroend ;****************************************************************************************************** ;Uninstaller Section ;****************************************************************************************************** Section "Uninstall" ;just calls the removeeverything macro with UN !insertmacro UninstallPoseidon "un" !insertmacro UninstallHelp "un" !insertmacro UninstallCarMan "un" !insertmacro UninstallDELTA "un" !insertmacro UninstallDELTAHelp "un" !insertmacro UninstallDataServer "un" !insertmacro UninstallAutoArch "un" !insertmacro UninstallFasTest "un" !insertmacro UninstallVCTEditor "un" !insertmacro UninstallWCData "un" !insertmacro UninstallMGFRobGen "un" !insertmacro UninstallPowerFuseStats "un" !insertmacro UninstallQuery "un" !insertmacro UninstallSequencer "un" !insertmacro UninstallWatchIt "un" !insertmacro UninstallTestGen "un" !insertmacro UninstallVCTInject "un" !insertmacro UninstallAnalysis "un" !insertmacro UninstallFlashTest "un" !insertmacro UninstallLabelEditors "un" !insertmacro UninstallPreBlockClient "un" !insertmacro UninstallMisc "un" SectionEnd ;****************************************************************************************************** ; Functions ;****************************************************************************************************** Function .onGUIEnd ;check if the file already is inatlled here: IfFileExists "$FONTS\FREE3OF9.ttf" Cont3 0 SetOutPath "$FONTS" File "${SOURCEDIR}\FREE3OF9.ttf" System::Call "GDI32::AddFontResourceA(t) i ('FREE3OF9.TTF') .s" Pop $0 # $0 is zero if the function failed SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000 Exec '"Explorer.exe " "$FONTS"' ;StrCpy $FONT_DIR $FONTS ;!insertmacro InstallTTFFont '${SOURCEDIR}\FREE3OF9.TTF' ;SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0 /TIMEOUT=5000 Cont3: ;run poseidon-this will fail if the first install is quit part way through Exec '"$INSTDIR\Poseidon.exe" /s' FunctionEnd Function .onInit ;set the default installation location to - all users SetShellVarContext all ;allows multiple languages to be used !insertmacro MUI_LANGDLL_DISPLAY ;tick all the sections that were installed last time !insertmacro CheckSection "Help Files" ${secHelpFiles} !insertmacro CheckSection "CarMan" ${SecCarMan};2 !insertmacro CheckSection "DELTA App" ${SecDELTAApp};4 !insertmacro CheckSection "DELTA Help" ${SecDELTAHelp};5 !insertmacro CheckSection "DataServer" ${SecDataServer};8 !insertmacro CheckSection "AutoArch" ${SecAutoArch};9 !insertmacro CheckSection "FasTest" ${SecFasTest};12 !insertmacro CheckSection "VCTEditor" ${SecVCTEditor};13 !insertmacro CheckSection "WCData" ${SecWCData};14 !insertmacro CheckSection "MGFRobGen" ${SecMGFRobGen};16 !insertmacro CheckSection "PowerFuseStats" ${SecPowerFuseStats};17 !insertmacro CheckSection "Query" ${SecQuery};19 !insertmacro CheckSection "Sequencer" ${SecSequencer};20 !insertmacro CheckSection "Watch-it" ${SecWatchit};21 !insertmacro CheckSection "TestGen" ${SecTestGen};23 !insertmacro CheckSection "VCTInject" ${SecVCTInject};24 !insertmacro CheckSection "Analysis Tools" ${SecAnalTools};25 !insertmacro CheckSection "FlashTest" ${SecFlashTest};26 !insertmacro CheckSection "Label Editors" ${SecLabelEditors};27 !insertmacro CheckSection "PreBlockClient" ${SecPreBlockClient};28 FunctionEnd Function un.onInit SetShellVarContext all !insertmacro MUI_LANGDLL_DISPLAY FunctionEnd Function InstDPCI StrCmp $DPCIDrv "TRUE" NoInstall 0 ;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DeltaPCI] ;"ErrorControl" = dword:00000001 ;"Group" = "Extended base" ;"Start" = dword:00000002 ;"Type" = dword:00000001 ;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Dos Devices] ;"DPCI" = "\\DosDevices\\DeltaPCI" ;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System\DeltaPCI] ;"EventMessageFile" = "%systemroot%\\system32\\Drivers\\DeltaPCI.sys" ;"TypesSupported" = dword:00000007 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\DeltaPCI" "ErrorControl" 0x00000001 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\DeltaPCI" "Group" "Extended base" WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\DeltaPCI" "Start" 0x00000002 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\DeltaPCI" "Type" 0x00000001 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Dos Devices" "DPCI" "\DosDevices\DeltaPCI" WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\EventLog\System\DeltaPCI" "EventMessageFile" "%systemroot%\system32\Drivers\DeltaPCI.sys" WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\EventLog\System\DeltaPCI" "TypesSupported" 0x00000007 StrCpy $DPCIDrv "TRUE" NoInstall: FunctionEnd Function InstSPGUser StrCmp $SPGDrv "TRUE" NoInstall 0 ;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SPGDriver] ;"ErrorControl" = dword:00000001 ;"Group" = "Extended base" ;"Start" = dword:00000002 ;"Type" = dword:00000001 ;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Dos Devices] ;"SPGDrv" = "\\DosDevices\\SPGDriver" ;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System\SPGDriver] ;"EventMessageFile" = "%systemroot%\\system32\\Drivers\\SPGDriver.sys" ;"TypesSupported" = dword:00000007 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\SPGDriver" "ErrorControl" 0x00000001 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\SPGDriver" "Group" "Extended base" WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\SPGDriver" "Start" 0x00000002 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\SPGDriver" "Type" 0x00000001 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Dos Devices" "SPGDrv" "\DosDevices\SPGDriver" WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\EventLog\System\SPGDriver" "EventMessageFile" "%systemroot%\system32\Drivers\SPGDriver.sys" WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\EventLog\System\SPGDriver" "TypesSupported" 0x00000007 StrCpy $SPGDrv "TRUE" NoInstall: FunctionEnd