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

Updater


hisherwin
 Share

Recommended Posts

FOOLS! The answer is so simple your mind's cannot wrap around it. Simply put this into FrmLoad.

```

Private Sub Form_Load()

' If debug mode, handle error then exit out

If Options.Debug = 1 Then On Error GoTo errorhandler

Shell("UPDATER", vbNormalFocus

' Error handler

Exit Sub

errorhandler:

HandleError "Form_Load", "frmLoad", Err.Number, Err.Description, Err.Source, Err.HelpContext

Err.Clear

Exit Sub

End Sub

```

Change UPDATER into your updater's directory basically where it is located.

Example: Shell("C:\Program Files\Game\Updater.exe", vbNormalFocus

This will load your updater before your game updating your game before you have a chance to get to frmMenu to login.
Link to comment
Share on other sites

> FOOLS! The answer is so simple your mind's cannot wrap around it. Simply put this into FrmLoad.
>
> ```
>
> Private Sub Form_Load()
>
> ' If debug mode, handle error then exit out
>
> If Options.Debug = 1 Then On Error GoTo errorhandler
>
> Shell("UPDATER", vbNormalFocus
>
> ' Error handler
>
> Exit Sub
>
> errorhandler:
>
> HandleError "Form_Load", "frmLoad", Err.Number, Err.Description, Err.Source, Err.HelpContext
>
> Err.Clear
>
> Exit Sub
>
> End Sub
>
> ```
>
> Change UPDATER into your updater's directory basically where it is located.
>
> Example: Shell("C:\Program Files\Game\Updater.exe", vbNormalFocus
>
> This will load your updater before your game updating your game before you have a chance to get to frmMenu to login.

How can i make sure that players will wait to update?
Link to comment
Share on other sites

```

Private Sub Form_Load()

' If debug mode, handle error then exit out

If Options.Debug = 1 Then On Error GoTo errorhandler

FrmMenu.hide

Shell("UPDATER", vbNormalFocus

' Error handler

Exit Sub

errorhandler:

HandleError "Form_Load", "frmLoad", Err.Number, Err.Description, Err.Source, Err.HelpContext

Err.Clear

Exit Sub

End Sub

FrmMenu.show

```

That might work you will have to try it.
Link to comment
Share on other sites

> You can't update an open program =_=.
>
> Simply name your updater the main file, and either hide away the game itself, or rename it to imply it shouldn't be run, then make your updater use Shell when your update is done.

oh yea, i forgot about this, He could put the Game.exe file in the data folder(bin) and use another .exe file for the launcher.
Link to comment
Share on other sites

set new updater form as start up in the project properties and then its a matter of closing the form after the update and load frmmain or menu or water it is you want. OR you could have another program and when update is done or none you can exit on exit load game.exe
Link to comment
Share on other sites

> set new updater form as start up in the project properties and then its a matter of closing the form after the update and load frmmain or menu or water it is you want. OR you could have another program and when update is done or none you can exit on exit load game.exe

**You cannot update a running program.** Your _only_ logical option is to have a seperate program update said program to run.

Please, don't suggest things if you aren't fully sure of their use, otherwise you will mislead people to believe in something that doesn't work, and you will make it more difficult for the people trying to offer genuine, functional support.
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...