Update
fixed folder names since changing to downloading zip and extracting.
This commit is contained in:
20
start.ps1
20
start.ps1
@@ -24,7 +24,7 @@ Function Download-Wallpapers {
|
||||
$download = "https://git.tcmeta.net/kurtis/chicago95-wallpapers/archive/main.zip"
|
||||
Invoke-WebRequest $download -Out $tempPath
|
||||
Write-Host "Unzipping"
|
||||
Expand-Archive $tempPath -DestinationPath "$folderPath\Wallpapers" -Force
|
||||
Expand-Archive $tempPath -DestinationPath "$folderPath" -Force
|
||||
Write-Host "Removing Temp"
|
||||
Remove-Item $tempPath -Force
|
||||
}
|
||||
@@ -35,7 +35,7 @@ Function Download-Icons {
|
||||
$download = "https://git.tcmeta.net/kurtis/win95-icons/archive/main.zip"
|
||||
Invoke-WebRequest $download -Out $tempPath
|
||||
Write-Host "Unzipping"
|
||||
Expand-Archive $tempPath -DestinationPath "$folderPath\Icons" -Force
|
||||
Expand-Archive $tempPath -DestinationPath "$folderPath" -Force
|
||||
Write-Host "Removing Temp"
|
||||
Remove-Item $tempPath -Force
|
||||
}
|
||||
@@ -46,7 +46,7 @@ Function Download-Sounds {
|
||||
$download = "https://git.tcmeta.net/kurtis/win95-sounds/archive/main.zip"
|
||||
Invoke-WebRequest $download -Out $tempPath
|
||||
Write-Host "Unzipping"
|
||||
Expand-Archive $tempPath -DestinationPath "$folderPath\Sounds" -Force
|
||||
Expand-Archive $tempPath -DestinationPath "$folderPath" -Force
|
||||
Write-Host "Removing Temp"
|
||||
Remove-Item $tempPath -Force
|
||||
}
|
||||
@@ -103,7 +103,7 @@ public class Params
|
||||
Function Update-Wallpaper {
|
||||
Write-Host "Updating Wallpaper"
|
||||
Download-Wallpapers
|
||||
Set-WallPaper("$folderPath\Wallpapers\default.png")
|
||||
Set-WallPaper("$folderPath\chicago95-wallpapers\default.png")
|
||||
}
|
||||
|
||||
Function Install-HackGRBT {
|
||||
@@ -166,10 +166,10 @@ Function Install-Clippy {
|
||||
|
||||
Function Update-Sounds {
|
||||
Download-Sounds
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\WindowsLogon\.Current\" -Name "(default)" -Value "$folderPath\The-Microsoft-Sound.wav"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current\" -Name "(default)" -Value "$folderPath\CHORD.WAV"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemExclamation\.Current\" -Name "(default)" -Value "$folderPath\CHORD.WAV"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemQuestion\.Current\" -Name "(default)" -Value "$folderPath\CHORD.WAV"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\WindowsLogon\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\The-Microsoft-Sound.wav"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemAsterisk\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemExclamation\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV"
|
||||
Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\SystemQuestion\.Current\" -Name "(default)" -Value "$folderPath\win95-sounds\CHORD.WAV"
|
||||
}
|
||||
|
||||
Function Update-Icons {
|
||||
@@ -178,9 +178,9 @@ Function Update-Icons {
|
||||
|
||||
$iconsArray = @(
|
||||
@("$ENV:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\File Explorer.lnk",
|
||||
"$folderPathicons\Icons\Folder.ico"),
|
||||
"$folderPathicons\win95-icons\Folder.ico"),
|
||||
@("$ENV:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Thunderbird.lnk",
|
||||
"$folderPathicons\Icons\Mail.ico")
|
||||
"$folderPathicons\win95-icons\Mail.ico")
|
||||
)
|
||||
|
||||
foreach ($innerArray in $multiLevelArray) {
|
||||
|
||||
Reference in New Issue
Block a user