alex_diablo
Постоянный участник
- Сообщения
- 144
- Реакции
- 9
а возможно сделать так, чтобы при нажатии на кнопу НЕТ после 5 раз, скрипт закрывался и диалог больше не появлялся?
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
К сожалению, не экстрасенс, не понимаю, что означает криво запускается.что-то как то криво запускается...
К сожалению, не экстрасенс, не понимаю, что означает криво запускается.
Можно посмотреть скришнот?появилось окошко диалога, но без кнопок. и все повисло.
%psexec% -s -h -d @%hostfile% -c -f \\fsmsk1\Soft\scripts\1\1.vbx
cls
%psexec% -i -s -h -d @%hostfile% -c -f \\fsmsk1\Soft\scripts\1\1.bat
cls
%psexec% -s -h -d @%hostfile% -c -f %installer%
@echo off
ren c:\windows\system32\1.vbx 1.vbs
start c:\windows\system32\1.vbs
exit
@ECHO OFF
set per=1
:begin1
TIMEOUT /T 10 /NOBREAK
set /a per=%per%+1
if %per% == 40 goto 05
if exist "c:\windows\temp\file1.txt" goto 00
if exist "c:\windows\temp\file2.txt" goto 05
goto begin1
:00
if exist "%PROGRAMFILES%\Unity_5.3.5p5\Editor\Unity.exe" goto 04
msg * /server:localhost /time:300 "Attention. After a while, on your computer will be installed Unity version 5.3.5p5. Please save all your projects and close Unity application. Unity 5.3.5p5 installer will be start automaically after 5 minutes in silent mode."
ping localhost -n 300
taskkill /f /im unity.exe /t
ping localhost -n 30
cd /d "C:\ProgramData\Microsoft\Windows\Start Menu\Programs"
if exist "Unity\" ren Unity Unity_tmp
:01
\\fsmsk1\Soft\Developers_Tools\Unity\5.3.5p5\UnitySetup64-5.3.5p5.exe /S /D=%PROGRAMFILES%\Unity_5.3.5p5
\\fsmsk1\Soft\Developers_Tools\Unity\5.3.5p5\UnitySetup-Android-Support-for-Editor-5.3.5p5.exe /S /D=%PROGRAMFILES%\Unity_5.3.5p5
\\fsmsk1\Soft\Developers_Tools\Unity\5.3.5p5\UnitySetup-iOS-Support-for-Editor-5.3.5p5.exe /S /D=%PROGRAMFILES%\Unity_5.3.5p5
\\fsmsk1\Soft\Developers_Tools\Unity\5.3.5p5\UnitySetup-Windows-Support-for-Editor-5.3.5p5.exe /S /D=%PROGRAMFILES%\Unity_5.3.5p5
if exist "Unity\" ren Unity Unity_5.3.5p5
:02
if exist "Unity_tmp\" ren Unity_tmp Unity
:03
msg * /server:localhost /time:300 "Unity 5.3.5p5 was installed. You can find shortcuts of Unity in START menu. If you have a problems with new version of Unity or with license, please contact with helpdesk for check problems and fix it."
goto 05
:04
msg * /server:localhost /time:300 "Unity 5.3.5p5 already exist. Installation aborted."
:05
taskkill /f /im wscript.exe
del /f /a "%systemroot%\temp\file1.txt"
del /f /a "%systemroot%\temp\file2.txt"
del /f /a "%systemroot%\system32\1.vbs"
del /f /a "%systemroot%\system32\installer.bat"
psexec -i -h -s -d \\domain-pc cscript.exe /nologo 1.vbs