From 14266cfb2b5fb4b8804759a8a1def15b0691ec04 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 4 Feb 2024 22:50:34 +0100 Subject: [PATCH] cubiome viewer --- windows11.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/windows11.bat b/windows11.bat index e13dd88..11bd43b 100644 --- a/windows11.bat +++ b/windows11.bat @@ -337,6 +337,21 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v :: "Remove-Item -Force $outfile;" ^ :: "Remove-Item -Force $exe" +:: Install Cubiomes viewer +ECHO Cubiomes viewer... +MKDIR "%LOCALAPPDATA%\cubiomes-viewer" 2>NUL +PowerShell -Command "" ^ + "$exe = 'cubiomes-viewer-static-win.exe';" ^ + "$link = 'https://github.com/Cubitect/cubiomes-viewer/releases/latest/download/' + $exe;" ^ + "$outfile = Join-Path -Path '%LOCALAPPDATA%\cubiomes-viewer' -ChildPath $exe;" ^ + "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ + "$WshShell = New-Object -comObject WScript.Shell;" ^ + "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\cubiomes-viewer.lnk');" ^ + "$Shortcut.TargetPath = $outfile;" ^ + "$Shortcut.Save()" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v DisplayName /t REG_SZ /d "cubiomes-viewer" +REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\cubiomes-viewer" + :: === Miscellaneous == :: Rename shortcut for Minecraft RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Minecraft.lnk