Skip to content

Commit

Permalink
Merge pull request #516 from panther7/patch-1
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
marticliment authored Dec 22, 2022
2 parents 0a28ce2 + 7b443fd commit a8401a7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
12 changes: 8 additions & 4 deletions wingetui/resources/install_scoop.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ SET wingetuipath=%~dp0..\wingetui.exe
echo This script will install Scoop and the dependencies required by WingetUI.
pause
powershell -ExecutionPolicy ByPass -File "%~dp0\install_scoop.ps1"
echo WingetUI needs to be restarted now. This script is now going to restart WingetUI
pause
taskkill /im wingetui.exe /f
%wingetuipath%
if %errorlevel% equ 0 (
echo WingetUI needs to be restarted now. This script is now going to restart WingetUI
pause
taskkill /im wingetui.exe /f
start /b %wingetuipath%
) else (
pause
)
5 changes: 5 additions & 0 deletions wingetui/resources/install_scoop.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
If (Get-Command scoop -ErrorAction SilentlyContinue) {
Write-Output "Scoop is already installed."
exit 1
}

Write-Output "Installing scoop..."

iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
Expand Down
2 changes: 1 addition & 1 deletion wingetui/storeEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def finish(self, returncode: int, output: str = "") -> None:
self.cancelButton.setText(_("OK"))
self.cancelButton.setIcon(QIcon(realpath+"/resources/tick.png"))
self.cancelButton.clicked.connect(self.close)
self.info.setText(f"{self.programName} was uninstalled successfully!")
self.info.setText(_("{0} was {1} successfully!").format(self.programName, self.actionDone))
self.progressbar.setValue(1000)
self.startCoolDown()
else:
Expand Down

0 comments on commit a8401a7

Please sign in to comment.