|
| 1 | +;NSIS Modern User Interface |
| 2 | +;Repeater install script |
| 3 | +;Written by Jonathan Naylor |
| 4 | + |
| 5 | +;-------------------------------- |
| 6 | +;Include Modern UI |
| 7 | + |
| 8 | + !include "MUI2.nsh" |
| 9 | + |
| 10 | +;-------------------------------- |
| 11 | +;Configuration |
| 12 | + |
| 13 | + ;General |
| 14 | + Name "Digital Voice - 20130219" |
| 15 | + OutFile "Digital_Voice-20130219.exe" |
| 16 | + |
| 17 | + ;Folder selection page |
| 18 | + InstallDir "$PROGRAMFILES\Digital Voice" |
| 19 | + |
| 20 | + ;Request application privileges for Windows Vista |
| 21 | + RequestExecutionLevel admin |
| 22 | + |
| 23 | +;-------------------------------- |
| 24 | +;Interface Settings |
| 25 | + |
| 26 | + !define MUI_ABORTWARNING |
| 27 | + |
| 28 | +;-------------------------------- |
| 29 | +;Pages |
| 30 | + |
| 31 | + !insertmacro MUI_PAGE_LICENSE "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\COPYING.txt" |
| 32 | + !insertmacro MUI_PAGE_DIRECTORY |
| 33 | + !insertmacro MUI_PAGE_INSTFILES |
| 34 | + !insertmacro MUI_UNPAGE_CONFIRM |
| 35 | + !insertmacro MUI_UNPAGE_INSTFILES |
| 36 | + |
| 37 | +;-------------------------------- |
| 38 | +;Languages |
| 39 | + |
| 40 | + !insertmacro MUI_LANGUAGE "English" |
| 41 | + |
| 42 | +;-------------------------------- |
| 43 | +;Installer Sections |
| 44 | + |
| 45 | +Section "Repeater Program Files" SecProgram |
| 46 | + |
| 47 | + SetOutPath "$INSTDIR" |
| 48 | + |
| 49 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\DCSClient.exe" |
| 50 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\DExtraClient.exe" |
| 51 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\DVAPClient.exe" |
| 52 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\DVRPTRClient.exe" |
| 53 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\DVToolReader.exe" |
| 54 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\GMSKClient.exe" |
| 55 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\SoundCardClient.exe" |
| 56 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\portaudio_x86.dll" |
| 57 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\wxbase28u_vc_custom.dll" |
| 58 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\wxmsw28u_adv_vc_custom.dll" |
| 59 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\Release\wxmsw28u_core_vc_custom.dll" |
| 60 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\WindowsUSB\dvrptr_cdc.inf" |
| 61 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\WindowsUSB\gmsk.inf" |
| 62 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\WindowsUSB\gmsk.cat" |
| 63 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\WindowsUSB\xDVRPTR-32-64-2.inf" |
| 64 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\DCSClient\DCS_Hosts.txt" |
| 65 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\DExtraClient\DExtra_Hosts.txt" |
| 66 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\COPYING.txt" |
| 67 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\CHANGES.txt" |
| 68 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\Digital Voice\USAGE.txt" |
| 69 | + |
| 70 | + ;Create start menu entry |
| 71 | + CreateDirectory "$SMPROGRAMS\Digital Voice" |
| 72 | + CreateShortCut "$SMPROGRAMS\Digital Voice\DCS Client.lnk" "$INSTDIR\DCSClient.exe" |
| 73 | + CreateShortCut "$SMPROGRAMS\Digital Voice\DExtra Client.lnk" "$INSTDIR\DExtraClient.exe" |
| 74 | + CreateShortCut "$SMPROGRAMS\Digital Voice\DVAP Client.lnk" "$INSTDIR\DVAPClient.exe" |
| 75 | + CreateShortCut "$SMPROGRAMS\Digital Voice\DV-RPTR Client.lnk" "$INSTDIR\DVRPTRClient.exe" |
| 76 | + CreateShortCut "$SMPROGRAMS\Digital Voice\DVTool Reader.lnk" "$INSTDIR\DVToolReader.exe" |
| 77 | + CreateShortCut "$SMPROGRAMS\Digital Voice\GMSK Client.lnk" "$INSTDIR\GMSKClient.exe" |
| 78 | + CreateShortCut "$SMPROGRAMS\Digital Voice\Sound Card Client.lnk" "$INSTDIR\SoundCardClient.exe" |
| 79 | + CreateShortCut "$SMPROGRAMS\Digital Voice\Licence.lnk" "$INSTDIR\COPYING.txt" |
| 80 | + CreateShortCut "$SMPROGRAMS\Digital Voice\Changes.lnk" "$INSTDIR\CHANGES.txt" |
| 81 | + CreateShortCut "$SMPROGRAMS\Digital Voice\Usage.lnk" "$INSTDIR\USAGE.txt" |
| 82 | + CreateShortCut "$SMPROGRAMS\Digital Voice\Uninstall.lnk" "$INSTDIR\Uninstall.exe" |
| 83 | + |
| 84 | + ;Create uninstaller |
| 85 | + WriteUninstaller "$INSTDIR\Uninstall.exe" |
| 86 | + |
| 87 | +SectionEnd |
| 88 | + |
| 89 | +;-------------------------------- |
| 90 | +;Uninstaller Section |
| 91 | + |
| 92 | +Section "Uninstall" |
| 93 | + |
| 94 | + Delete "$INSTDIR\*.*" |
| 95 | + RMDir "$INSTDIR" |
| 96 | + |
| 97 | + Delete "$SMPROGRAMS\Digital Voice\*.*" |
| 98 | + RMDir "$SMPROGRAMS\Digital Voice" |
| 99 | + |
| 100 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\DCS Client" |
| 101 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\DExtra Client" |
| 102 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\DVAP Client" |
| 103 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\DVRPTR Client" |
| 104 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\DVTool Reader" |
| 105 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\GMSK Client" |
| 106 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\Sound Card Client" |
| 107 | + |
| 108 | +SectionEnd |
0 commit comments