Add new wallpaper image (Wallpaper.png) to the project
This commit is contained in:
@@ -133,6 +133,24 @@ foreach ($entry in $entries) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Wallpaper and Lock Screen
|
||||||
|
Write-Host "Setting desktop wallpaper and lock screen..."
|
||||||
|
|
||||||
|
$wallpaperDest = "C:\Windows\Web\Wallpaper\Custom"
|
||||||
|
New-Item -Path $wallpaperDest -ItemType Directory -Force | Out-Null
|
||||||
|
Copy-Item -Path "$scriptDir\wallpaper\Wallpaper.png" -Destination "$wallpaperDest\Wallpaper.png" -Force
|
||||||
|
Copy-Item -Path "$scriptDir\wallpaper\Lockscreen.png" -Destination "$wallpaperDest\Lockscreen.png" -Force
|
||||||
|
|
||||||
|
Add-Type -TypeDefinition @"
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
public class Wallpaper {
|
||||||
|
[DllImport("user32.dll", CharSet = CharSet.Auto)]
|
||||||
|
public static extern int SystemParametersInfo(int uAction, int uParam, string lpvParam, int fuWinIni);
|
||||||
|
}
|
||||||
|
"@
|
||||||
|
[Wallpaper]::SystemParametersInfo(0x0014, 0, "$wallpaperDest\Wallpaper.png", 3) | Out-Null
|
||||||
|
Write-Host "Desktop wallpaper and lock screen configured."
|
||||||
|
|
||||||
# ShareX - Remove "Capture Entire Screen" shortcut
|
# ShareX - Remove "Capture Entire Screen" shortcut
|
||||||
Write-Host "Configuring ShareX shortcuts..."
|
Write-Host "Configuring ShareX shortcuts..."
|
||||||
|
|
||||||
|
|||||||
@@ -110,4 +110,8 @@ registryPath,propertyName,propertyType,propertyValue
|
|||||||
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged",Value,String,"Deny"
|
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged",Value,String,"Deny"
|
||||||
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.WindowsCamera_8wekyb3d8bbwe",Value,String,"Deny"
|
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.WindowsCamera_8wekyb3d8bbwe",Value,String,"Deny"
|
||||||
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CPSS\Store\UserLocationOverridePrivacySetting",Value,DWord,0
|
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CPSS\Store\UserLocationOverridePrivacySetting",Value,DWord,0
|
||||||
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.BingWeather_8wekyb3d8bbwe",Value,String,"Deny"
|
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\Microsoft.BingWeather_8wekyb3d8bbwe",Value,String,"Deny"
|
||||||
|
"HKCU:\Control Panel\Desktop",WallpaperStyle,String,10
|
||||||
|
"HKCU:\Control Panel\Desktop",TileWallpaper,String,0
|
||||||
|
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP",LockScreenImagePath,String,C:\Windows\Web\Wallpaper\Custom\Lockscreen.png
|
||||||
|
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP",LockScreenImageStatus,DWord,1
|
||||||
|
BIN
wallpaper/Lockscreen.png
Normal file
BIN
wallpaper/Lockscreen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 618 KiB |
BIN
wallpaper/Wallpaper.png
Normal file
BIN
wallpaper/Wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user