2021-02-13 20:05:56 +01:00
|
|
|
@echo off
|
|
|
|
|
2021-03-06 16:23:00 +01:00
|
|
|
set OPT=..\optional
|
2021-02-13 20:05:56 +01:00
|
|
|
set SOFTWARE=..\software
|
2021-03-10 23:09:16 +01:00
|
|
|
set MSI=gsync-setup.msi
|
2021-02-13 20:05:56 +01:00
|
|
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
|
|
|
|
2021-02-27 20:07:28 +01:00
|
|
|
if NOT EXIST %SOFTWARE%\%MSI% (
|
|
|
|
echo ERROR: %SOFTWARE%\%MSI% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
2021-02-13 20:05:56 +01:00
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
cd %SOFTWARE%
|
|
|
|
@echo on
|
|
|
|
msiexec /i %MSI% /qn
|
|
|
|
@echo off
|
2021-03-06 16:23:00 +01:00
|
|
|
cd %OPT%
|
2021-02-13 20:05:56 +01:00
|
|
|
|
|
|
|
echo changing startmenu folder ...
|
|
|
|
move /Y %STARTMENU%\"Backup and Sync from Google\Backup and Sync from Google.lnk" ^
|
2021-02-14 21:05:58 +01:00
|
|
|
%STARTMENU%\"Backup and Sync.lnk"
|
2021-02-13 20:05:56 +01:00
|
|
|
|
|
|
|
echo removing google drive startmenu folder ...
|
|
|
|
@echo on
|
|
|
|
rd /S /Q %STARTMENU%\"Backup and Sync from Google"
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
echo removing google desktop icons ...
|
|
|
|
@echo on
|
|
|
|
del /F /Q %PUBLIC%\Desktop\Google*
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
2021-03-02 21:47:42 +01:00
|
|
|
pause
|
2021-02-13 20:05:56 +01:00
|
|
|
|