forked from FREEWING-JP/Build-Fritzing-1.0.0-Windows-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03_Install_Qt_653.bat
87 lines (66 loc) · 1.77 KB
/
03_Install_Qt_653.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
rem 03_Install_Qt_653.bat
rem http://www.neko.ne.jp/~freewing/software/build_fritzing_100_windows/
rem Copyright (c) 2023 FREE WING,Y.Sakamoto
echo %0
timeout /T 10 /NOBREAK
@echo off
cd /d \00_fritzing
if exist "C:\Qt\6.5.3\msvc2019_64" exit
echo .
echo ===
echo MUST Require Qt Account
echo .
echo https://login.qt.io/register
echo ===
echo Input Qt Account
rem Beep
rundll32 user32.dll,MessageBeep
if "%Qt_email%" == "" set /p Qt_email=Qt Account your_email ?
if "%Qt_passw%" == "" set /p Qt_passw=Qt Account your_password ?
cls
echo Check Admin Plivilege
whoami /groups | find "S-1-16-12288" > nul
if %ErrorLevel% == 0 goto is_admin
echo .
echo .
echo .
echo ===
echo User Account Control
echo ===
echo Select Yes
rem Beep
rundll32 user32.dll,MessageBeep
pause
:is_admin
if "%Qt_agree%" == "" goto manual_agree
start SendKeys_Agree.vbs
goto auto_agree
:manual_agree
echo .
echo .
echo .
echo ===
echo (Lesser) GNU General Public License v3 obligations:
echo [5525] Accept or Reject
echo ===
echo Type Accept
rem Beep
rundll32 user32.dll,MessageBeep
pause
:auto_agree
echo cd /d %cd%>qt_inst.bat
echo qt-unified-windows-x64-4.6.1-online.exe --root C:\Qt ^^>>qt_inst.bat
echo --email %Qt_email% ^^>>qt_inst.bat
echo --pw %Qt_passw% ^^>>qt_inst.bat
echo --accept-licenses ^^>>qt_inst.bat
echo --accept-messages ^^>>qt_inst.bat
echo --confirm-command ^^>>qt_inst.bat
echo --auto-answer telemetry-question=No ^^>>qt_inst.bat
echo install qt.qt6.653.win64_msvc2019_64 ^^>>qt_inst.bat
echo install qt.qt6.653.addons ^^>>qt_inst.bat
echo install qt.qt6.653.qt5compat>>qt_inst.bat
@echo on
start /wait powershell "Start-Process -FilePath 'qt_inst.bat' -WorkingDirectory '%cd%' -Verb RunAs -Wait"
exit
rem include QtCreator
echo install qt.tools.qtcreator_gui ^^>>qt_inst.bat