diff --git a/programs/uninstaller/main.c b/programs/uninstaller/main.c index 7236f1689e5..42aa53631f1 100644 --- a/programs/uninstaller/main.c +++ b/programs/uninstaller/main.c @@ -161,7 +161,8 @@ int __cdecl wmain(int argc, WCHAR *argv[]) memset( &si, 0, sizeof(si) ); si.cb = sizeof(si); - GetModuleFileNameW( 0, filename, MAX_PATH ); + GetSystemDirectoryW( filename, MAX_PATH ); + wcscat( filename, L"\\uninstaller.exe" ); Wow64DisableWow64FsRedirection( &redir ); if (CreateProcessW( filename, GetCommandLineW(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ))