w10install/scripts/install-gsync.cmd

32 lines
723 B
Batchfile
Raw Normal View History

2021-01-12 22:54:02 +01:00
@echo off
set SCRIPTS=..\scripts
set SOFTWARE=..\software
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
set MSI=gsync_enterprise64.msi
echo ####### %0 #######
cd %SOFTWARE%
@echo on
msiexec /i %MSI% /qn
@echo off
cd %SCRIPTS%
echo changing startmenu folder ...
move /Y %STARTMENU%\"Backup and Sync from Google\Backup and Sync from Google.lnk" ^
%STARTMENU%\"Backup and Sync.lnk" 1>nul 2>nul
echo removing gsync startmenu folder ...
rd /S /Q %STARTMENU%\"Backup and Sync from Google" 1>nul 2>nul
echo removing google desktop icons ...
del /F /Q %PUBLIC%\Desktop\Google* 1>nul 2>nul
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######