normal Users ... #61
This commit is contained in:
parent
501dcc9e40
commit
797daa23a1
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\F-SecureNetworkInstaller-AV_AVTR20F930_.exe
|
set EXE=..\software\F-SecureNetworkInstaller-AV_AVTR20F930_.exe
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\citrixworkspace-setup.exe
|
set EXE=..\software\citrixworkspace-setup.exe
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\horizon-setup.exe
|
set EXE=..\software\horizon-setup.exe
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\inkscape-setup.exe
|
set EXE=..\software\inkscape-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\iview-setup.exe
|
set EXE=..\software\iview-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-java.txt
|
set CONFIG=config\install-java.txt
|
||||||
set EXE=..\software\java-setup.exe
|
set EXE=..\software\java-setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-keepass2.txt
|
set CONFIG=config\install-keepass2.txt
|
||||||
set EXE=..\software\keepass2-setup.exe
|
set EXE=..\software\keepass2-setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-moneyxplex.txt
|
set CONFIG=config\install-moneyxplex.txt
|
||||||
set EXE=..\software\moneyplex-setup.exe
|
set EXE=..\software\moneyplex-setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\motorescue-setup.exe
|
set EXE=..\software\motorescue-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\obsstudio-setup.exe
|
set EXE=..\software\obsstudio-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set T=c:\TEMP
|
set T=c:\TEMP
|
||||||
set TOOLS=c:\tools
|
|
||||||
|
|
||||||
set CONFIG=config\install-purebasic.txt
|
set CONFIG=config\install-purebasic.txt
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
@ -42,7 +43,7 @@ if EXIST %ZIP% (
|
|||||||
rem remove old links ...
|
rem remove old links ...
|
||||||
del /F /Q /A %PUBLIC%\Desktop\PureBasic*.lnk 2>nul
|
del /F /Q /A %PUBLIC%\Desktop\PureBasic*.lnk 2>nul
|
||||||
|
|
||||||
%TOOLS%\7z e -y -aoa -o%T%\purebasic %ZIP%
|
7z e -y -aoa -o%T%\purebasic %ZIP%
|
||||||
move /Y %T%\purebasic\PureBasic*.exe %T%\purebasic\purebasic-setup.exe
|
move /Y %T%\purebasic\PureBasic*.exe %T%\purebasic\purebasic-setup.exe
|
||||||
|
|
||||||
echo installing purebasic ...
|
echo installing purebasic ...
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set SOFTWARE=..\software
|
set SOFTWARE=..\software
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-sharemouse.txt
|
set CONFIG=config\install-sharemouse.txt
|
||||||
set EXE=..\software\sharemouse-setup.exe
|
set EXE=..\software\sharemouse-setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set OPT=..\optional
|
set OPT=..\optional
|
||||||
set CONFIG=config
|
set CONFIG=config
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\sonos2-setup.exe
|
set EXE=..\software\sonos2-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\spotify-setup.exe
|
set EXE=..\software\spotify-setup.exe
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\steam-setup.exe
|
set EXE=..\software\steam-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set EXE=..\software\telegram-setup.exe
|
set EXE=..\software\telegram-setup.exe
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
|
||||||
set STARTMENU_USER="%APPDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU_USER="%APPDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
if NOT EXIST %EXE% (
|
if NOT EXIST %EXE% (
|
||||||
@ -15,14 +14,11 @@ echo installing Telegram Desktop Client ...
|
|||||||
start /wait %EXE% /silent /norestart %EXE%
|
start /wait %EXE% /silent /norestart %EXE%
|
||||||
|
|
||||||
echo moving Telegram startmenu shortcut ...
|
echo moving Telegram startmenu shortcut ...
|
||||||
move /Y %STARTMENU_USER%\"Telegram Desktop\Telegram.lnk" %STARTMENU%
|
move /Y %STARTMENU_USER%\"Telegram Desktop\Telegram.lnk" %STARTMENU_USER%
|
||||||
|
|
||||||
echo removing Telegram startmenu folder ...
|
echo removing Telegram startmenu folder ...
|
||||||
rd /S /Q %STARTMENU_USER%\"Telegram Desktop" 2>nul
|
rd /S /Q %STARTMENU_USER%\"Telegram Desktop" 2>nul
|
||||||
|
|
||||||
echo moving Telegram Desktop icon ...
|
|
||||||
move /Y "%USERPROFILE%\Desktop\Telegram.lnk" %PUBLIC%\Desktop
|
|
||||||
|
|
||||||
rem refresh desktop (W10 style)
|
rem refresh desktop (W10 style)
|
||||||
ie4uinit.exe -show
|
ie4uinit.exe -show
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\totalcommander-setup.exe
|
set EXE=..\software\totalcommander-setup.exe
|
||||||
set KEY=..\comany\wincmd.key
|
set KEY=..\comany\wincmd.key
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-vcesimulator.txt
|
set CONFIG=config\install-vcesimulator.txt
|
||||||
set EXE=..\software\vce_exam_simulator_setup.exe
|
set EXE=..\software\vce_exam_simulator_setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set EXE=..\software\virtualbox-setup.exe
|
set EXE=..\software\virtualbox-setup.exe
|
||||||
set VBOXMANAGE="%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe"
|
set VBOXMANAGE="%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-vscode.txt
|
set CONFIG=config\install-vscode.txt
|
||||||
set EXE=..\software\vscode-setup.exe
|
set EXE=..\software\vscode-setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set CONFIG=config\install-xojo.txt
|
set CONFIG=config\install-xojo.txt
|
||||||
set EXE=..\software\xojo-setup.exe
|
set EXE=..\software\xojo-setup.exe
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# REMOVE the Store ...
|
# REMOVE the Store ...
|
||||||
|
check-for-admin.cmd
|
||||||
|
|
||||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
rem most of this was took from:
|
rem most of this was took from:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set TOOLS=c:\tools
|
|
||||||
set CONFIG=config\hakchi2_config.ini
|
set CONFIG=config\hakchi2_config.ini
|
||||||
set ZIP=..\software\hakchi2.zip
|
set ZIP=..\software\hakchi2.zip
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
@ -16,7 +16,7 @@ echo killing hakchi2 processes...
|
|||||||
taskkill /F /IM hakchi.exe 2>nul
|
taskkill /F /IM hakchi.exe 2>nul
|
||||||
|
|
||||||
echo unpacking Hakchi2 ...
|
echo unpacking Hakchi2 ...
|
||||||
%TOOLS%\7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
|
7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
|
||||||
|
|
||||||
echo copying config ...
|
echo copying config ...
|
||||||
mkdir "%ProgramFiles(x86)%\hakchi2\config" 2>nul
|
mkdir "%ProgramFiles(x86)%\hakchi2\config" 2>nul
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set T=c:\TEMP
|
set T=c:\TEMP
|
||||||
set TOOLS=c:\tools
|
|
||||||
set ZIP=..\software\mame64.7z
|
set ZIP=..\software\mame64.7z
|
||||||
set TARGET=c:\MAME
|
set TARGET=c:\MAME
|
||||||
set CONFIG=config\mame.ini
|
set CONFIG=config\mame.ini
|
||||||
@ -21,7 +21,7 @@ rem create directory ...
|
|||||||
mkdir %TARGET% 2>nul
|
mkdir %TARGET% 2>nul
|
||||||
|
|
||||||
echo unpacking MAME64 ...
|
echo unpacking MAME64 ...
|
||||||
%TOOLS%\7z x -y -aoa -o%T%\mame %ZIP%
|
7z x -y -aoa -o%T%\mame %ZIP%
|
||||||
|
|
||||||
echo moving files ...
|
echo moving files ...
|
||||||
move /Y %T%\mame\mame64.exe %TARGET%
|
move /Y %T%\mame\mame64.exe %TARGET%
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set TOOLS=c:\tools
|
|
||||||
set ZIP=..\software\snapcontrol.zip
|
|
||||||
set T=C:\TEMP
|
set T=C:\TEMP
|
||||||
|
set ZIP=..\software\snapcontrol.zip
|
||||||
|
|
||||||
if NOT EXIST %ZIP% (
|
if NOT EXIST %ZIP% (
|
||||||
echo ERROR: %ZIP% not found!
|
echo ERROR: %ZIP% not found!
|
||||||
@ -11,7 +11,7 @@ if NOT EXIST %ZIP% (
|
|||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
%TOOLS%\7z e -y -aoa -o%T%\snapcontrol %ZIP% 1>nul
|
7z e -y -aoa -o%T%\snapcontrol %ZIP% 1>nul
|
||||||
%T%\snapcontrol\snapcontrol.exe /I
|
%T%\snapcontrol\snapcontrol.exe /I
|
||||||
copy /Y %T%\snapcontrol\LICENSE.txt c:\snapshot
|
copy /Y %T%\snapcontrol\LICENSE.txt c:\snapshot
|
||||||
copy /Y %T%\snapcontrol\README.md c:\snapshot
|
copy /Y %T%\snapcontrol\README.md c:\snapshot
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
|
||||||
set TOOLS=c:\tools
|
|
||||||
set ZIP=..\software\winauth.zip
|
set ZIP=..\software\winauth.zip
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ echo killing WinAuth processes...
|
|||||||
taskkill /F /IM winauth.exe 2>nul
|
taskkill /F /IM winauth.exe 2>nul
|
||||||
|
|
||||||
echo unpacking WinAuth ...
|
echo unpacking WinAuth ...
|
||||||
%TOOLS%\7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
|
7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
|
||||||
|
|
||||||
echo copy startmenu link ...
|
echo copy startmenu link ...
|
||||||
copy /Y startmenu\WinAuth.lnk %STARTMENU%
|
copy /Y startmenu\WinAuth.lnk %STARTMENU%
|
||||||
|
@ -4,7 +4,7 @@ net session >nul 2>&1
|
|||||||
if NOT %ERRORLEVEL% == 0 (
|
if NOT %ERRORLEVEL% == 0 (
|
||||||
echo ERROR: User has NO ADMINISTRATOR rights!
|
echo ERROR: User has NO ADMINISTRATOR rights!
|
||||||
pause
|
pause
|
||||||
exit /b
|
exit
|
||||||
)
|
)
|
||||||
|
|
||||||
echo OK. User is an ADMINISTRATOR.
|
echo OK. User is an ADMINISTRATOR.
|
||||||
|
Loading…
Reference in New Issue
Block a user