-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bat
72 lines (56 loc) · 1.42 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
:: Batch Script
@echo off
echo.
echo.
echo.
:: Header ::
echo lia's quickinstaller
echo copyright "@lenowac", 2022
echo.
echo.
echo this set of scripts will run the choco installer and install some essential apps with it.
timeout 5
:: Make some room ::
echo.
echo.
echo.
echo.
echo.
:: Adminrechte holen ::
echo getting privileges...
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
echo.
echo.
echo.
:: Install choco ::
echo next up: install chocolatery
echo.
call "%cd%\src\install-choco.bat"
echo.
echo.
echo.
:: Install Apps ::
echo next up: install apps
timeout 3
echo.
call "%cd%\src\install-apps.bat"
echo.
echo.
echo.
:::: WORK IN PROGRESS ::::
:: Install additional installers ::
echo running .msi's...
for %%v in ("%cd%\additional installers\*.msi") do msiexec.exe /i c:\setup.msi /L*V "C:\Temp\msilog.log" "" "%%~v"
echo runnin .exe's...
for %%v in ("%cd%\additional installers\*.exe") do start "" "%%~v"
for /r %%f in ("%cd%\additional installers\*.exe") do start "" "%%f"
:::: WORK IN PROGRESS ::::
:: Remove choco
::echo next up: remove chocolatery
::echo.
::call "%cd%\src\remove-choco.bat"
echo done :)
echo press
timeout 10
EXIT