@@ -1580,6 +1580,19 @@ intptr_t WINAPI ShowModulesDialogProc(HANDLE hDlg,intptr_t Msg,intptr_t Param1,v
15801580wchar_t url[2048 ], Guid[37 ];
15811581GuidToStr (Cur->Guid ,Guid);
15821582GetPrivateProfileString (Guid,L" URLHome" ,L" " ,url,ARRAYSIZE (url),ipc.Config );
1583+ if (url[0 ]==0 )
1584+ {
1585+ wchar_t local_config[MAX_PATH];
1586+ GetModuleDir (Cur->ModuleName ,local_config);
1587+ // êîððåêöèÿ
1588+ {
1589+ int len=lstrlen (local_config);
1590+ if (len>5 && !lstrcmpi (&local_config[len-5 ],L" \\ bin\\ " ))
1591+ local_config[len-4 ]=0 ;
1592+ }
1593+ lstrcat (local_config,L" UpdateEx.dll.local.config" );
1594+ GetPrivateProfileString (Guid,L" URLHome" ,L" " ,url,ARRAYSIZE (url),local_config);
1595+ }
15831596if (url[0 ])
15841597{
15851598ShellExecute (nullptr ,L" open" ,url,nullptr ,nullptr ,SW_SHOWNORMAL);
@@ -1679,6 +1692,19 @@ intptr_t WINAPI ShowModulesDialogProc(HANDLE hDlg,intptr_t Msg,intptr_t Param1,v
16791692wchar_t url[2048 ], Guid[37 ];
16801693GuidToStr (Cur->Guid ,Guid);
16811694GetPrivateProfileString (Guid,L" URLChangelog" ,L" " ,url,ARRAYSIZE (url),ipc.Config );
1695+ if (url[0 ]==0 )
1696+ {
1697+ wchar_t local_config[MAX_PATH];
1698+ GetModuleDir (Cur->ModuleName ,local_config);
1699+ // êîððåêöèÿ
1700+ {
1701+ int len=lstrlen (local_config);
1702+ if (len>5 && !lstrcmpi (&local_config[len-5 ],L" \\ bin\\ " ))
1703+ local_config[len-4 ]=0 ;
1704+ }
1705+ lstrcat (local_config,L" UpdateEx.dll.local.config" );
1706+ GetPrivateProfileString (Guid,L" URLChangelog" ,L" " ,url,ARRAYSIZE (url),local_config);
1707+ }
16821708if (url[0 ])
16831709{
16841710ShellExecute (nullptr ,L" open" ,url,nullptr ,nullptr ,SW_SHOWNORMAL);
@@ -1930,6 +1956,19 @@ intptr_t WINAPI ShowModulesDialogProc(HANDLE hDlg,intptr_t Msg,intptr_t Param1,v
19301956wchar_t url[2048 ], Guid[37 ];
19311957GuidToStr (Cur->Guid ,Guid);
19321958GetPrivateProfileString (Guid,L" URLHome" ,L" " ,url,ARRAYSIZE (url),ipc.Config );
1959+ if (url[0 ]==0 )
1960+ {
1961+ wchar_t local_config[MAX_PATH];
1962+ GetModuleDir (Cur->ModuleName ,local_config);
1963+ // êîððåêöèÿ
1964+ {
1965+ int len=lstrlen (local_config);
1966+ if (len>5 && !lstrcmpi (&local_config[len-5 ],L" \\ bin\\ " ))
1967+ local_config[len-4 ]=0 ;
1968+ }
1969+ lstrcat (local_config,L" UpdateEx.dll.local.config" );
1970+ GetPrivateProfileString (Guid,L" URLHome" ,L" " ,url,ARRAYSIZE (url),local_config);
1971+ }
19331972if (url[0 ])
19341973{
19351974ShellExecute (nullptr ,L" open" ,url,nullptr ,nullptr ,SW_SHOWNORMAL);
@@ -2827,6 +2866,12 @@ EXTERN_C VOID WINAPI RestartFARW(HWND,HINSTANCE,LPCWSTR lpCmd,DWORD)
28272866if (GetFileAttributes (local_arc)!=INVALID_FILE_ATTRIBUTES)
28282867{
28292868bPreInstall=true ;
2869+ // ñíà÷àëà ëîêàëüíûé
2870+ wchar_t local_config[MAX_PATH];
2871+ lstrcpy (local_config,destpath);
2872+ lstrcat (local_config,L" UpdateEx.dll.local.config" );
2873+ Exec (bPreInstall,&MInfo[i].Guid ,local_config,destpath);
2874+ // à òåïåðü ãëîáàëüíûé
28302875Exec (bPreInstall,&MInfo[i].Guid ,ipc.Config ,destpath);
28312876
28322877bool Result=false ;
@@ -2910,6 +2955,9 @@ EXTERN_C VOID WINAPI RestartFARW(HWND,HINSTANCE,LPCWSTR lpCmd,DWORD)
29102955}
29112956
29122957bPreInstall=false ;
2958+ // ñíà÷àëà ëîêàëüíûé
2959+ Exec (bPreInstall,&MInfo[i].Guid ,local_config,destpath);
2960+ // à òåïåðü ãëîáàëüíûé
29132961Exec (bPreInstall,&MInfo[i].Guid ,ipc.Config ,destpath);
29142962}
29152963else
0 commit comments