From ee27d9f3b19911e2f72a32c8538240a90ca99106 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 11 Sep 2024 16:36:39 +0200 Subject: [PATCH] use rem for code comments --- windows11.bat | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/windows11.bat b/windows11.bat index 38d4488..6a67f57 100644 --- a/windows11.bat +++ b/windows11.bat @@ -54,7 +54,7 @@ IF NOT "%1"=="noskipadmin" ( :: === Registery modifications == ECHO Registery entries... :: Right click of Windows 10 -:: REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve +@REM REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve :: Disabling widgets REG ADD "HKLM\Software\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f @@ -101,7 +101,7 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Au :: Disable web search in start menu :: TODO: Need testing -:: REG ADD "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f +@REM REG ADD "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f :: Disable ad in file explorer REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSyncProviderNotifications /t REG_DWORD /d 0 /f @@ -227,10 +227,10 @@ wsl --install --no-distribution :: === Activate Windows == -:: TODO: Fix command, see https://massgrave.dev/command_line_switches#uses-in-powershell-one-liner -:: PowerShell -Command "" ^ -:: "& ([ScriptBlock]::Create((irm https://get.activated.win )))" ^ -:: "/HWID" +@REM TODO: Fix command, see https://massgrave.dev/command_line_switches#uses-in-powershell-one-liner +@REM PowerShell -Command "" ^ +@REM "& ([ScriptBlock]::Create((irm https://get.activated.win )))" ^ +@REM "/HWID" :: === Modules for Windows Update == @@ -311,22 +311,22 @@ CMD /c "%TEMP%\deceive.bat" yes :: === Xournal++ == :: TODO: Winget report an incorrect hash on installation, :: that's why we're installing it manually -:: ECHO Xournal++... -:: PowerShell -Command "" ^ -:: "$repo = 'xournalpp/xournalpp';" ^ -:: "$releases = \"https://api.github.com/repos/$repo/releases\";" ^ -:: "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[1].tag_name;" ^ -:: "$file = \"xournalpp-$($tag.substring(1))-windows.zip\";" ^ -:: "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^ -:: "$archive = 'xournalpp.zip';" ^ -:: "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ -:: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ -:: "cd $env:TEMP;" ^ -:: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^ -:: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^ -:: "Start-Process $exe /S;" ^ -:: "Remove-Item -Force $outfile;" ^ -:: "Remove-Item -Force $exe" +@REM ECHO Xournal++... +@REM PowerShell -Command "" ^ +@REM "$repo = 'xournalpp/xournalpp';" ^ +@REM "$releases = \"https://api.github.com/repos/$repo/releases\";" ^ +@REM "$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[1].tag_name;" ^ +@REM "$file = \"xournalpp-$($tag.substring(1))-windows.zip\";" ^ +@REM "$link = \"https://github.com/$repo/releases/download/$tag/$file\";" ^ +@REM "$archive = 'xournalpp.zip';" ^ +@REM "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ +@REM "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ +@REM "cd $env:TEMP;" ^ +@REM "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^ +@REM "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^ +@REM "Start-Process $exe /S;" ^ +@REM "Remove-Item -Force $outfile;" ^ +@REM "Remove-Item -Force $exe" :: === Minecraft ==