This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userspace:wallpaper_logon [2012/07/19 05:55] bbz_edv |
userspace:wallpaper_logon [2012/07/23 05:40] bbz_edv |
||
---|---|---|---|
Line 4: | Line 4: | ||
< | < | ||
├ wallpaper | ├ wallpaper | ||
- | │ └ <picturename>.bmp | + | │ └ <width> |
├ logon | ├ logon | ||
- | │ └ background< | + | │ └ background< |
├ setup.ins ← Made by bbz_edv | ├ setup.ins ← Made by bbz_edv | ||
├ getmaxresolution.exe ← Made by bbz_edv (Written in C++) | ├ getmaxresolution.exe ← Made by bbz_edv (Written in C++) | ||
Line 31: | Line 31: | ||
<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 90: | 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, | ||
+ | Set $max_screen_horizontal$ = takeString(0, | ||
+ | Set $max_screen_vertical$ = takeString(1, | ||
- | If ( $MSVersion$ >= " | + | If ( $resolution$ = $max_screen_resolution$) |
- | If FileExists($Wallpaper_Src$) | + | If ( $MSVersion$ >= " |
- | comment "Ihr Standard-Wallpaper wird nun aktualisiert" | + | If FileExists($Wallpaper_Src$) |
- | Files_Wallpaper_Win7 / | + | comment "Ihr Standard-Wallpaper wird nun aktualisiert" |
- | Registry_Wallpaper_Win7 / | + | Files_Wallpaper_Win7 / |
- | set $ExitCode$ = " | + | Registry_Wallpaper_Win7 / |
+ | set $ExitCode$ = " | ||
+ | Else | ||
+ | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | ||
+ | set $ExitCode$ = " | ||
+ | EndIf | ||
Else | Else | ||
- | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | + | If ( $MSVersion$ = " |
- | set $ExitCode$ = " | + | If FileExists($Wallpaper_Src$) |
+ | comment "Ihr Standard-Wallpaper wird nun aktualisiert" | ||
+ | Files_Wallpaper_WinXP / | ||
+ | Registry_Wallpaper_WinXP /SysNative / | ||
+ | set $ExitCode$ = " | ||
+ | Else | ||
+ | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | ||
+ | set $ExitCode$ = " | ||
+ | EndIf | ||
+ | Else | ||
+ | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | ||
+ | set $ExitCode$ = " | ||
+ | EndIf | ||
EndIf | EndIf | ||
Else | Else | ||
- | If ( $MSVersion$ = "5.1" ) | + | DosInAnIcon_Set_Max_Resolution |
+ | DosInAnIcon_Get_Horizontal | ||
+ | DosInAnIcon_Get_Vertical | ||
+ | Set $resolution$ = Trim (takeString(2, | ||
+ | Set $Wallpaper_Src$ = $Wallpaper_Src_Dir$+$resolution$+" | ||
+ | Set $Wallpaper_WinXP_Dst$ = $Wallpaper_WinXP_Dst_Dir$+$resolution$+" | ||
+ | Set $Wallpaper_Win7_Dst$ = $Wallpaper_Win7_Dst_Dir$+$resolution$+" | ||
+ | |||
+ | If ( $MSVersion$ | ||
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 | + | Files_Wallpaper_Win7 |
- | Registry_Wallpaper_WinXP | + | Registry_Wallpaper_Win7 |
set $ExitCode$ = " | set $ExitCode$ = " | ||
Else | Else | ||
Line 113: | Line 147: | ||
EndIf | EndIf | ||
Else | Else | ||
- | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | + | If ( $MSVersion$ = " |
- | set $ExitCode$ = " | + | If FileExists($Wallpaper_Src$) |
+ | comment "Ihr Standard-Wallpaper wird nun aktualisiert" | ||
+ | Files_Wallpaper_WinXP / | ||
+ | Registry_Wallpaper_WinXP /SysNative / | ||
+ | set $ExitCode$ = " | ||
+ | Else | ||
+ | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | ||
+ | set $ExitCode$ = " | ||
+ | EndIf | ||
+ | Else | ||
+ | comment "Ihr Betriebssystem oder ihre Auflösung wird nicht unterstützt" | ||
+ | set $ExitCode$ = " | ||
+ | EndIf | ||
EndIf | EndIf | ||
- | EndIf | ||
- | If ( $MSVersion$ >= " | ||
- | 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 130: | Line 169: | ||
@echo off | @echo off | ||
wmic path win32_videocontroller get currentVerticalResolution | wmic path win32_videocontroller get currentVerticalResolution | ||
+ | [DosInAnIcon_Get_Max_Resolution] | ||
+ | @echo off | ||
+ | " | ||
+ | [DosInAnIcon_Set_Max_Resolution] | ||
+ | @echo off | ||
+ | " | ||
[Files_Wallpaper_Win7] | [Files_Wallpaper_Win7] | ||
delete -s -f " | delete -s -f " |