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:
- Download the latest version from http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx
- Open Bginfo
- Customise as required and save the configuration (File -> Save As) as wstat.bgi
- 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) '========================================================================================
- Copy the installer file, wstat.bgi and install.vbs to your software package share
- 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.
If you’re looking for more instructions on how to use SCCM for deploying packages, give this a read:
[url=http://www.mockbox.net/configmgr-sccm/160-distribute-software-using-sccm.html]SCCM – How to Distribute Software Packages[/url]
how do we do it for SCCM.
Hi,
Running on Windows 7 Enterprise and SCCM 2007 R3.
I have tried the above and it works fine, however the only issue I have is that when bginfo is run, it brings up the windows security message everytime.
How do I get rid of that?
And also the task sequence waits for me to hit enter when trying to run the vbscript.
Any help appreciated.
Hi Brant – Thanks for pointing the typo. It’s now been corrected.
The bginfo.lnk was a legacy file we used to manually refresh bginfo. It pointed to [i][b]C:bginfoBginfo.exe /ic:bginfowstat.bgi /timer:0[/b][/i]
Why does this try to copy a bginfo.lnk file that you don’t specify, and also I had to correct a typo on line 25 “objFSO.FolderExist[b]s[/b]”. Lastly, the script is not creating the run entry in the registry for me (Win2k3 SP2).