<commit_before>$scriptDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)

if($FrameworkNeeded -eq $null)<commit_msg>Update deployment to detect best matching version for the installed frameworks (fixes #28)<commit_after>$scriptDir = Split-Path ((Get-Variable MyInvocation -Scope 0).Value.MyCommand.Path)

$FrameworkKeyPath = "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\"

if((Test-Path $FrameworkKeyPath) -eq $False)
{
	Write-Error "Unable to detect framework version"
	Return
}

$FrameworkValue = Get-ItemProperty -Path $FrameworkKeyPath | select -ExpandProperty "Release"
$FrameworkNeeded = ""

if($FrameworkValue -lt 378389)
{
	Write-Error "You need at least .NET 4.5 to install Service Bouncer"
	Return
}
elseif($FrameworkValue -lt 394254)
{
	$FrameworkNeeded = "NET45"
}
else
{'fraction_non_alphanumeric': 0.11829268292682926, 'fraction_numerical': 0.025609756097560974, 'mean_word_length': 5.568, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3061021', 'n_tokens_mistral': 278, 'n_tokens_neox': 253, 'n_words': 70}