Allow creation of backups without specifying 7z arguments

This commit is contained in:
Manuel Thalmann 2023-08-01 03:34:56 +02:00
commit b9ecde1340
2 changed files with 5 additions and 1 deletions
scripts/Windows/Software/PuTTY

View file

@ -10,7 +10,7 @@ $null = New-Module {
$tempDir = $context.GetTempDirectory();
$fileName = Join-Path "$tempDir" $configFile;
& reg export "HKCU\Software\SimonTatham" "$fileName" /y;
$context.Backup($tempDir, $context.SoftwareArchive($softwareName), @());
$context.Backup($tempDir, $context.SoftwareArchive($softwareName));
Remove-Item -Recurse $tempDir;
}