use rem for code comments

This commit is contained in:
Mylloon 2024-09-11 16:36:39 +02:00
parent 9aad1ffc3e
commit ee27d9f3b1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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 ==