Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

how to continue instalation after reboot

- - - - -

  • Please log in to reply
1 reply to this topic

#1
hbojan

hbojan
  • Member
  • 1 posts
  • OS:Windows 7 x86
  • Country: Country Flag

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




How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,256 posts
  • OS:none specified
  • Country: Country Flag

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 reboot
ECHO Reboot>reboot.txt
....
::Imagine that here is a reboot command

GOTO :EOF

::Code ONLY executed after the reboot
:after_reboot
DEL reboot.txt
:: Insert here any code that needs to be executed after the reboot

jaclaz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN