File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -296,8 +296,10 @@ bool WasOsUpgrade()
296
296
// UAC dialog is shown to ensure it will run with administrator privileges
297
297
void RunOsUpgradeTaskAsAdmin ()
298
298
{
299
- #ifdef _WIN64
299
+ #if defined(_M_AMD64)
300
300
wchar_t path[_MAX_PATH] = L" %windir%\\ System32\\ StartMenuHelper64.dll" ;
301
+ #elif defined(_M_ARM64)
302
+ wchar_t path[_MAX_PATH] = L" %windir%\\ System32\\ StartMenuHelperARM64.dll" ;
301
303
#else
302
304
wchar_t path[_MAX_PATH] = L" %windir%\\ System32\\ StartMenuHelper32.dll" ;
303
305
#endif
@@ -321,8 +323,10 @@ DWORD PerformOsUpgradeTask(bool silent)
321
323
regKey.SetDWORDValue (L" WinVersion" , g_winVer);
322
324
323
325
// run regsvr32 StartMenuHelper
324
- #ifdef _WIN64
326
+ #if defined(_M_AMD64)
325
327
wchar_t cmdLine[_MAX_PATH] = L" regsvr32 /s \" %windir%\\ System32\\ StartMenuHelper64.dll\" " ;
328
+ #elif defined(_M_ARM64)
329
+ wchar_t cmdLine[_MAX_PATH] = L" regsvr32 /s \" %windir%\\ System32\\ StartMenuHelperARM64.dll\" " ;
326
330
#else
327
331
wchar_t cmdLine[_MAX_PATH] = L" regsvr32 /s \" %windir%\\ System32\\ StartMenuHelper32.dll\" " ;
328
332
#endif
You can’t perform that action at this time.
0 commit comments