Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Question on auto updater


vincent329
 Share

Recommended Posts

@lexkymbeth:

> lol when its done updateing    Shell "C:\[to your client]"

=|.
App.Path.

Well, you could stick the client in a folder called "bin", "data", and so on, and just add
App.Path & "\data\client.exe"

EDIT:

> Website Creator, **Coder**, Hacker/securities coder

I'm sorry, but how can you be called a coder, if you don't use a basic file path finding function?
Link to comment
Share on other sites

@lexkymbeth:

> Process.Start("C:\Program Files\blahblah")

i_i.
I said path finding function, not your method of opening a file.
Application.StartupPath. It gets the directory of where your application is located, therefore does not have to be located in Program Files. Plus, that can go horribly wrong if you were to move the exe.

Anyway, back on topic, simply add the shell command to your files' location, and call it on either the form unloading, a play button being pressed, the download finishing, and so on. It's down to preference.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...