From 2b25fc16eb9d8484673873cdd1de6224792b75c9 Mon Sep 17 00:00:00 2001 From: breadcat Date: Sun, 5 Jul 2020 19:27:18 +0100 Subject: Another if statement Quiets error output --- win10-prep.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win10-prep.bat') diff --git a/win10-prep.bat b/win10-prep.bat index f7cbf93..436ff5b 100644 --- a/win10-prep.bat +++ b/win10-prep.bat @@ -307,7 +307,7 @@ rem add irfanview shortcode reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\irfanview.exe" /v "Path" /t REG_SZ /d "%programfiles%\IrfanView\\" /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\irfanview.exe" /ve /t REG_SZ /d "%programfiles%\IrfanView\i_view64.exe" /f rem allow irfanview to edit ini file -icacls "%programfiles%\IrfanView" /grant Everyone:(OI)(CI)F +if exist "%programfiles%\IrfanView" icacls "%programfiles%\IrfanView" /grant Everyone:(OI)(CI)F rem add mumble short code reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mumble.exe" /v "Path" /t REG_SZ /d "%programfiles(x86)%\Mumble\\" /f reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mumble.exe" /ve /t REG_SZ /d "%programfiles(x86)%\Mumble\mumble.exe" /f -- cgit v1.2.3