Skip to content

Commit

Permalink
Add uninstaller for the mod
Browse files Browse the repository at this point in the history
  • Loading branch information
fholger committed Aug 23, 2023
1 parent f45887c commit 8d188b2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Installer/farcry.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ It features a full roomscale VR experience with motion controller support.'
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH

!insertmacro MUI_LANGUAGE "English"

Section "!Mod files"
Expand All @@ -47,6 +51,8 @@ Section "!Mod files"
SetOutPath $INSTDIR
File .\assembly\FarCryVR.exe
File .\assembly\FarCryVR_dev.bat

WriteUninstaller "$INSTDIR\Uninstall_FarCryVR.exe"
SectionEnd

Section "Start menu shortcut"
Expand All @@ -57,6 +63,25 @@ Section /o "Desktop shortcut"
CreateShortcut "$Desktop\$(^Name).lnk" "$InstDir\FarCryVR.exe"
SectionEnd

Section "Uninstall"
SetOutPath $INSTDIR
RMDir /r "$INSTDIR\Mods\CryVR"
Delete "$INSTDIR\FarCryVR.exe"
Delete "$INSTDIR\FarCryVR_dev.bat"
Delete "$INSTDIR\Bin32\d3d9.dll"
Delete "$INSTDIR\Bin32\openvr_api.dll"
Delete "$INSTDIR\Bin32\avcodec-60.dll"
Delete "$INSTDIR\Bin32\avdevice-60.dll"
Delete "$INSTDIR\Bin32\avfilter-9.dll"
Delete "$INSTDIR\Bin32\avformat-60.dll"
Delete "$INSTDIR\Bin32\avutil-58.dll"
Delete "$INSTDIR\Bin32\swresample-4.dll"
Delete "$INSTDIR\Bin32\swscale-7.dll"
Delete "$SMPrograms\$(^Name).lnk"
Delete "$Desktop\$(^Name).lnk"
Delete "Uninstall_FarCryVR.exe"
SectionEnd

Function .onInit
; try to look up install directory for the GOG.com version of Far Cry
SetRegView 32
Expand Down
2 changes: 1 addition & 1 deletion ModDesc.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_Title_= "CryVR"
_Author_= "Holger Frydrych"
_Version_= "0.6.0"
_Version_= "0.7.0"
_Description_= "Play Far Cry in VR"
_Website_= "htps://farcryvr.de"

0 comments on commit 8d188b2

Please sign in to comment.