$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
New-Item -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000" -Name "InstallPath" -Value "C:\Games\KKND2 Krossfire" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire\1.00.000" -Name "CDPath" -Value ".\" -Force
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
Remove-Item -Path "$VirtualStore\WOW6432Node\Melbourne House\KKND Krossfire" -recurse - force
Write-ReplaceContentInFile -Pattern '^USERNAME (.+)' -Substitution "USERNAME $NewPlayerAlias" -FilePath "$InstallDirectory\Options.cfg"