Results 1 to 5 of 5

Thread: Batch File for doing the Silent Installation.

  1. #1
    Join Date
    Aug 2006
    Posts
    332

    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.

  2. #2
    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

  3. #3
    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.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    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

Similar Threads

  1. Need a batch file checking for installation of software
    By zidane in forum Software Development
    Replies: 3
    Last Post: 19-07-2012, 02:12 PM
  2. automating installation using batch file
    By tush9876 in forum Software Development
    Replies: 1
    Last Post: 01-05-2012, 01:28 AM
  3. JRE Silent Installation
    By Messenger in forum Windows Software
    Replies: 3
    Last Post: 26-07-2010, 12:41 PM
  4. Want a full silent Installation of VLC
    By UseME in forum Windows Software
    Replies: 4
    Last Post: 23-03-2010, 07:55 PM
  5. Silent certificate installation
    By Leo Pold in forum Windows Security
    Replies: 1
    Last Post: 22-02-2007, 04:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,255,625.31365 seconds with 17 queries