Changing Windows 7 Logon Screen Background – With an Innosetup Installer

If you want to replace the Windows 7 logon screen for a few (or even many) computers it is a good idea to create an installer program and then run the installer on all machines.

Here is my solution which works in 32 bit and 64bit versions of Windows 7.

  1. You need the Innosetup setup compiler (Open Source). Download and install.
  2. Then create a file “mylogonscreeninstaller.iss”, open it in a text editor and paste the code below.
  3. Create a file “backgroundDefault.jpg” with your logon screen (must smaller than 250 kb!) and place it into the same folder. If you want you can also create images for the other screen sizes, too (otherwise Windows will scale the image as needed).
  4. Right click the mylogonscreeninstaller.iss file and choose “compile” (or start Innosetup from the start menu, open the .iss file and click compile).
  5. Run the installer on all stations.

Here is some Background Information about replacing the logon screen for Windows 7.

[Setup]
AppName=Startscreen for Windows 7
AppVerName=Startscreen for Windows 7 (V1.0)
CreateAppDir=false
OutputBaseFilename=Startscreen for Windows 7 - Setup
Compression=lzma
SolidCompression=true
OutputDir=.
DisableFinishedPage=true
AlwaysShowComponentsList=false
ShowComponentSizes=false
FlatComponentsList=false
DisableReadyPage=true
AppID={{your-unique-code-here}
[Registry]
Root: HKLM; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background; ValueType: dword; ValueName: OEMBackground; ValueData: 1
Root: HKLM64; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background; ValueType: dword; ValueName: OEMBackground; ValueData: 1;Check: IsWin64
[Dirs]
Name: {win}\System32\oobe\info\backgrounds\
[Files]
; FILES MUST BE SMALLER THAN 250 KB!
; First: The standard image (will be resized)
Source: backgroundDefault.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; for 64bit system we must do this twice
Source: backgroundDefault.jpg; DestDir: {win}\System32\oobe\info\backgrounds\; Flags: 64bit;Check: IsWin64
; You can also provide an image for each of the following screen sizes using the following filenames
; uncomment the command below as desired
; source: background768x1280.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background900x1440.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background960x1280.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1024x1280.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1280x1024.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1024x768.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1280x960.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1600x1200.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1440x900.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1920x1200.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1280x768.jpg; DestDir: {win}\System32\oobe\info\backgrounds\
; Source: background1360x768.jpg; DestDir: {win}\System32\oobe\info\backgrounds\

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: