Browse Source

[NEW_FEATURE] Preparing Updater.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@70 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/patch_testing@481
Don Ho 17 years ago
parent
commit
2809c591b6
  1. 2
      PowerEditor/src/MISC/SysMsg/SysMsg.cpp
  2. 12
      PowerEditor/src/winmain.cpp

2
PowerEditor/src/MISC/SysMsg/SysMsg.cpp

@ -169,7 +169,7 @@ void systemMessage(const char *title)
void printInt(int int2print)
{
char str[32];
itoa(int2print, str, 10);
sprintf(str, "%d", int2print);
::MessageBox(NULL, str, "", MB_OK);
}

12
PowerEditor/src/winmain.cpp

@ -269,10 +269,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, int nCmdSh
if (TheFirstOne)
{
/*
Process updater("C:\\Program Files\\7-Zip\\7zFM.exe", "c:\\");
updater.run();
*/
char updaterPath[MAX_PATH];
strcpy(updaterPath, pNppParameters->getNppPath());
strcat(updaterPath, "\\updater\\gup.exe");
if (::PathFileExists(updaterPath))
{
Process updater(updaterPath, "c:\\");
updater.run();
}
}
MSG msg;
msg.wParam = 0;

Loading…
Cancel
Save