Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes(nsis): move pre hooks before kill app #10271

Merged

Conversation

Legend-Master
Copy link
Contributor

@Legend-Master Legend-Master commented Jul 13, 2024

Make NSIS_HOOK_PREINSTALL and NSIS_HOOK_PREUNINSTALL run before CheckIfAppIsRunning (which checks if the app is running and asks the user if they want to kill the app)

pre-install an pre-uninstall hooks should run before everything else we do, this gives the user the ability to run their own check app running logics (in my case I registered a service with the same name and I need to clean it up before CheckIfAppIsRunning)

If the user wants to have the app killed before their hook, they can call CheckIfAppIsRunning in their hooks

@Legend-Master Legend-Master requested a review from a team as a code owner July 13, 2024 04:26
@amrbashir amrbashir merged commit 9f0a5fc into tauri-apps:dev Jul 15, 2024
15 checks passed
@Legend-Master Legend-Master deleted the pre-hook-before-check-running branch July 15, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants