|
| 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 "XReflector 20130223" |
| 15 | + OutFile "XReflector-20130223.exe" |
| 16 | + |
| 17 | + ;Folder selection page |
| 18 | + InstallDir "$PROGRAMFILES\XReflector" |
| 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\XReflector\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\XReflector\Release\XReflector.exe" |
| 50 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\XReflector\Release\wxbase28u_vc_custom.dll" |
| 51 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\XReflector\Release\wxmsw28u_adv_vc_custom.dll" |
| 52 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\XReflector\Release\wxmsw28u_core_vc_custom.dll" |
| 53 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\XReflector\CHANGES.txt" |
| 54 | + File "C:\Users\Jonathan\Documents\Visual Studio 2008\Projects\opendv\trunk\XReflector\COPYING.txt" |
| 55 | + |
| 56 | + ;Create start menu entry |
| 57 | + CreateDirectory "$SMPROGRAMS\XReflector" |
| 58 | + CreateShortCut "$SMPROGRAMS\XReflector\XReflector.lnk" "$INSTDIR\XReflector.exe" |
| 59 | + CreateShortCut "$SMPROGRAMS\XReflector\Changes.lnk" "$INSTDIR\CHANGES.txt" |
| 60 | + CreateShortCut "$SMPROGRAMS\XReflector\Licence.lnk" "$INSTDIR\COPYING.txt" |
| 61 | + CreateShortCut "$SMPROGRAMS\XReflector\Uninstall.lnk" "$INSTDIR\Uninstall.exe" |
| 62 | + |
| 63 | + ;Create uninstaller |
| 64 | + WriteUninstaller "$INSTDIR\Uninstall.exe" |
| 65 | + |
| 66 | +SectionEnd |
| 67 | + |
| 68 | +;-------------------------------- |
| 69 | +;Uninstaller Section |
| 70 | + |
| 71 | +Section "Uninstall" |
| 72 | + |
| 73 | + Delete "$INSTDIR\*.*" |
| 74 | + RMDir "$INSTDIR" |
| 75 | + |
| 76 | + Delete "$SMPROGRAMS\XReflector\*.*" |
| 77 | + RMDir "$SMPROGRAMS\XReflector" |
| 78 | + |
| 79 | + DeleteRegKey /ifempty HKCU "Software\G4KLX\XReflector" |
| 80 | + |
| 81 | +SectionEnd |
0 commit comments