14 lines
482 B
PowerShell
14 lines
482 B
PowerShell
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
|
|
$null = New-Module {
|
|
$softwareName = "PuTTY";
|
|
$configFile = "$($softwareName).reg";
|
|
|
|
function Backup-PuTTY([Context] $context) {
|
|
$tempDir = $context.GetTempDirectory();
|
|
$fileName = Join-Path "$tempDir" $configFile;
|
|
& reg export "HKCU\Software\SimonTatham" "$fileName" /y;
|
|
$context.Backup($tempDir, $context.SoftwareArchive($softwareName), @());
|
|
Remove-Item -Recurse $tempDir;
|
|
}
|
|
}
|