hbojan Posted September 28, 2013 Share Posted September 28, 2013 I would ask for help, after the installation of three components need a restart, but when I restart the computer installation begin from start.....This is an attempt of batch code:@ECHO OFFREM Copy the configuration filecopy config.xml "%ProgramData%\InstallLOG.xml"REM Search for the CONFIG file, if this doesn't exit then the user doesn't have the .SEGuide fileSET FileName=%Program Files%\SASHome\SASEnterpriseGuide\5.1\SEGuide.exeIF EXIST %FileName% GOTO INSTALL_DIALERECHO.Vi trenutno nemate XXX instaliran.ECHO.Ova provera je potrebna kako bi se XXX instalirao na Vas sistem.ECHO.ECHO.XXX ce se instalirati na vas sistem.ECHO.REM Install the XXX and wait for the user to input before install the dialerPAUSEECHO Instalacija u toku... Molimo Vas sacekajte...SET FileName =Start \\XXX\setup.exe /SECHO Kada se XXX komponenta instalira. Pritisnite bilo koje dugme kako bi presli na instalaciju sledece komponente.PAUSEStart \\XXX.exe /QECHO Kada se XXX komponenta instalira. Pritisnite bilo koje dugme kako bi presli na instalaciju sledece komponente.PAUSEStart \\XXX\NET_FRAMEWORK_4_0\dotNetFx40_Full_setup.exe /passive /norestartECHO Kada se .Net Framework 4.0 komponenta instalira. Pritisnite bilo koje dugme kako bi presli na instalaciju sledece komponente.set BATDIR=%~dp0reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /f /v One_Click_Installer /t REG_SZ /d "%BATDIR%XXX.bat"shutdown -r -f -t 5 -c "XXX 5 sekundi !"PAUSEStart \\XXX\setup.exe -quiet -wait -responsefile \\XXX\templates_for_instalation\sdwresponse_EG_32.propertiesECHO XXX je instaliran na Vas sistem. Pritisnite bilo koje dugme kako bi zavrsili instalaciju.PAUSEECHO ONEXITREM .Net framework has been skipped contine to install the dialer.:INSTALL_DIALERECHO *** Postoji instalacija XXX ***ECHO Instalacija u toku... Molimo Vas sacekajte...SET FileName=Start .\setup.exeECHO ONEXITI went into a loop and can not extricate Link to comment Share on other sites More sharing options...
jaclaz Posted September 28, 2013 Share Posted September 28, 2013 Well, you can use a "flag" file.If before the reboot you create a new file and have the batch check for it's existence, that's all you need.Example....IF EXIST reboot.txt GOTO :after_reboot....::Before the rebootECHO Reboot>reboot.txt....::Imagine that here is a reboot commandGOTO :EOF::Code ONLY executed after the reboot:after_rebootDEL reboot.txt:: Insert here any code that needs to be executed after the rebootjaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now