batch file to wait for a installation to complete before moving to the next line -


I have a batch file that will show that the user has access to the Directory and NetBank has been detected whether CONFIG The directory exists.

If the directory is not present, then the user does not have the Net Framework installed. The batch file then continues to install the Net Workwork. However, setting up my dialer requires installing the .NET Framework before running setup. So I have kept a PAUSE statement so that the user can press any button to continue after the installation of the framework.

However, our customer does not like it because some of their customers are unrecognizable and those frameworks press a key before the installation completes. After this the setup causes failure because the framework is not already installed.

I am using the user input that will wait. However, is there no way that the batch will wait until the framework is automatically exited instead of using the PAUSE command?

Many thanks for any suggestions,

  @ECHO OFF REM configuration file copy config.xml "% AppData% DataLinks.xml" searched for REM CONFIG file Copy if it does not exit, then the user has Net Framework 2.0 SET FileName =% windir% \ microsoft. Net Framework \ v2.0.50727 \ CONFIG if% filename% GOTO INSTALL_DIALER ECHO You currently do not have Microsoft (c) .NET Framework 2.0 installed. ECHO.This is required by the Setup program for MyApplication. ECHO ECHO.The Microsoft (C) .NET Framework 2.0 will now be installed on the system. ECHO.After complete setup will continue to install MyApplication on your system. ECHO Install the REM .Net framework and wait for the user to input before installing the dialer. Installing PAUSE ECHO ... Please wait ... SET FileName = Start After completing NetFx20SP2_x86.exe ECHO.Net Framework. Press any key to continue to install the dialer Start Stop. Exit \ Setup.exe Exchange RIM. Net Framework has been left to install the directory. : INSTALL_DIALER ECHO *** DoneNet Framework 2.0.50727 Skipped *** Echo installation ... Please wait ... SET filename = Start. \ Setup.exe Remove on Exchange  

You can use

< Pre> START / WAIT NetFx20SP2_x86

Also. Remember

  REIM comment  

is equivalent

  :: comment  
< P> And by using it. \ Unnecessary, and file extensions, as long as there is no conflicting name / file named. You do not need to clean the "filename" variable twice ("=" do not indicate anything again) and

  ECHO Some  

is equal to

ECHO some

except for blank lines


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -