[installer] Log installer to separate file (#24045)

* [installer] Log installer to separate file

* Spellcheck and minor fix

* Delete interop hardlinks before creating them
This commit is contained in:
Stefan Markovic
2023-02-22 10:06:59 +01:00
committed by GitHub
parent aceffe3212
commit 47999199e9
4 changed files with 42 additions and 52 deletions

View File

@@ -256,7 +256,8 @@ void ReportVCMLogs(const filesystem::path& tmpDir, const filesystem::path& repor
void ReportInstallerLogs(const filesystem::path& tmpDir, const filesystem::path& reportDir)
{
const char* logFilePrefix = "powertoys-bootstrapper-msi-";
const char* bootstrapperLogFilePrefix = "powertoys-bootstrapper-msi-";
const char* PTLogFilePrefix = "PowerToysMSIInstaller_";
for (auto& entry : directory_iterator{ tmpDir })
{
@@ -267,7 +268,7 @@ void ReportInstallerLogs(const filesystem::path& tmpDir, const filesystem::path&
}
const auto fileName = entry.path().filename().string();
if (!fileName.starts_with(logFilePrefix))
if (!fileName.starts_with(bootstrapperLogFilePrefix) && !fileName.starts_with(PTLogFilePrefix))
{
continue;
}