home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / winbuilder.7z / Projects / VistaPE-Core / Tweaks / wallpaper.script < prev   
INI File  |  2010-02-10  |  2KB  |  56 lines

  1. [main]
  2. Title=Wallpaper
  3. Description=Change Wallaper
  4. Selected=True
  5. Level=4
  6. Version=1
  7. Mandatory=False
  8. Author=Markus Debus
  9. Credits=Max_Real Qnx
  10.  
  11. [process]
  12. Echo,Processing VPE Wallpaper...
  13. If,ExistFile,%pFileBox1%,begin
  14. FileCopy,%pFileBox1%,"%TargetDir%\Windows\system32\winpe.bmp"
  15. If,"%pScrollBox9%",Equal,"Stretch",Run,"%ScriptFile%","Stretch"
  16. If,"%pScrollBox9%",Equal,"Center",Run,"%ScriptFile%","Center"
  17. If,"%pScrollBox9%",Equal,"Tile",Run,"%ScriptFile%","Tile"
  18. end
  19.  
  20. [Stretch]
  21. Echo,"Loading registry hive: [Stretch]"
  22. Hive_Load,HKCU
  23. Echo,"Writing new values on registry hive.."
  24. reg_add,0x1,"%reg%\Control Panel\Desktop","TileWallpaper","0"
  25. reg_add,0x1,"%reg%\Control Panel\Desktop","WallpaperStyle","2"
  26. reg_add,0x1,"%reg%\Software\Microsoft\Internet Explorer\Desktop\General","TileWallpaper","0"
  27. reg_add,0x1,"%reg%\Software\Microsoft\Internet Explorer\Desktop\General","WallpaperStyle","2"
  28. Hive_Unload,HKCU
  29.  
  30. [Center]
  31. Echo,"Loading registry hive: [Center]"
  32. Hive_Load,HKCU
  33. Echo,"Writing new values on registry hive.."
  34. reg_add,0x1,"%reg%\Control Panel\Desktop","TileWallpaper","0"
  35. reg_add,0x1,"%reg%\Control Panel\Desktop","WallpaperStyle","0"
  36. reg_add,0x1,"%reg%\Software\Microsoft\Internet Explorer\Desktop\General","TileWallpaper","0"
  37. reg_add,0x1,"%reg%\Software\Microsoft\Internet Explorer\Desktop\General","WallpaperStyle","0"
  38. Hive_Unload,HKCU
  39.  
  40. [Tile]
  41. Echo,"Loading registry hive: [Tile]"
  42. Hive_Load,HKCU
  43. Echo,"Writing new values on registry hive.."
  44. reg_add,0x1,"%reg%\Control Panel\Desktop","TileWallpaper","1"
  45. reg_add,0x1,"%reg%\Control Panel\Desktop","WallpaperStyle","0"
  46. reg_add,0x1,"%reg%\Software\Microsoft\Internet Explorer\Desktop\General","TileWallpaper","1"
  47. reg_add,0x1,"%reg%\Software\Microsoft\Internet Explorer\Desktop\General","WallpaperStyle","0"
  48. Hive_Unload,HKCU
  49.  
  50. [Interface]
  51. pFileBox1=%basedir%\Wallpaper\Default.jpg,1,13,8,33,207,28,file
  52. pTextLabel1="Choose Wallpaper",1,1,11,9,120,18,8,Normal
  53. pScrollBox9=Center,1,4,10,92,150,21,Stretch,Center,Tile
  54. pTextLabel2=Orientation,1,1,8,69,62,18,8,Normal
  55.  
  56.