Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Batch File for doing the Silent Installation.

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-01-2010
hatred's Avatar
Member
 
Join Date: Aug 2006
Posts: 251
Batch File for doing the Silent Installation.

Can I create a batch file or .cmd file which can enter into a registry file without being asked if it's okay/continue, etc.? I want to create a Batch File for doing the Silent Installation. Is it possible..?? I think that you all have understood my point.! Also is there any way to create and use a batch file to silently install multiple GDI+ security updates..?? Please help me by providing the useful instructions.
__________________
Do not email me asking for tech support. Any private support is billable at $50 an hour.
Reply With Quote
  #2  
Old 27-01-2010
Allan.d's Avatar
Member
 
Join Date: Mar 2008
Posts: 672
Re: Batch File for doing the Silent Installation.

You can use the REG ADD for adding anything in the registry. Further you have said that you want to do it silently without any prompts. For that you can use the key name /f, which is used to do the force overwriting the existing registry entry without prompt. So you can use the following command for adding the registries without any prompts :
Code:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Test /v silent /f
Reply With Quote
  #3  
Old 27-01-2010
Warner's Avatar
Member
 
Join Date: Mar 2008
Posts: 349
Re: Batch File for doing the Silent Installation.

You will have to use different approach, if you are looking to import a file with a ".reg" extension. You can use the following code for that purpose :
Code:
regedit.exe /s "C:\Test\File.reg"
But you will have to merge to the registry, this reg file located in "C:\Test\File.reg". Hope that this will help you.
Reply With Quote
  #4  
Old 27-01-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Re: How to create and use a batch file to silently install multiple GDI+ security updates?

You can create and use a batch file to silently install multiple GDI+ security updates by following the steps mentioned below :
You will have to create the batch file for that, which can be created as follows :
  1. You will have to download the updates that you require for the Microsoft products that are installed on your computer.
  2. Then extract the update .msp files for each update that uses the OHotfix bootstrap utility.
  3. In the C:\ partition, create a new folder named GDIPlus.
  4. In this folder you will have to copy all the required files, including the multiple .msp update files.
You will have to create two batch files for silently install multiple GDI+ security updates.
Reply With Quote
  #5  
Old 27-01-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Batch File for doing the Silent Installation.

The following text should be entered into the Batch 1 file which is the GDIPlusWin2k.bat file. The script should be :
Code:
Start /wait c:\GDIPlus\IE6.0sp1-KB833989-x86-ENU.exe /q:a /r:n
Start /wait c:\GDIPlus\OHotfix.exe 
Exit


REM /q:a (quiet administrator mode so NO progress bar and NO dialogs presented)
REM /r:n (never restart the local computer)
REM See 833989 for a complete listing of available switches
REM The comments below are provided for information only. The OHotfix.ini file requires manual editing.
REM This batch file is for systems running Windows 2000 SP2, SP3 or SP4 with Internet Explorer 6.0 SP1.
REM See KB article 833989 for more information about this security update.

REM Multiple Installer update files (.msp) will run in alphabetical order using OHotfix.exe.  

REM Manually change the OHotfix.ini settings listed below for silent update install with full verbose logging.
REM Log files are always created to record the progress of ohotfix.exe and
; the Windows Installer.

REM OHotfix.ini settings for quiet install
; A final dialog can be displayed to indicate that the update was applied
; successfully.  This dialog will only be displayed if ShowSuccessDialog is
; set to 1 and OHotfixUILevel is set to n.
; 1 = Display the success dialog box.
; 0 = Do not display the success dialog box.
;
Rem ShowSuccessDialog=0

; v = Log all ohotfix.exe actions/messages.
; n = Log only typical ohotfix.exe actions/messages.
;
REM OHotfixLogLevel=v

; v = Log all Windows Installer information, including the verbose information (/L*v+).
; n = Log Windows terminal properties and Windows Installer status messages,
;     nonfatal warnings, startup of actions, and error messages (/Lpiwae+).
;
REM MsiLogLevel=v

; The user interface level can be set for both ohotfix.exe and the Windows
; Installer service.
; n = Display ohotfix.exe messages.
; q = Do not display ohotfix.exe messages.
;
REM OHotfixUILevel=q

; n = Display the basic Windows Installer user interface.
; q = Do not display any Windows Installer user interface.
;
REM MsiUILevel=q
Then you should include the following text for Batch file 2, which should be
the GDIPlusWinXP.bat file.
Code:
Start /wait c:\GDIPlus\WindowXP-KB833987-x86-ENU.exe /quiet /norestart
Start /wait c:\GDIPlus\OHotfix.exe 
Exit

REM The comments below are provided for general information only. 
REM This batch file is for systems running Windows XP & SP1  
REM See KB article 833987 for more information about this security update for Windows XP systems.

REM Multiple Installer update files (.msp) will run in alphabetical order using OHotfix.exe.  

REM OHotfix.ini settings for quiet install
; A final dialog can be displayed to indicate that the update was applied
; successfully.  This dialog will only be displayed if ShowSuccessDialog is
; set to 1 and OHotfixUILevel is set to n.
; 1 = Display the success dialog box.
; 0 = Do not display the success dialog box.
;
REM ShowSuccessDialog=0

REM OHotfix.ini is configured for silent update install with full verbose logging.
REM Log files are always created to record the progress of ohotfix.exe and
; the Windows Installer.
; v = Log all ohotfix.exe actions/messages.
; n = Log only typical ohotfix.exe actions/messages.
;
REM OHotfixLogLevel=v

; v = Log all Windows Installer information, including the verbose information (/L*v+).
; n = Log Windows terminal properties and Windows Installer status messages,
;     nonfatal warnings, startup of actions, and error messages (/Lpiwae+).
;
REM MsiLogLevel=v

; The user interface level can be set for both ohotfix.exe and the Windows
; Installer service.
; n = Display ohotfix.exe messages.
; q = Do not display ohotfix.exe messages.
;
REM OHotfixUILevel=q

; n = Display the basic Windows Installer user interface.
; q = Do not display any Windows Installer user interface.
;
REM MsiUILevel=q
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Batch File for doing the Silent Installation."
Thread Thread Starter Forum Replies Last Post
JRE Silent Installation Messenger Windows Software 3 26-07-2010 01:41 PM
Want a full silent Installation of VLC UseME Windows Software 4 23-03-2010 08:55 PM
Silent installation of text only printer fails (driver signing) Roger Windows XP Support 6 12-10-2008 03:26 AM
Silent certificate installation Nelson Guerrero Windows Security 1 22-02-2007 04:19 AM
Issue with silent installation for Office 2007 Suite JosefWB Office Setup 2 04-01-2007 10:10 AM


All times are GMT +5.5. The time now is 03:53 AM.