From c0c0fe261b487825645f1ca63b2b36066cd63055 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 29 Jan 2021 13:02:40 +0100 Subject: [PATCH] . --- scripts/config/install-purebasic.txt | 8 ++++++++ scripts/install-purebasic.cmd | 3 ++- scripts/uninstall-edge.cmd | 10 ++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 scripts/config/install-purebasic.txt diff --git a/scripts/config/install-purebasic.txt b/scripts/config/install-purebasic.txt new file mode 100644 index 0000000..7d88179 --- /dev/null +++ b/scripts/config/install-purebasic.txt @@ -0,0 +1,8 @@ +[Setup] +Lang=default +Dir=C:\Program Files\PureBasic +Group=PureBasic +NoIcons=0 +SetupType=custom +Components=main,english +Tasks= diff --git a/scripts/install-purebasic.cmd b/scripts/install-purebasic.cmd index 007a659..c021cc6 100644 --- a/scripts/install-purebasic.cmd +++ b/scripts/install-purebasic.cmd @@ -1,5 +1,6 @@ @echo off +set CONFIG=config\install-purebasic.txt set EXE=..\software\PureBasic_Windows_X64_LTS_5.73.exe echo ####### %0 ####### @@ -9,7 +10,7 @@ taskkill /F /IM PureBasic.exe taskkill /F /IM pbcompiler.exe echo installing PUREBASIC ... -%EXE% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS +%EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS echo ####### %0 ####### diff --git a/scripts/uninstall-edge.cmd b/scripts/uninstall-edge.cmd index 2ef3e01..5edfc8c 100644 --- a/scripts/uninstall-edge.cmd +++ b/scripts/uninstall-edge.cmd @@ -9,10 +9,12 @@ echo ####### %0 ####### %EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall echo cleanup ... -rd /S /Q %EDGEROOT% 1>nul 2>nul -rd /S /Q %EDGEUPDATE% 1>nul 2>nul -del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk" 1>nul 2>nul -del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 1>nul 2>nul +rd /S /Q %EDGEROOT% 2>nul +rd /S /Q %EDGEUPDATE% 2>nul +del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk" 2>nul +del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul +del /F "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul +del /F "%USERPROFILE%\Desktop\Microsoft Edge.lnk" 2>nul echo block edge updates ... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^