Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Best way to make an auto updater? VB

Hey i need some help with how to autoupdate a .exe for all my users. i have a domain+ftp if thats what i need.
Simple solution - let the tool parse a textfile with the actual version from your webspace and if its newer than the users version download the new version via WebClient.
(Dec 23, 2017 02:51 PM)Soldiercrimes Wrote:  Hey i need some help with how to autoupdate a .exe for all my users. i have a domain+ftp if thats what i need.
The easiest option for you is ClickOnce Application Update https://msdn.microsoft.com/en-us/library/1zyc39fb.aspx
buy me a coffee eth:0x88621A52aa5Eb3b6503628369687111810186c58
(Dec 23, 2017 02:54 PM)HansSarpei Wrote:  Simple solution - let the tool parse a textfile with the actual version from your webspace and if its newer than the users version download the new version via WebClient.

I have that right now, but i need something more fancy.

(Dec 23, 2017 07:06 PM)itcorp Wrote:  The easiest option for you is ClickOnce Application Update https://msdn.microsoft.com/en-us/library/1zyc39fb.aspx

Any tutorials on how to update it on other pc's ? i have no idea on how to update it to a website for example and let it auto update on other pc's.
(Dec 24, 2017 05:52 AM)Soldiercrimes Wrote:  I have that right now, but i need something more fancy.


Any tutorials on how to update it on other pc's ? i have no idea on how to update it to a website for example and let it auto update on other pc's.

I am pretty sure from what I have read that you push updates through ClickOnce and then people who use your software automatically get a notification (depending on your update strategy) that there is a new update.

Update strategy info:
https://msdn.microsoft.com/en-us/library/s22azw1e.aspx
(Dec 24, 2017 02:27 PM)Ninja Wrote:  I am pretty sure from what I have read that you push updates through ClickOnce and then people who use your software automatically get a notification (depending on your update strategy) that there is a new update.

Update strategy info:
https://msdn.microsoft.com/en-us/library/s22azw1e.aspx

The problem is, i dont know how to handle the ftp thingys and the installation folder url: https://gyazo.com/1a2e0cb5f49472c4809b9960f785715b
I think this is wrong but idk why...
Here's how to do it

Let's say this is version 1 that we publish.
[Image: Hly3Y0I.png]

[Image: lLykuxs.png]

hit next
[Image: 48UhBYC.png]
after defining your ftp it looks like this
[Image: VMMLRN8.png]
hit next and define the app path that is on the server
[Image: IV8Pf46.png]
hit next
[Image: rA1RPGc.png]
hit next
[Image: zEPzsNy.png]

hit finish to publish app
[Image: 79I7RHp.png]

After successful publication, you will get the following window
[Image: ULLnHCx.png]
now you can install version 1 and let's say it looks like this
[Image: vMCMMUm.png]
now ftp looks like this
[Image: 0iDXy2I.png]

Now let's say you made changes to the code and you want to make a version 2...hit properties

[Image: 5mnTD0l.png]

Change the current version to a new one

[Image: FJfJSEG.png]
And publish again..The user will be notified  about update when the program start
[Image: jsHpOUH.png]

after update

[Image: bsYBp6Q.png]

I did not go deeper with this,but in settings, you can also specify the necessary things for the application to work from prerequisites & updates.Prerequisites are all necessary commponents and updates contains settings for how will be update...

Happy coding,I hope it will help you
buy me a coffee eth:0x88621A52aa5Eb3b6503628369687111810186c58
(Dec 25, 2017 12:20 AM)itcorp Wrote:  --snip--

I'm seeing you around lately and i cant estimate the time that you put in here. Good job!
(Dec 25, 2017 12:20 AM)itcorp Wrote:  Here's how to do it

Let's say this is version 1 that we publish.
[Image: Hly3Y0I.png]

[Image: lLykuxs.png]

hit next
[Image: 48UhBYC.png]
after defining your ftp it looks like this
[Image: VMMLRN8.png]
hit next and define the app path that is on the server
[Image: IV8Pf46.png]
hit next
[Image: rA1RPGc.png]
hit next
[Image: zEPzsNy.png]

hit finish to publish app
[Image: WuqKkLY.png]

After successful publication, you will get the following window
[Image: ULLnHCx.png]
now you can install version 1 and let's say it looks like this
[Image: vMCMMUm.png]
now ftp looks like this
[Image: 0iDXy2I.png]

Now let's say you made changes to the code and you want to make a version 2...hit properties

[Image: 5mnTD0l.png]

Change the current version to a new one

[Image: FJfJSEG.png]
And publish again..The user will be notified  about update when the program start
[Image: jsHpOUH.png]

after update

[Image: bsYBp6Q.png]

I did not go deeper with this,but in settings, you can also specify the necessary things for the application to work from prerequisites & updates.Prerequisites are all necessary commponents and updates contains settings for how will be update...

Happy coding,I hope it will help you
Thanks bro! i appreciate it ;)
(Dec 25, 2017 05:34 AM)Soldiercrimes Wrote:  Thanks bro! i appreciate it ;)

np,at any time.
buy me a coffee eth:0x88621A52aa5Eb3b6503628369687111810186c58
(Dec 25, 2017 08:52 AM)itcorp Wrote:  np,at any time.

You helped a lot the OP with the detailed tutorial along with screenshots. Thanks for your time. +Added rep, enjoy and keep up the good work! 🤝
HF Member Since 2010


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by KyFuJan 10, 2019 07:35 AM 6 297 Jan 10, 2019 07:35 AM
Last Post: InterGalactic
[Python] by xx1ben99xxNov 20, 2016 10:41 AM 2 149 Nov 20, 2016 10:41 AM
Last Post: xx1ben99xx
[.NET] by MagixHaxorzAug 3, 2016 02:21 PM 3 339 Aug 3, 2016 02:21 PM
Last Post: MagixHaxorz