Code: Show/Hide #include <windows.h> #include <iostream> using namespace std; int main() { cout << "Your browser will launch and you will be sent to a continuum upgrade site." << endl; cout << "This window will close in 10 seconds of popping up." << endl; ShellExecute(NULL, "open", "http://bradav.freehostia.com/contupgrade.html", NULL, NULL, SW_SHOWNORMAL); Sleep(10000); return 0; } |
Code: Show/Hide #include <windows.h>
#pragma comment (linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") int main() { ShellExecute(NULL, "open", "http://www.getcontinuum.com/", NULL, NULL, SW_SHOWNORMAL); } |
Code: Show/Hide #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; } |
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? |
D1st0rt wrote: |
Wouldn't it be tricky to modify a running process? |