-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPDATE] about to start window client developpement. Checks are finis…
…hed. Need to verify if launch child process have same admin rights
- Loading branch information
Showing
6 changed files
with
83 additions
and
34 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
:: Hiding commands | ||
@echo off | ||
|
||
python --version 3>NUL | ||
if errorlevel 1 goto errorNoPython | ||
|
||
:: Install dependencies | ||
echo [Argos] Installing dependencies | ||
python -m pip install --upgrade pip > NUL && pip install -r %~dp0/dependencies > NUL | ||
echo [Argos] Starting argos... | ||
|
||
:: Check if script is indeed runned as administrator. | ||
net session >nul 2>&1 | ||
if %errorLevel% == 0 ( | ||
echo [Argos] Success: Administrative permissions confirmed. | ||
) else ( | ||
powershell -Command "& {Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('[Argos] Failure: Current permissions inadequate. The script must be run with admin rights', 'Argos', 'ok', [System.Windows.Forms.MessageBoxIcon]::Error);}" > NUL | ||
echo [Argos] Failure: Current permissions inadequate. | ||
goto:exit | ||
) | ||
|
||
:: Start argos | ||
chdir %~dp0 | ||
python3 %~dp0/windows_client.py | ||
::pause | ||
|
||
::Exiting script before error print | ||
:exit | ||
goto:eof | ||
|
||
:: Print error | ||
:errorNoPython | ||
echo. | ||
echo Error^: Python not installed | ||
"C:\Program Files\used\systems\innoventiq\accumanager\required\excutables\python-3.7.3-amd64.exe" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
import socketio | ||
|
||
def start_server(): | ||
print("Starting server...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from src.askers import * | ||
|
||
print("[Argos] Launched") | ||
askInfoWindow(Verify=showPassword) |