Sign in to follow this  
Followers 0
hbojan

how to continue instalation after reboot

2 posts in this topic

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 OFF
REM Copy the configuration file
copy config.xml "%ProgramData%\InstallLOG.xml"

REM Search for the CONFIG file, if this doesn't exit then the user doesn't have the .SEGuide file
SET FileName=%Program Files%\SASHome\SASEnterpriseGuide\5.1\SEGuide.exe
IF EXIST %FileName% GOTO INSTALL_DIALER

ECHO.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 dialer
PAUSE
ECHO Instalacija u toku... Molimo Vas sacekajte...

SET FileName =
Start \\XXX\setup.exe /S

ECHO Kada se XXX komponenta instalira. Pritisnite bilo koje dugme kako bi presli na instalaciju sledece komponente.
PAUSE
Start \\XXX.exe /Q

ECHO Kada se XXX komponenta instalira. Pritisnite bilo koje dugme kako bi presli na instalaciju sledece komponente.
PAUSE
Start \\XXX\NET_FRAMEWORK_4_0\dotNetFx40_Full_setup.exe /passive /norestart
ECHO Kada se .Net Framework 4.0 komponenta instalira. Pritisnite bilo koje dugme kako bi presli na instalaciju sledece komponente.

set BATDIR=%~dp0
reg 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 !"


PAUSE
Start \\XXX\setup.exe -quiet -wait -responsefile \\XXX\templates_for_instalation\sdwresponse_EG_32.properties

ECHO XXX je instaliran na Vas sistem. Pritisnite bilo koje dugme kako bi zavrsili instalaciju.
PAUSE
ECHO ON
EXIT

REM .Net framework has been skipped contine to install the dialer.
:INSTALL_DIALER
ECHO *** Postoji instalacija XXX ***
ECHO Instalacija u toku... Molimo Vas sacekajte...
SET FileName=
Start .\setup.exe
ECHO ON
EXIT

I went into a loop and can not extricate

0

Share this post


Link to post
Share on other sites

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 reboot

jaclaz

0

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.