mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
Cleaned up installer script. Added installer images. Removed visionapp Remote Desktop banners.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
Installer/bin
|
||||
mRemoteV1/bin
|
||||
mRemoteV1/obj
|
||||
mRemoteV1/publish
|
||||
|
||||
BIN
Installer/header.bmp
Normal file
BIN
Installer/header.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
@@ -1,10 +1,10 @@
|
||||
!include "MUI.nsh"
|
||||
|
||||
;Basic Config
|
||||
Name "mRemote"
|
||||
OutFile %PathAndFilenameForOutput%
|
||||
InstallDir $PROGRAMFILES\mRemote
|
||||
InstallDirRegKey HKCU "Software\mRemote" ""
|
||||
Name "mRemoteNG"
|
||||
OutFile bin\mRemoteNG-Installer.exe
|
||||
InstallDir $PROGRAMFILES\mRemoteNG
|
||||
InstallDirRegKey HKCU "Software\mRemoteNG" ""
|
||||
|
||||
;Design
|
||||
!define MUI_HEADERIMAGE
|
||||
@@ -13,72 +13,69 @@ InstallDirRegKey HKCU "Software\mRemote" ""
|
||||
!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_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
|
||||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "welcomefinish.bmp"
|
||||
|
||||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP_NOSTRETCH
|
||||
|
||||
;Install Pages
|
||||
!insertmacro MUI_PAGE_LICENSE ..\%ReleasePath%\License.txt
|
||||
!insertmacro MUI_PAGE_LICENSE ..\mRemoteV1\bin\Release\License.txt
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
||||
|
||||
# settings to start application
|
||||
;Finish Page
|
||||
!define MUI_FINISHPAGE_RUN_NOTCHECKED
|
||||
!define MUI_FINISHPAGE_RUN_Text "Start mRemote"
|
||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\mRemote.exe"
|
||||
!define MUI_FINISHPAGE_RUN_Text "Start mRemoteNG"
|
||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\mRemoteNG.exe"
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
;Uninstall Pages
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
|
||||
;Set Language
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
||||
|
||||
Section ""
|
||||
SetOutPath $INSTDIR
|
||||
SetOutPath $INSTDIR
|
||||
|
||||
;AddFiles
|
||||
File /r /x *.lic ..\%ReleasePath%\*.*
|
||||
;AddFiles
|
||||
File /r /x *.lic ..\mRemoteV1\bin\Release\*.*
|
||||
|
||||
;Uninstaller
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
;Register ActiveX components
|
||||
RegDLL "$INSTDIR\eolwtscom.dll"
|
||||
RegDLL "$INSTDIR\scvncctrl.dll"
|
||||
;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
|
||||
;Start Menu
|
||||
CreateDirectory "$SMPROGRAMS\mRemoteNG"
|
||||
CreateShortCut "$SMPROGRAMS\mRemoteNG\mRemoteNG.lnk" "$INSTDIR\mRemoteNG.exe"
|
||||
CreateShortCut "$SMPROGRAMS\mRemoteNG\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
|
||||
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"
|
||||
;Registry
|
||||
WriteRegStr HKCU "Software\mRemoteNG" "" $INSTDIR
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemoteNG" DisplayName "mRemoteNG"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemoteNG" UninstallString '"$INSTDIR\Uninstall.exe"'
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemoteNG" DisplayIcon "$INSTDIR\mRemoteNG.exe"
|
||||
SectionEnd
|
||||
|
||||
|
||||
|
||||
|
||||
Section "un.Uninstall"
|
||||
;Unregister ActiveX components
|
||||
UnregDLL "$INSTDIR\eolwtscom.dll"
|
||||
UnregDLL "$INSTDIR\scvncctrl.dll"
|
||||
;Unregister ActiveX components
|
||||
UnregDLL "$INSTDIR\eolwtscom.dll"
|
||||
UnregDLL "$INSTDIR\scvncctrl.dll"
|
||||
|
||||
;Delete Files
|
||||
RMDIR /r $INSTDIR
|
||||
;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
|
||||
;Start Menu
|
||||
Delete "$SMPROGRAMS\mRemoteNG\mRemote.lnk"
|
||||
Delete "$SMPROGRAMS\mRemoteNG\Uninstall.lnk"
|
||||
RMDir "$SMPROGRAMS\mRemoteNG"
|
||||
|
||||
;Registry
|
||||
DeleteRegKey /ifempty HKCU "Software\mRemoteNG"
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\mRemoteNG"
|
||||
SectionEnd
|
||||
|
||||
BIN
Installer/welcomefinish.bmp
Normal file
BIN
Installer/welcomefinish.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 151 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
@@ -717,7 +717,6 @@
|
||||
<None Include="Resources\Icons\ComponentsCheck_Icon.ico" />
|
||||
<None Include="Resources\Icons_FamFamFam\News_Icon.ico" />
|
||||
<None Include="Resources\Images_FamFamFam\News.png" />
|
||||
<None Include="Resources\Images\vRD08R1.png" />
|
||||
<Content Include="Resources\Announcement\mRemote_Announcement.txt" />
|
||||
<Content Include="Resources\Update\mRemote_Update.txt" />
|
||||
<Content Include="Help\Main.css">
|
||||
|
||||
Reference in New Issue
Block a user