Author |
Message |
BDwinsAlt Agurus's Posse
Age:33 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Wed Sep 20, 2006 3:14 am Post subject: |
|
|
|
|
Why in the world would you not use GetContinnum.com? It looks pretty and has extra information.
Simpler project (MSVC):
#include <windows.h>
#pragma comment (linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
int main()
{
ShellExecute(NULL, "open", "http://www.getcontinuum.com/", NULL, NULL, SW_SHOWNORMAL);
} |
The pragma disables showing a blank command prompt. Problem is that MSVC 6.0 won't get this under 32k (ugh). So, Dev-C++ with a Windows project:
#include <windows.h>
int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)
{
ShellExecute(NULL, "open", "http://www.getcontinuum.com/", NULL, NULL, SW_SHOWNORMAL);
return 0;
}
|
17.2k, a little better. Using upx on this got it to 15k, but I wouldn't trust that exe on all systems, so ignoring that.
A better option would be to have a program that actually would run a script to download the latest version, but this works just as well.
update.zip - 5.18 KB
File downloaded or viewed 54 time(s)
|
|
Back to top |
|
|
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.
Age:36 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Sep 20, 2006 8:13 am Post subject: |
|
|
|
|
I knew my post would get 'junked', oh well.
Well, yeah, you should just have a .bat and wget do the work.
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Sep 20, 2006 2:04 pm Post subject: |
|
|
|
|
'wget' is not recognized as an internal or external command,
operable program or batch file. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Wed Sep 20, 2006 2:48 pm Post subject: |
|
|
|
|
not all computers have wget.
Actutally this update.exe opens up an interesting idea. i will think more. _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps
|
|
Back to top |
|
|
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.
Age:36 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Sep 20, 2006 2:51 pm Post subject: |
|
|
|
|
Shaddap Brain, of course you'd have to include it.
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed Sep 20, 2006 3:33 pm Post subject: |
|
|
|
|
How would you include it inside update.exe, exactly?
|
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Wed Sep 20, 2006 4:36 pm Post subject: |
|
|
|
|
Self extracting executable. Would extract wget to temporary folder, call it with the correct url, then execute that installer. But doing this would be pretty blind to the user running the executable, so a better option would just be to have the executable download the file itself, or be a graphical interface for wget showing the current download speed/percentage.
The best option I can think of is to use Nullsoft Scriptable Install System, which can create a tiny web install application. NSIS only has 34k overhead, which means the update.exe will still be tiny.
|
|
Back to top |
|
|
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.
Age:36 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Thu Sep 21, 2006 2:45 am Post subject: |
|
|
|
|
Actually, I was talking about a .bat. By "including" I meant including wget in the ASSS distribution.
Mine GO BOOM wrote: | A better option would be to have a program that actually would run a script to download the latest version, but this works just as well. |
Solo Ace wrote: | Well, yeah, you should just have a .bat and wget do the work. |
Dr Brain wrote: | 'wget' is not recognized as an internal or external command,
operable program or batch file. |
Doc Flabby wrote: | not all computers have wget. |
Solo Ace wrote: | Shaddap Brain, of course you'd have to include it. |
Dr Brain wrote: | How would you include it inside update.exe, exactly? |
In a .bat you mean? You wouldn't, you'd include it in the asss distrubution, next to the .bat.
Otherwise, if in an .exe, I'd probably do it the way MGB just posted about.
|
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Sep 21, 2006 8:47 am Post subject: |
|
|
|
|
Including it with asss wouldn't help the client that's trying to update continuum.
|
|
Back to top |
|
|
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.
Age:36 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Thu Sep 21, 2006 8:49 am Post subject: |
|
|
|
|
Oh is that the purpose of this? Oops.
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sat Sep 23, 2006 5:05 am Post subject: |
|
|
|
|
Once I tried to make one of those self extracting zipfiles, I got a bit bogged down with trying to get colors.bm2 to go into the correct folder. I also spent a while trying to find one that didn't have an interactive element.
Anyway, I would have thought it would be better to be redirected to a download than to do it through the server. It also gives the player more control/choice.
|
|
Back to top |
|
|
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sun Sep 24, 2006 5:09 pm Post subject: |
|
|
|
|
Wouldn't it be tricky to modify a running process? Or are we assuming they would have to restart the program before entering the zone. _________________
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun Sep 24, 2006 7:09 pm Post subject: |
|
|
|
|
I think cont executes update.exe and quits at the same time. Anyway I probably left the name of the new exe as continuum39pr1.exe or something so never ran into that issue, not very good for a seamless upgrade I must admit.
|
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Sep 25, 2006 11:54 am Post subject: |
|
|
|
|
Can u get continuum to prompt to update even if its version is the latest already (0.39pr1) ?
|
|
Back to top |
|
|
-Smong- Guest
Offline
|
Posted: Mon Sep 25, 2006 8:17 pm Post subject: |
|
|
|
|
Probably, but it'd get annoying everytime you enter the zone, people will start to ignore it.
|
|
Back to top |
|
|
Quan Chi2 Member of "Sexy Teenagers that Code" Group
Age:33 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Fri Sep 29, 2006 8:01 pm Post subject: |
|
|
|
|
D1st0rt wrote: | Wouldn't it be tricky to modify a running process? |
I guess you could use FindWindow(), WriteProcessMemory(). Of course, those functions take temporary effect on the process targeted.
|
|
Back to top |
|
|
|