ソースを参照

Recognizing installer binary name even when it has a numeric index automatically added by browser

(cherry picked from commit 65a0730c8e00ee9668679a8896bdc031e7a5a1fb)

Source commit: 255b5f78a88d5eca4f5ae85fa91650792ba43973
Martin Prikryl 4 年 前
コミット
ea08b01a29
1 ファイル変更1 行追加1 行削除
  1. 1 1
      source/windows/WinMain.cpp

+ 1 - 1
source/windows/WinMain.cpp

@@ -536,7 +536,7 @@ void __fastcall UpdateStaticUsage()
   UnicodeString ParentProcess = GetAncestorProcessName();
   // do not record the installer as a parent process
   if (!ParentProcess.IsEmpty() &&
-      (!StartsText(L"winscp-", ParentProcess) || !EndsText(L"-setup", ParentProcess)))
+      (!StartsText(L"winscp-", ParentProcess) || !ContainsText(ParentProcess, L"-setup")))
   {
     UnicodeString ParentProcesses = Configuration->Usage->Get(L"ParentProcesses");
     std::unique_ptr<TStringList> ParentProcessesList(CreateSortedStringList());