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

Added a useful batch script that updates GHelper for you. #3566

Closed
wants to merge 1 commit into from

Conversation

osomat123
Copy link

This pull request introduces a batch script to streamline the process of updating GHelper.
The script performs the following steps:

  1. Requests Admin Privileges: Required to save the GHelper binaries in C:\Program Files\GHelper.
  2. Terminates the Current GHelper Process: Ensures no conflicts during the update.
  3. Deletes Existing GHelper Binaries: Cleans up outdated files from C:\Program Files\GHelper.
  4. Downloads and Extracts the Latest Version: Retrieves GHelper.zip from GitHub, unzips it, and saves the binaries in the target directory.
  5. Cleans Up Temporary Files: Deletes the downloaded GHelper.zip to avoid clutter.
  6. Restarts GHelper: Launches the updated version of the application.

I have been using this script to update GHelper consistently for the past 5-6 months, and it has worked reliably in every instance.

Added a useful batch script that updates GHelper for you.
@seerge
Copy link
Owner

seerge commented Jan 7, 2025

@osomat123 hello, thanks for your effort, but G-Helper already has a built in auto-update system.

Every time the new "final" release is published, app would check it and offer you automatic update.

async void CheckForUpdatesAsync()

Thanks

@osomat123
Copy link
Author

@seerge - it's nice to hear from the big man himself! :)

For some reason, the in built auto update mechanism has never worked out well on my machine. It just downloads the latest zip and closes out the application and never updates it. So, I have to unzip and place the latest binary in my GHelper location manually.

This script has been emulating a painless update process for me. So, I thought it might be useful for anyone facing the same problem as me.

I'll close this PR as this is just redundant functionality here

@osomat123 osomat123 closed this Jan 7, 2025
@seerge
Copy link
Owner

seerge commented Jan 7, 2025

@osomat123 what does it say in app log in that moment ? I think it would be helpful if you can reproduce it - and post a new issue with the log :)

Do you keep GHelper.exe in some folder that require admin permissions?

@osomat123
Copy link
Author

@seerge - I keep GHelper.exe in C:\Program Files\GHelper.
I think admin permissions are needed here. Is this why the auto update doesn't work?
Would running GHelper in Admin mode help here?

I'll try to get a hold of the logs the new time I see the auto update window pop up.

@ghost-of-cerberus
Copy link

@seerge - I have the same issue but I'm certain it's not permissions related as it's in my user profile directory; however, the path has special characters which I assume is the issue.

Posting a new issue with log now.

@seerge
Copy link
Owner

seerge commented Jan 7, 2025

@ghost-of-cerberus could be due to a special characters in a path, I have answered in your issue

@seerge
Copy link
Owner

seerge commented Jan 7, 2025

@osomat123 in your case running it as admin permissions might help, can you try it using an older version?

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.

3 participants