Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions installers/Windows/Installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Unicode true
!define outfile_prefix "swift-console"
!define installer_dir "py39-dist"
!define company_name "Swift Navigation"
!define old_uninstaller "$PROGRAMFILES\${company_name}\${app_name}\Uninstall.exe"

!define vc_redist_url "https://aka.ms/vs/17/release/vc_redist.x64.exe"

Expand Down Expand Up @@ -212,6 +213,7 @@ FunctionEnd

!macro Uninstall Prefix
Function ${Prefix}Uninstall
ExecShell open "${old_uninstaller}" "/AllUsers /S"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens here if the user doesn't have the old console installed?

Copy link
Collaborator Author

@john-michaelburke john-michaelburke Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does nothing and continues with the uninstaller.

RMDir /r "$InstDir"
Delete "$DESKTOP\${app_name}.lnk"
Delete "$SMPROGRAMS\${app_name}.lnk"
Expand Down