-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PowerShell scripts to install and uninstall the drivers (#200)
Co-authored-by: Keith Wedinger <keith.wedinger@improving.com>
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Write-Host "Copying AWS MySQL ODBC driver files to $env:windir" | ||
Copy-Item ..\build\bin\release\*.* $env:windir\System32 | ||
Copy-Item ..\build\lib\Release\*.* $env:windir\System32 | ||
Set-Location $env:windir\System32 | ||
Write-Host "Installing AWS ANSI ODBC Driver for MySQL" | ||
.\myodbc-installer -a -d -n "AWS ANSI ODBC Driver for MySQL" -t "DRIVER=awsmysqlodbca.dll;SETUP=awsmysqlodbcS.dll" | ||
Write-Host "Installing AWS Unicode ODBC Driver for MySQL" | ||
.\myodbc-installer -a -d -n "AWS Unicode ODBC Driver for MySQL" -t "DRIVER=awsmysqlodbcw.dll;SETUP=awsmysqlodbcS.dll" | ||
Set-Location - | ||
Write-Host "Complete" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Set-Location $env:windir\System32 | ||
Write-Host "Uninstalling AWS ANSI ODBC Driver for MySQL" | ||
.\myodbc-installer -r -d -n "AWS ANSI ODBC Driver for MySQL" | ||
Write-Host "Uninstalling AWS Unicode ODBC Driver for MySQL" | ||
.\myodbc-installer -r -d -n "AWS Unicode ODBC Driver for MySQL" | ||
Set-Location - | ||
Write-Host "Complete" |