cubiome viewer
This commit is contained in:
parent
24ad5334a3
commit
14266cfb2b
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue