@@ -27,7 +27,7 @@ InstallDir "$PROGRAMFILES\SlimeVR Server" ; $InstDir default value. Defaults to
27
27
ShowInstDetails show
28
28
ShowUninstDetails show
29
29
30
- BrandingText " SlimeVR Installer 0.1.4 "
30
+ BrandingText " SlimeVR Installer 0.1.5 "
31
31
32
32
# Admin rights are required for:
33
33
# 1. Removing Start Menu shortcut in Windows 7+
@@ -85,11 +85,13 @@ Function cleanTemp
85
85
Delete " $TEMP\SlimeVR.zip"
86
86
Delete " $TEMP\OpenJDK11U-jre_x64_windows_hotspot_11.0.14_9.zip"
87
87
Delete " $TEMP\OpenJDK11U-jre_x86-32_windows_hotspot_11.0.14_9.zip"
88
+ Delete " $TEMP\SlimeVR-Feeder-App-win64.zip"
88
89
RMDir /r " $TEMP\slimevr-openvr-driver-win64"
89
90
RMDir /r " $TEMP\SlimeVR"
90
91
RMDir /r " $TEMP\OpenJDK11U-jre_x86-32_windows_hotspot_11.0.14_9"
91
92
RMDir /r " $TEMP\OpenJDK11U-jre_x64_windows_hotspot_11.0.14_9"
92
93
RMDir /r " $TEMP\slimevr_usb_drivers_inst"
94
+ RMDir /r " $TEMP\SlimeVR-Feeder-App-win64"
93
95
FunctionEnd
94
96
95
97
Function .onInstFailed
@@ -102,8 +104,7 @@ Function .onGUIEnd
102
104
Call cleanTemp
103
105
FunctionEnd
104
106
105
- !macro cleanInstDir un
106
- Function ${un} cleanInstDir
107
+ Function cleanInstDir
107
108
Delete " $INSTDIR\uninstall.exe"
108
109
Delete " $INSTDIR\run.bat"
109
110
Delete " $INSTDIR\run.ico"
@@ -121,13 +122,10 @@ Function ${un}cleanInstDir
121
122
RMdir /r " $INSTDIR\jre"
122
123
RMdir /r " $INSTDIR\driver"
123
124
RMDir /r " $INSTDIR\logs"
125
+ RMdir /r " $INSTDIR\Feeder-App"
124
126
125
127
RMDir $INSTDIR
126
128
FunctionEnd
127
- !macroend
128
-
129
- !insertmacro cleanInstDir " "
130
- !insertmacro cleanInstDir " un."
131
129
# Init functions end #
132
130
133
131
Page Custom startPage startPageLeave
@@ -424,13 +422,36 @@ Section "SlimeVR Driver" SEC_VRDRIVER
424
422
${EnableX64FSRedirection}
425
423
Pop $0
426
424
${If} $0 != 0
427
- Abort " Failed to copy SlimeVR Driver. Make sure you have SteamVR installed. "
425
+ Abort " Failed to copy SlimeVR Driver."
428
426
${EndIf}
429
427
${Else}
430
428
CopyFiles /SILENT " $TEMP\slimevr-openvr-driver-win64\slimevr" " $STEAMVRDIR\drivers\slimevr"
431
429
${Endif}
432
430
SectionEnd
433
431
432
+ Section " SlimeVR Feeder App" SEC_FEEDER_APP
433
+ SetOutPath $INSTDIR
434
+
435
+ DetailPrint " Downloading SlimeVR Feeder App..."
436
+ NScurl::http GET " https://github.com/SlimeVR/SlimeVR-Feeder-App/releases/latest/download/SlimeVR-Feeder-App-win64.zip" " $TEMP\SlimeVR-Feeder-App-win64.zip" /CANCEL /RESUME /END
437
+ Pop $0 ; Status text ("OK" for success)
438
+ ${If} $0 != " OK"
439
+ Abort " Failed to download SlimeVR Feeder App. Reason: $0."
440
+ ${EndIf}
441
+ DetailPrint " Downloaded!"
442
+
443
+ DetailPrint " Unpacking downloaded files..."
444
+ nsisunz::Unzip " $TEMP\SlimeVR-Feeder-App-win64.zip" " $TEMP"
445
+ Pop $0
446
+ DetailPrint " Unzipping finished with $0."
447
+
448
+ DetailPrint " Copying SlimeVR Feeder App..."
449
+ CopyFiles /SILENT " $TEMP\SlimeVR-Feeder-App-win64\*" " $INSTDIR\Feeder-App"
450
+
451
+ DetailPrint " Installing SlimeVR Feeder App driver..."
452
+ nsExec::ExecToLog ' "$INSTDIR\Feeder-App\SlimeVR-Feeder-App.exe" --install'
453
+ SectionEnd
454
+
434
455
SectionGroup " USB drivers" SEC_USBDRIVERS
435
456
436
457
Section " CP210x driver" SEC_CP210X
@@ -546,39 +567,80 @@ Function componentsPre
546
567
SectionSetFlags ${SEC_JRE} 0
547
568
SectionSetFlags ${SEC_REGISTERAPP} 0
548
569
SectionSetFlags ${SEC_USBDRIVERS} ${SF_SECGRP}
549
- Abort
570
+ SectionSetFlags ${SEC_VRDRIVER} ${SF_SELECTED}
571
+ SectionSetFlags ${SEC_SERVER} ${SF_SELECTED}
550
572
${EndIf}
551
573
FunctionEnd
552
574
553
- # Uninstaller section start
554
- Section " uninstall"
555
- ${DisableX64FSRedirection}
556
- nsExec::ExecToLog ' "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -File "$INSTDIR\steamvr.ps1" -SteamPath "$STEAMDIR" -DriverPath "slimevr" -Uninstall' $0
557
- ${EnableX64FSRedirection}
558
- Pop $0
559
-
575
+ Section " -un.SlimeVR Server" un.SEC_SERVER
560
576
# Remove the shortcuts
561
577
RMdir /r " $SMPROGRAMS\SlimeVR Server"
562
578
# Remove separate shortcuts introduced with first release
563
579
Delete " $SMPROGRAMS\Uninstall SlimeVR Server.lnk"
564
580
Delete " $SMPROGRAMS\SlimeVR Server.lnk"
565
581
Delete " $DESKTOP\SlimeVR Server.lnk"
566
582
583
+ Delete " $INSTDIR\run.bat"
584
+ Delete " $INSTDIR\run.ico"
585
+ Delete " $INSTDIR\slimevr.jar"
586
+ Delete " $INSTDIR\MagnetoLib.dll"
587
+ Delete " $INSTDIR\log*"
588
+ Delete " $INSTDIR\*.log"
589
+ Delete " $INSTDIR\*.lck"
590
+ Delete " $INSTDIR\vrconfig.yml"
591
+ Delete " $INSTDIR\LICENSE*"
592
+
593
+ RMDir /r " $INSTDIR\Recordings"
594
+ RMdir /r " $INSTDIR\jre"
595
+ RMDir /r " $INSTDIR\logs"
596
+
597
+ IfErrors fail success
598
+ fail:
599
+ DetailPrint " Failed to remove SlimeVR Server files. Make sure SlimeVR Server is closed."
600
+ Abort
601
+ success:
602
+ SectionEnd
603
+
604
+ Section " -un.SlimeVR Driver" un.SEC_VRDRIVER
605
+ ${DisableX64FSRedirection}
606
+ nsExec::ExecToLog ' "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -File "$INSTDIR\steamvr.ps1" -SteamPath "$STEAMDIR" -DriverPath "slimevr" -Uninstall' $0
607
+ ${EnableX64FSRedirection}
608
+ Pop $0
609
+ ${If} $0 != 0
610
+ Abort " Failed to remove SlimeVR Driver."
611
+ ${EndIf}
612
+ Delete " $INSTDIR\steamvr.ps1"
613
+ SectionEnd
614
+
615
+ Section " -un.SlimeVR Feeder App" un.SEC_FEEDER_APP
616
+ IfFileExists " $INSTDIR\Feeder-App\SlimeVR-Feeder-App.exe" found not_found
617
+ found:
618
+ DetailPrint " Unregistering SlimeVR Feeder App driver..."
619
+ nsExec::ExecToLog ' "$INSTDIR\Feeder-App\SlimeVR-Feeder-App.exe" --uninstall'
620
+ DetailPrint " Removing SlimeVR Feeder App..."
621
+ RMdir /r " $INSTDIR\Feeder-App"
622
+ not_found:
623
+ SectionEnd
624
+
625
+ Section " -un." un.SEC_FIREWALL
567
626
DetailPrint " Removing SlimeVR Server from firewall exceptions...."
568
627
nsExec::Exec ' "$INSTDIR\firewall_uninstall.bat"'
628
+ Pop $0
629
+ Delete " $INSTDIR\firewall*.bat"
630
+ SectionEnd
569
631
632
+ Section " -un." un.SEC_POST_UNINSTALL
570
633
DetailPrint " Unregistering installation..."
571
634
DeleteRegKey HKLM " Software\Microsoft\Windows\CurrentVersion\Uninstall\SlimeVR"
572
-
573
- Call un.cleanInstDir
574
-
635
+ Delete " $INSTDIR\uninstall.exe"
636
+ RMDir $INSTDIR
575
637
DetailPrint " Done."
576
638
SectionEnd
577
- # Uninstaller section end
578
639
579
640
LangString DESC_SEC_SERVER ${LANG_ENGLISH} " Installs latest SlimeVR Server. Additionally downloads Java JRE 11."
580
641
LangString DESC_SEC_VRDRIVER ${LANG_ENGLISH} " Installs latest SlimeVR Driver in SteamVR."
581
642
LangString DESC_SEC_USBDRIVERS ${LANG_ENGLISH} " A list of USB drivers that are used by various boards."
643
+ LangString DESC_SEC_FEEDER_APP ${LANG_ENGLISH} " Installs SlimeVR Feeder App that sends position of SteamVR trackers (Vive trackers, controllers) to SlimeVR Server. Required for elbow tracking."
582
644
LangString DESC_SEC_CP210X ${LANG_ENGLISH} " Installs CP210X USB driver that comes with the following boards: NodeMCU v2, Wemos D1 Mini."
583
645
LangString DESC_SEC_CH340 ${LANG_ENGLISH} " Installs CH340 USB driver that comes with the following boards: NodeMCU v3, SlimeVR, Wemos D1 Mini."
584
646
LangString DESC_SEC_CH9102x ${LANG_ENGLISH} " Installs CH9102x USB driver that comes with the following boards: NodeMCU v2.1."
0 commit comments