hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 How to create a system that when you click your game application it will run the updater instead? Link to comment Share on other sites More sharing options...
WiseRock Posted December 27, 2012 Share Posted December 27, 2012 What do you mean. Explain a little more Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 If you double click your game like "Game.exe" your game will open right? What if you double click the "Game.exe" can anyone make it open the Updater instead of the Game? Link to comment Share on other sites More sharing options...
Lavos Posted December 27, 2012 Share Posted December 27, 2012 why dont you create a form into the source and label it "launcher" and create a mod for it to do stuff. Then you can look at modgenerals and have it do stuff there. Link to comment Share on other sites More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 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 outIf Options.Debug = 1 Then On Error GoTo errorhandlerShell("UPDATER", vbNormalFocus' Error handlerExit Suberrorhandler:HandleError "Form_Load", "frmLoad", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit SubEnd Sub```Change UPDATER into your updater's directory basically where it is located.Example: Shell("C:\Program Files\Game\Updater.exe", vbNormalFocusThis 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 More sharing options...
Lavos Posted December 27, 2012 Share Posted December 27, 2012 or you could do that. Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 > 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 More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 > How can i make sure that players will wait to update?What do you mean how long it take's to update? Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 Is there anyway to prevent switching from frmMenu when you are updating? Link to comment Share on other sites More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 ```Private Sub Form_Load()' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo errorhandlerFrmMenu.hideShell("UPDATER", vbNormalFocus' Error handlerExit Suberrorhandler:HandleError "Form_Load", "frmLoad", Err.Number, Err.Description, Err.Source, Err.HelpContextErr.ClearExit SubEnd SubFrmMenu.show```That might work you will have to try it. Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 What Hide means? minimized? xD Link to comment Share on other sites More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 It basically hide's the screen and they can not maximize it. Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 Well then how can it be maximized again? Link to comment Share on other sites More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 Look at end of code FrmMenu.show maximized it. Link to comment Share on other sites More sharing options...
hisherwin Posted December 27, 2012 Author Share Posted December 27, 2012 > Look at end of code FrmMenu.show maximized it.Hmm i found a way , But thanks Link to comment Share on other sites More sharing options...
Exception Posted December 27, 2012 Share Posted December 27, 2012 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. Link to comment Share on other sites More sharing options...
Lavos Posted December 27, 2012 Share Posted December 27, 2012 > 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 More sharing options...
Zzbrandon Posted December 27, 2012 Share Posted December 27, 2012 I think he already knew that. Link to comment Share on other sites More sharing options...
DMF Posted December 27, 2012 Share Posted December 27, 2012 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 More sharing options...
Exception Posted December 27, 2012 Share Posted December 27, 2012 > 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now