Skip to content

Commit

Permalink
Add PowerShell scripts to install and uninstall the drivers (#200)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Wedinger <keith.wedinger@improving.com>
  • Loading branch information
jkwuc89 and jkwuc89 authored Aug 5, 2024
1 parent c114d75 commit 1a31c9c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions util/install_drivers.ps1
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"
7 changes: 7 additions & 0 deletions util/uninstall_drivers.ps1
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"

0 comments on commit 1a31c9c

Please sign in to comment.