From bc83a2820190f08b4b4f75eed8271871a93636da Mon Sep 17 00:00:00 2001 From: Riley McArdle Date: Sat, 9 Jan 2010 10:10:29 -0600 Subject: [PATCH] Added original installer script as received from Felix Deimel. --- Installer/mRemote.nsi | 84 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Installer/mRemote.nsi diff --git a/Installer/mRemote.nsi b/Installer/mRemote.nsi new file mode 100644 index 000000000..4a2b00830 --- /dev/null +++ b/Installer/mRemote.nsi @@ -0,0 +1,84 @@ +!include "MUI.nsh" + +;Basic Config +Name "mRemote" +OutFile %PathAndFilenameForOutput% +InstallDir $PROGRAMFILES\mRemote +InstallDirRegKey HKCU "Software\mRemote" "" + +;Design +!define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_BITMAP "header.bmp" ; optional +!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH +!define MUI_HEADERIMAGE_UNBITMAP "header.bmp" ; optional +!define MUI_HEADERIMAGE_UNBITMAP_NOSTRETCH +!define MUI_HEADER_TRANSPARENT_TEXT +#!define MUI_BGCOLOR 000000 +!define MUI_WELCOMEFINISHPAGE_BITMAP "welcomefinish.bmp" +!define MUI_UNWELCOMEFINISHPAGE_BITMAP "welcomefinish.bmp" + + +;Install Pages +!insertmacro MUI_PAGE_LICENSE ..\%ReleasePath%\License.txt +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES +!define MUI_FINISHPAGE_NOAUTOCLOSE + +# settings to start application +!define MUI_FINISHPAGE_RUN_NOTCHECKED +!define MUI_FINISHPAGE_RUN_Text "Start mRemote" +!define MUI_FINISHPAGE_RUN "$INSTDIR\mRemote.exe" +!insertmacro MUI_PAGE_FINISH + +;Uninstall Pages +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + + +;Set Language +!insertmacro MUI_LANGUAGE "English" + + +Section "" +SetOutPath $INSTDIR + +;AddFiles +File /r /x *.lic ..\%ReleasePath%\*.* + +;Uninstaller +WriteUninstaller "$INSTDIR\Uninstall.exe" +;Register ActiveX components +RegDLL "$INSTDIR\eolwtscom.dll" +RegDLL "$INSTDIR\scvncctrl.dll" + +;Start Menu +CreateDirectory "$SMPROGRAMS\mRemote" +CreateShortCut "$SMPROGRAMS\mRemote\mRemote.lnk" "$INSTDIR\mRemote.exe" +CreateShortCut "$SMPROGRAMS\mRemote\Uninstall.lnk" "$INSTDIR\Uninstall.exe" +;Registry +WriteRegStr HKCU "Software\mRemote" "" $INSTDIR + +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemote" DisplayName "mRemote" +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemote" UninstallString '"$INSTDIR\Uninstall.exe"' +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemote" DisplayIcon "$INSTDIR\mRemote.exe" +SectionEnd + + + + +Section "un.Uninstall" +;Unregister ActiveX components +UnregDLL "$INSTDIR\eolwtscom.dll" +UnregDLL "$INSTDIR\scvncctrl.dll" + +;Delete Files +RMDIR /r $INSTDIR + +;Start Menu +Delete "$SMPROGRAMS\mRemote\mRemote.lnk" +Delete "$SMPROGRAMS\mRemote\Uninstall.lnk" +RMDir "$SMPROGRAMS\mRemote" +;Registry +DeleteRegKey /ifempty HKCU "Software\mRemote" +DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemote" +SectionEnd \ No newline at end of file