[NEW_FEATURE] Preparing Updater.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@70 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
80df519dbc
commit
a501b3f659
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user