diff --git a/bindings/powershell/Keystone/Keystone.psm1 b/bindings/powershell/Keystone/Keystone.psm1 index 2133dafc98ef38266e37840d97e7e65b05a0370a..52e2b1ae23e5b50680871ac7104e09a3e0bf611f 100755 --- a/bindings/powershell/Keystone/Keystone.psm1 +++ b/bindings/powershell/Keystone/Keystone.psm1 @@ -124,9 +124,16 @@ function Get-KeystoneAssembly { # Set the keystone DLL path if ([IntPtr]::Size -eq 4){ - $DllPath = $($PSScriptRoot + '\Lib\Keystone-0.9.1\x86\keystone.dll').Replace('\','\\') + $DllPath = $($PSScriptRoot + '\Lib\Keystone\x86\keystone.dll').Replace('\','\\') } else { - $DllPath = $($PSScriptRoot + '\Lib\Keystone-0.9.1\x64\keystone.dll').Replace('\','\\') + $DllPath = $($PSScriptRoot + '\Lib\Keystone\x64\keystone.dll').Replace('\','\\') + } + + # Make sure the user didn't forget the DLL + if (![IO.File]::Exists($DllPath)) { + echo "`n[!] Missing Keystone DLL" + echo "[>] Quitting!`n" + Return } # Load C# constants diff --git a/bindings/powershell/Keystone/Lib/Keystone/x64/.keep b/bindings/powershell/Keystone/Lib/Keystone/x64/.keep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/bindings/powershell/Keystone/Lib/Keystone/x86/.keep b/bindings/powershell/Keystone/Lib/Keystone/x86/.keep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391