How to install BGInfo Silently using SCCM

The following process details how to create a silent install package for BGInfo.

It can be used as a silent installation deployment or included into your Windows 7 deployment method.

It has been tested and confirmed as working with BGInfo 4.16 and SCCM R2 (OS Deployment)

 

It does the following tasks:

  • Creates a folder for BGInfo – C:\bginfo
  • Copies bginfo.exe to the folder
  • Copies configuration file (wstat.bgi) to the folder
  • Creates a registry entry to enable BGInfo to run automatically when a user logs on

Full Download: http://www.itsupportguides.com/downloads/Bginfo.zip 

Please Note:

BGInfo does not support the Windows 7 feature of rotating desktop pictures (multiple pictures that change every few minutes). This is because each time you log on BGInfo makes a copy of your current theme (background, colours, font sizes etc.) and applies the customisations in the BGInfo configuration.

If you open the ‘Personalize’ window you will see an ‘Unsaved theme’ with the set background picture.

How to customise and deploy (silent install) BGInfo:

    1. Download the latest version from http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx
    2. Open Bginfo
    3. Customise as required and save the configuration (File -> Save As) as wstat.bgi
    4. Create a vbs file called install.vbs and copy in the following information
'========================================================================================
' BGinfo Installation Script
'========================================================================================
'
' Script Details:
' --------------
' This script copies the BGinfo files to the C:\bginfo folder and sets the run registry key
'========================================================================================
Option Explicit

'Declare Variables and constants
Dim objShell, objFSO, intErrorCode

'Create objects
Set objShell = CreateObject("WScript.Shell")
Set objFSO = createobject("scripting.filesystemobject")

'========================================================================================
'Main body
'========================================================================================
On Error Resume Next



'Create the c:\bginfo folder
If not objFSO.FolderExists("C:\bginfo") Then
 objFSO.CreateFolder("C:\bginfo")
End If



'Copy the bginfo files
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory & "\Bginfo.exe", "C:\bginfo\")
intErrorCode = intErrorCode + objFSO.CopyFile(objShell.CurrentDirectory & "\wstat.bgi", "C:\bginfo\")

'Add the bginfo shortcut to the run registry key
intErrorCode = intErrorCode + objshell.RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\bginfo", "C:\bginfo\Bginfo.exe /accepteula /ic:\bginfo\wstat.bgi /timer:0", "REG_SZ")

objShell.Run "C:\bginfo\Bginfo.exe /accepteula /ic:\bginfo\wstat.bgi /timer:0"
 
'Cleanup
Set objShell = Nothing
Set objFSO = Nothing

'return errorcode for install to SCCM
WScript.Quit(intErrorCode)
'========================================================================================
  1. Copy the installer file, wstat.bgi and install.vbs to your software package share
  2. You can now create your SCCM package or deploy the software by using install.vbs

For more information on creating SCCM packages see distribute software using SCCM.