diff --git a/windows11.bat b/windows11.bat index 23441d2..551c33d 100644 --- a/windows11.bat +++ b/windows11.bat @@ -264,6 +264,8 @@ PowerShell -Command "Expand-Archive -Path '%TEMP%\WindowsInk.zip' -DestinationPa :: "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ :: "cd $env:TEMP;" ^ :: "Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\Topgrade' -Force" +:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v DisplayName /t REG_SZ /d "Topgrade" +:: REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Topgrade" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Topgrade" :: === Miscellaneous == :: Rename shortcut for Minecraft @@ -288,14 +290,14 @@ RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Mine :: "$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 \";" ^ +:: "$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 - 4) + 'exe';" ^ +:: "$exe = $env:TEMP + '\' + $file.Substring(0, $file.Length - 3) + 'exe';" ^ :: "Start-Process $exe /S" :: Setup WindowsAutoNightMode