Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3874

Windows updater for app

$
0
0

Among most of all the software I have purchased, there is a really easy method to update the app that requires nothing more that an external app that does the work without any need to run an installer.

I am trying to add this functionality to my app.
when running my main app, it checks the server to see if the version on the \server is newer than the current… Then launches the update app and closes the main app.
With then update app, I can download the new version and unzip it into my appdata folder. So it’s sitting there as the complete exe file.
My problem is how to I replace my exe in program folder with this new one. I tried looking for shell commands to do it… all these other apps can do it - so It must be possible.
Any code snippet would be gladly appreciated.

I should mention that my main software, when it launches, send a text file to the app folder with the current working folder location of the app. I can access that from
f = New FolderItem(a, FolderItem.PathTypeNative)
a being the file location.
My main windows app is programmed in 2014 r 1 and it works really well. It’s a massive program and I spent 5 years in development and I don’t really want to jump through all the hoops to update it to ther xojo versions.
I do have 2019 r 1 which sorks quite well for the helper apps.
I also have a mac version - it works up until Ventura but Sonoma has absolutely broken it (thank you Apple for sucking).
Cheers,
Sean
www.seanclancyguitar.co.nz

4 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3874

Trending Articles