NsODBC plug-in: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.) |
m (Updated author links.) |
||
Line 1: | Line 1: | ||
{|align=right | |||
|<small>Author: [[{{ns:2}}:sl|sl]] ([[{{ns:3}}:sl|talk]], [[{{ns:-1}}:Contributions/sl|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
== Description == | == Description == | ||
nsODBC is NSIS ODBC Configuration Manager. Works over | nsODBC is NSIS ODBC Configuration Manager. Works over | ||
Line 21: | Line 25: | ||
::RemoveDefDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... | ::RemoveDefDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... | ||
</highlight-nsis> | </highlight-nsis> | ||
Revision as of 03:01, 30 April 2005
Author: sl (talk, contrib) |
Description
nsODBC is NSIS ODBC Configuration Manager. Works over odbcinst32.dll. Based on SQLInstall Win API.
The Script
; Create MS Access DSN & Data Base nsODBC::AddSysDSN "Microsoft Access Driver (*.mdb)" "DSN=SERVER_${PRJ_NAME}_DB" "DBQ=$INSTDIR\${PRJ_NAME}.mdb" ; Remove DSN nsODBC::RemoveSysDSN "Microsoft Access Driver (*.mdb)" "DSN=SERVER_${PRJ_NAME}_DB" ; Methods: ::AddDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... ::AddSysDSN) ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... ::ConfDSN) ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... ::ConfSysDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... ::RemoveDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... ::RemoveSysDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ... ::RemoveDefDSN ;[DriverName] Parameters pairs follows: [DSN=XXX] [UID=0x777] ...