summaryrefslogtreecommitdiffstats
path: root/win10-prep.bat
diff options
context:
space:
mode:
authorbreadcat2020-07-05 19:27:18 +0100
committerbreadcat2020-07-05 19:27:18 +0100
commit2b25fc16eb9d8484673873cdd1de6224792b75c9 (patch)
tree0c6f1134943997471b3f4ba9059def27c38a0de2 /win10-prep.bat
parentad41db8d0b88e8771fe363cd342181be17d0b97e (diff)
downloadwin10-prep-2b25fc16eb9d8484673873cdd1de6224792b75c9.tar.gz
win10-prep-2b25fc16eb9d8484673873cdd1de6224792b75c9.tar.bz2
win10-prep-2b25fc16eb9d8484673873cdd1de6224792b75c9.zip
Another if statement
Quiets error output
Diffstat (limited to 'win10-prep.bat')
-rw-r--r--win10-prep.bat2
1 files changed, 1 insertions, 1 deletions
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