This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:wallpaper_logon [2012/07/18 09:43] bbz_edv |
userspace:wallpaper_logon [2024/02/19 14:31] (current) Thomas_H Link zur Zip-Datei entfernt, da er ungültig war. |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Anmelde und Desktophintergrund verteilen ====== | ====== Anmelde und Desktophintergrund verteilen ====== | ||
+ | ====== .zip - Package with all needed Files ====== | ||
+ | [Link zur Zip-Datei entfernt, da er ungültig war. /th] | ||
+ | < | ||
+ | ├ wallpaper | ||
+ | │ └ < | ||
+ | ├ logon | ||
+ | │ └ background< | ||
+ | ├ setup.ins ← Made by bbz_edv | ||
+ | ├ getmaxresolution.exe ← Made by bbz_edv (Written in C++) | ||
+ | └ ResSwitch.exe ← Made by Naughter Software [[http:// | ||
+ | </ | ||
===== Informations ===== | ===== Informations ===== | ||
- The backgroundfiles are stored in folder " | - The backgroundfiles are stored in folder " | ||
Line 16: | Line 27: | ||
- Windows 7: Desktophintergrund-Dateien liegen wie bei Windows XP im Ordner " | - Windows 7: Desktophintergrund-Dateien liegen wie bei Windows XP im Ordner " | ||
- | Tree: | ||
- | < | ||
- | ├ wallpaper | ||
- | │ └ < | ||
- | ├ logon | ||
- | │ └ background< | ||
- | └ setup.ins | ||
- | </ | ||
===== 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 87: | 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 110: | 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 127: | 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 " |