diff --git a/install.cmd b/install.cmd new file mode 100644 index 0000000..a964d53 --- /dev/null +++ b/install.cmd @@ -0,0 +1 @@ +powershell .\tools\add_odbc_connection.ps1 \ No newline at end of file diff --git a/tools/add_odbc_connection.ps1 b/tools/add_odbc_connection.ps1 new file mode 100644 index 0000000..29095b3 --- /dev/null +++ b/tools/add_odbc_connection.ps1 @@ -0,0 +1,3 @@ +$targetdir="DefaultDir="+(Split-Path (Get-Location))+"\components" +Write-Host 'Installing GhOST Library to' $targetdir +Add-OdbcDsn -Name "GhOST Library" -DriverName "Microsoft Access Text Driver (*.txt, *.csv)" -DsnType "User" -Platform "64-bit" -SetPropertyValue $targetdir \ No newline at end of file diff --git a/tools/remove_odbc_connection.ps1 b/tools/remove_odbc_connection.ps1 new file mode 100644 index 0000000..f61ffc8 --- /dev/null +++ b/tools/remove_odbc_connection.ps1 @@ -0,0 +1 @@ +Remove-OdbcDsn -Name "GhOST Library" -DsnType "User" -Platform "64-bit" -ErrorAction 'SilentlyContinue' \ No newline at end of file diff --git a/uninstall.cmd b/uninstall.cmd new file mode 100644 index 0000000..776d4f6 --- /dev/null +++ b/uninstall.cmd @@ -0,0 +1 @@ +powershell ./tools/remove_odbc_connection.ps1 \ No newline at end of file