Integrate NTLite Setup. #73
This commit is contained in:
parent
b7d05161ad
commit
dd9cf301cd
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,6 +9,6 @@ Packages.txt
|
||||
distribution
|
||||
SOFTWAREBKP
|
||||
tmp/
|
||||
personal/
|
||||
temp/
|
||||
company/
|
||||
|
||||
|
6
optional/config/install-ntlite.txt
Normal file
6
optional/config/install-ntlite.txt
Normal file
@ -0,0 +1,6 @@
|
||||
[Setup]
|
||||
Lang=English
|
||||
Dir=C:\Program Files\NTLite
|
||||
Group=NTLite
|
||||
NoIcons=0
|
||||
Tasks=
|
@ -21,7 +21,7 @@ echo removing Desktop icon ...
|
||||
del /F "%USERPROFILE%\Desktop\Rescue and Smart Assistant.lnk" 2>nul
|
||||
|
||||
echo moving Smart Assistant startmenu shortcut ...
|
||||
move /Y %STARTMENU_USER%\"Lenovo\Rescue and Smart Assistant.lnk" %STARTMENU%\"Lenovo Smart Assistant.lnk"
|
||||
move /Y %STARTMENU_USER%\"Lenovo\Rescue and Smart Assistant.lnk" %STARTMENU%\"Lenovo Smart Assistant.lnk" 2>nul
|
||||
|
||||
echo removing Smart Assistant startmenu folder ...
|
||||
rd /S /Q %STARTMENU_USER%\"Lenovo" 2>nul
|
||||
|
43
optional/install-ntlite.cmd
Normal file
43
optional/install-ntlite.cmd
Normal file
@ -0,0 +1,43 @@
|
||||
@echo off
|
||||
call check-for-admin
|
||||
if %ERRORLEVEL% neq 0 exit /b
|
||||
|
||||
set CONFIG=config\install-ntlite.txt
|
||||
set EXE=..\software\ntlite-setup.exe
|
||||
set SETTINGS=..\company\ntlite-settings.xml
|
||||
set LICENSE=..\company\ntlite-license.dat
|
||||
set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||
set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||
|
||||
if NOT EXIST %EXE% (
|
||||
echo ERROR: %EXE% not found!
|
||||
exit /b
|
||||
)
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
echo installing NTLite ...
|
||||
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
||||
|
||||
echo moving NTLite startmenu shortcut ...
|
||||
move /Y %STARTMENU%\"NTLite\NTLite.lnk" %STARTMENU% 2>nul
|
||||
|
||||
echo cleanup ...
|
||||
rd /S /Q %STARTMENU%\"NTLite" 2>nul
|
||||
|
||||
if EXIST %LICENSE% (
|
||||
echo installing license ...
|
||||
copy /Y %LICENSE% "%PROGRAMFILES%\NTLite\license.dat"
|
||||
)
|
||||
|
||||
if EXIST %SETTINGS% (
|
||||
echo copying settings ...
|
||||
copy /Y %SETTINGS% "%PROGRAMFILES%\NTLite\settings.xml"
|
||||
)
|
||||
|
||||
rem refresh desktop (W10 style)
|
||||
ie4uinit.exe -show
|
||||
|
||||
echo ####### %0 #######
|
||||
pause
|
||||
|
Loading…
Reference in New Issue
Block a user