|
给一个 winbuilder的关于修改桌面图标的代码参考一下
- #________/ Remove Desktop Icons \___________________________
- // "my Dokuments","Computer and Devices","System Panel"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{59031a47-3f72-44a7-89c5-5595fe6b30ee}","1"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}","1"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}","1"
- // Computer
- If,%pCheckBox8%,Equal,false,RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{20D04FE0-3AEA-1069-A2D8-08002B30309D}","1"
- If,%pCheckBox8%,Equal,true,RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{20D04FE0-3AEA-1069-A2D8-08002B30309D}","0"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{871C5380-42A0-1069-A2EA-08002B30309D}","1"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{871C5380-42A0-1069-A2EA-08002B30309D}","1"
- // disable Trash
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoRecycleFiles","1"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{645FF040-5081-101B-9F08-00AA002F954E}","1"
- RegWrite,"HKLM",0x4,"WB-default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{645FF040-5081-101B-9F08-00AA002F954E}","1"
复制代码 |
|