Hello everyone, can you please help me package bginfo?
my requirement ist tomake sure that it is in start-up so that every time user logs in BGinfo should be populated on the deskto. And it refresh everytime user login. I am using adminstudio but now luck with completing the task.
I guess, I have to edit some registry settings but not sure what to do.
thanks for your help.
tosh
Answers (5)
Here are the important bits for how I built our BGInfo package.
Copied the bginfo.exe and bginfo.bgi file to C:\Program Files\BGInfo
Registry: HKLM\Software\Microsoft\Windows\CurrentVersion\Run with the following -
C:\Progra~1\BGInfo\BGInfo.exe C:\Progra~1\BGInfo\BGInfo.bgi /timer:0 /NOLICPROMPT /SILENT
Back when I built it I'd had some issues with the path statement, hence the use of short file names.
For the x64 machines I have an .MST that just changes the run path to ~2 (as it installs in the Prorgram Files(x86) folder.
Batch file:
if exist C:\software\bginfo (del /q c:\software\bginfo\*.*)
if not exist c:\software\bginfo (md c:\software\bginfo)
copy /Y "BGinfo\*.*" c:\software\bginfo
C:\Software\BGinfo\bginfo.exe /i:"C:\Software\BGinfo\config.bgi" /timer:0 /silent /NoLicPrompt
regedit.exe /S "bginfo.reg"
I'm curious as to why this needs to be packaged? On our k-images we have our custom bginfo config in the Windows folder, the actual program in System32, and the batch file to run it in the all users startup. It works great and have yet to discover any issues.
Ah wait. Are you using static images or scripted installs?
XXMKLINK is a free command line tool that will let you create shortcuts with specified parameters. Download it here: http://www.xxcopy.com/download/xxmklink.zip
Next you will want a batch file to copy your BGinfo and XXMKLINK files to the local machine. If you are using a K1000/K2000 this can be done via scripting or post-install tasks. If you are just using Windows you can use a RunOnce registry entry targeted at the batch file. We'll also run XXMKLINK to create a shortcut that calls bginfo using the config file every time a user logs on.
copy "\\server\share\Background Info.exe" "c:\BGinfo\Background Info.exe" /Y copy "\\server\share\Background.bgi" "c:\BGinfo\Background.bgi" /Y
copy "\\server\share\XXMKLINK.exe" "c:\XXMKLINK.exe" /Y
C:\XXMKLINK.exe "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\Background Info.lnk" "C:\BGinfo\Background Info.exe" "/ic:\BGinfo\background.bgi /timer:0" /q
Done!