User Tools

Site Tools


userspace:wallpaper_logon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
userspace:wallpaper_logon [2012/07/09 08:20]
bbz_edv created
userspace:wallpaper_logon [2013/12/21 10:22]
bbz_edv
Line 1: Line 1:
 ====== Anmelde und Desktophintergrund verteilen ====== ====== Anmelde und Desktophintergrund verteilen ======
 +====== .zip - Package with all needed Files ======
 +[[https://www.dropbox.com/s/i0eyyr6slpmpevs/wallpaper_logon.zip]]
 +<code>
 +├ wallpaper
 +│ └ <width>x<height>.bmp
 +├ logon
 +│ └ background<width>x<height>.jpg
 +├ setup.ins ← Made by bbz_edv
 +├ getmaxresolution.exe ← Made by bbz_edv (Written in C++)
 +└ ResSwitch.exe ← Made by Naughter Software [[http://www.naughter.com/]]
 +</code>
 +===== Informations =====
 +  - The backgroundfiles are stored in folder "wallpaper" and they have to be a .bmp-file, otherwise it will cause problems with Windows XP.
 +  - Windows XP: Logonscreen- and desktopbackground are the same and stored in folder "wallpaper"
 +  - Windows7: Logonscreenbackgroundfile is stored in folder "logon" and has the following restrictions:
 +    - backgroundDefault.jpg <- would be used by Windows in case no other backgroundfile is available.
 +    - background1024x768.jpg
 +  - Windows 7: desktopbackgroundfiles are stored (like in Windows XP) in folder "wallpaper" and have to be a ".bmp"-file, too.
 +
 ===== Informationen ===== ===== Informationen =====
   - Die Hintergrunddateien müssen im Ordner "wallpaper" abgelegt werden und müssen eine .bmp - Datei sein, weil es sonst Probleme mit Windows XP gibt   - Die Hintergrunddateien müssen im Ordner "wallpaper" abgelegt werden und müssen eine .bmp - Datei sein, weil es sonst Probleme mit Windows XP gibt
Line 7: Line 26:
     - background1024x768.jpg     - background1024x768.jpg
   - Windows 7: Desktophintergrund-Dateien liegen wie bei Windows XP im Ordner "wallpaper" und müssen ebenfalls eine .bmp - Datei sein   - Windows 7: Desktophintergrund-Dateien liegen wie bei Windows XP im Ordner "wallpaper" und müssen ebenfalls eine .bmp - Datei sein
 +
  
 ===== setup.ins ===== ===== setup.ins =====
 <code winst> <code winst>
 [Initial] [Initial]
-setLogLevel=7+SetLogLevel=7
 ;  Log Errors in Logfile but don't abort: ;  Log Errors in Logfile but don't abort:
 ExitOnError=false ExitOnError=false
Line 70: Line 90:
 Set $MSVersion$ = GetMsVersionInfo Set $MSVersion$ = GetMsVersionInfo
 ;; ;;
 +;;Check maximum Screen Resolution
 +DefVar $max_screen_resolution$
 +DefVar $max_screen_horizontal$
 +DefVar $max_screen_vertical$
 +;
 +DosInAnIcon_Get_Max_Resolution
 +Set $max_screen_resolution$ = Trim (takeString(0,getOutStreamFromSection ('DosInAnIcon_Get_Max_Resolution')))
 +Set $max_screen_horizontal$ = takeString(0, splitString($max_screen_resolution$, "x"))
 +Set $max_screen_vertical$ = takeString(1, splitString($max_screen_resolution$, "x"))
  
-If ( $MSVersion$ >= "6"+If ( $resolution$ = $max_screen_resolution$) 
- If FileExists($Wallpaper_Src$) + If ( $MSVersion$ >= "6"
- comment "Ihr Standard-Wallpaper wird nun aktualisiert" + If FileExists($Wallpaper_Src$) 
- Files_Wallpaper_Win7 /SysNative + comment "Ihr Standard-Wallpaper wird nun aktualisiert" 
- Registry_Wallpaper_Win7 /SysNative + Files_Wallpaper_Win7 /SysNative 
- set $ExitCode$ = "0"+ Registry_Wallpaper_Win7 /SysNative 
 + set $ExitCode$ = "0" 
 + Else 
 + comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" 
 + set $ExitCode$ = "1" 
 + EndIf
  Else  Else
- comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" + If ( $MSVersion$ = "5.1"
- set $ExitCode$ = "1"+ If FileExists($Wallpaper_Src$) 
 + comment "Ihr Standard-Wallpaper wird nun aktualisiert" 
 + Files_Wallpaper_WinXP /SysNative 
 + Registry_Wallpaper_WinXP /SysNative /AllNTUserDats 
 + set $ExitCode$ = "0" 
 + Else 
 + comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" 
 + set $ExitCode$ = "1" 
 + EndIf 
 + Else 
 + comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" 
 + set $ExitCode$ = "1"  
 + EndIf
  EndIf  EndIf
 Else Else
- If ( $MSVersion$ = "5.1" )+ DosInAnIcon_Set_Max_Resolution 
 + DosInAnIcon_Get_Horizontal 
 + DosInAnIcon_Get_Vertical 
 + Set $resolution$ = Trim (takeString(2,getOutStreamFromSection ('DosInAnIcon_Get_Horizontal'))) + "x" + Trim (takeString(2,getOutStreamFromSection ('DosInAnIcon_Get_Vertical'))) 
 + Set $Wallpaper_Src$ = $Wallpaper_Src_Dir$+$resolution$+".bmp" 
 + Set $Wallpaper_WinXP_Dst$ = $Wallpaper_WinXP_Dst_Dir$+$resolution$+".bmp" 
 + Set $Wallpaper_Win7_Dst$ = $Wallpaper_Win7_Dst_Dir$+$resolution$+".bmp" 
 +  
 + If ( $MSVersion$ >= "6" )
  If FileExists($Wallpaper_Src$)  If FileExists($Wallpaper_Src$)
  comment "Ihr Standard-Wallpaper wird nun aktualisiert"  comment "Ihr Standard-Wallpaper wird nun aktualisiert"
- Files_Wallpaper_WinXP /SysNative + Files_Wallpaper_Win7 /SysNative 
- Registry_Wallpaper_WinXP /SysNative /AllNTUserDats+ Registry_Wallpaper_Win7 /SysNative
  set $ExitCode$ = "0"  set $ExitCode$ = "0"
  Else  Else
Line 93: Line 147:
  EndIf  EndIf
  Else  Else
- comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" + If ( $MSVersion$ = "5.1"
- set $ExitCode$ = "1" + If FileExists($Wallpaper_Src$) 
 + comment "Ihr Standard-Wallpaper wird nun aktualisiert" 
 + Files_Wallpaper_WinXP /SysNative 
 + Registry_Wallpaper_WinXP /SysNative /AllNTUserDats 
 + set $ExitCode$ = "0" 
 + Else 
 + comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" 
 + set $ExitCode$ = "1" 
 + EndIf 
 + Else 
 + comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" 
 + set $ExitCode$ = "1"  
 + EndIf
  EndIf  EndIf
-EndIf 
-If ( $MSVersion$ >= "6" ) 
- comment "Es wird nun ihr Anmeldebildschirm modifiziert" 
- Files_Logon_Win7 /SysNative 
- Registry_Logon_Win7 /SysNative 
-Else 
- comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" 
 EndIf EndIf
 [DosInAnIcon_Get_Horizontal] [DosInAnIcon_Get_Horizontal]
Line 110: Line 169:
 @echo off @echo off
 wmic path win32_videocontroller get currentVerticalResolution wmic path win32_videocontroller get currentVerticalResolution
 +[DosInAnIcon_Get_Max_Resolution] 
 +@echo off 
 +"%scriptpath%\getmaxresolution.exe" 
 +[DosInAnIcon_Set_Max_Resolution] 
 +@echo off 
 +"%scriptpath%\ResSwitch.exe" /WIDTH:$max_screen_horizontal$ /HEIGHT:$max_screen_vertical$ /updateregistry
 [Files_Wallpaper_Win7] [Files_Wallpaper_Win7]
 delete -s -f "$Wallpaper_Win7_Dst_Dir$" delete -s -f "$Wallpaper_Win7_Dst_Dir$"
userspace/wallpaper_logon.txt · Last modified: 2024/02/19 14:31 by Thomas_H