BDEAlias plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
(correction -> no direct download)
 
(19 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{|align=right
{{PageAuthor|Vytautas}}
|<small>Author: [[{{ns:2}}:Vytautas|Vytautas]] ([[{{ns:3}}:Vytautas|talk]], [[{{ns:-1}}:Contributions/Vytautas|contrib]])</small>
== Links ==
|}
[[File:Exe.gif]] [http://www.vytux.com/joomla/en/projects?func=fileinfo&id=2 BDEAlias.exe] (89 KB, click ''Download'')
<br style="clear:both;">
 
[http://www.vytux.com Vytautas' Website]
 
== Description ==
== Description ==
This plugin will allow you to add and delete BDE Aliases.  The plugin is available [http://vytautas.mine.nu/nsis.php here] or in the Archive Download page. For information on how to install BDE visit [http://nsis.sourceforge.net/archive/viewpage.php?pageid=300 this page.]
'''Version:''' 0.5.
 
This plugin will allow you to add and delete BDE Aliases.  The plugin is available from the links above or in the NSIS Wiki. For information on how to install BDE visit [[Install_BDE|this Wiki page]].


== Usage Example ==
== Usage Example ==
<highlight-nsis>;
<highlight-nsis>;
;  BDE Alias plugin usage example
;
Section "Add"
Section "Add"
   BDEAlias::AddAlias '*A* NSIS' '*P* V:\' '*D* PARADOX'
   BDEAlias::AddAliasDebug '*A* NSIS' '*P* V:\' '*D* PARADOX' '*B* FALSE'
   pop $9
   pop $9
   MessageBox MB_OK $9
   MessageBox MB_OK $9
SectionEnd
SectionEnd
 
Section "Add InterBase"
Section "Add InterBase"
   BDEAlias::AddAliasDebug '*A* NSIS-Test' '*P* V:\' '*D* INTRBASE' '*O* USER NAME:"SYSDBA"'
   BDEAlias::AddAliasDebug '*A* NSIS-Test' '*P* V:\' '*D* INTRBASE' '*O* USER NAME:"SYSDBA"' '*B* TRUE'
   pop $9
   pop $9
   MessageBox MB_OK $9
   MessageBox MB_OK $9
SectionEnd
SectionEnd
 
 
Section "Delete"
Section "Delete"
   push "*A* NSIS"
   push "*A* NSIS"
Line 44: Line 44:
| <nowiki>*A*</nowiki>
| <nowiki>*A*</nowiki>
| Alias
| Alias
|-
| <nowiki>*B*</nowiki>
| Enable BCD [TRUE/FALSE]
|-
|-
| <nowiki>*D*</nowiki>
| <nowiki>*D*</nowiki>
Line 56: Line 59:


== Version History ==
== Version History ==
; [Update 2005-10-18] Version 0.5
: Fixed problem with deleting Aliases.  Added ability to specify if BCD should be enabled or not.
; [Update 2004-01-23] Version 0.4
; [Update 2004-01-23] Version 0.4
: Added Debug versions of the Plugin Functions - Display the pop'ed values.  Now you can specify the parameters in any order!
: Added Debug versions of the Plugin Functions - Display the pop'ed values.  Now you can specify the parameters in any order!
Line 65: Line 70:
Vytautas
Vytautas


[[{{ns:14}}:Plugins]]
== Feature Requests ==
# It would be great if this plug-in can show BDE alias properties.<blockquote>I have encountered cuch use-case when my installer has to run some SQL scripts for Firebird DB which have no Firebird alias but only BDE alias. Fortunately I've googled [http://mess.hu/?page=sw_free&lang=eng the solution] on some [http://www.appdeploy.com/messageboards/tm.asp?m=26457&mpage=1&key=creator&#28238 message board].</blockquote>
# Set of handy macros for the plug-in is also very appretiated.
 
VV
 
[[Category:Plugins]]

Latest revision as of 07:17, 12 May 2011

Author: Vytautas (talk, contrib)


Links

Exe.gif BDEAlias.exe (89 KB, click Download)

Vytautas' Website

Description

Version: 0.5.

This plugin will allow you to add and delete BDE Aliases. The plugin is available from the links above or in the NSIS Wiki. For information on how to install BDE visit this Wiki page.

Usage Example

;
Section "Add"
  BDEAlias::AddAliasDebug '*A* NSIS' '*P* V:\' '*D* PARADOX' '*B* FALSE'
  pop $9
  MessageBox MB_OK $9
SectionEnd
 
Section "Add InterBase"
  BDEAlias::AddAliasDebug '*A* NSIS-Test' '*P* V:\' '*D* INTRBASE' '*O* USER NAME:"SYSDBA"' '*B* TRUE'
  pop $9
  MessageBox MB_OK $9
SectionEnd
 
Section "Delete"
  push "*A* NSIS"
  BDEAlias::DeleteAlias
  pop $9
  MessageBox MB_OK $9
SectionEnd

You can use both ways to pass the info to the plugin. E.G. by manually pushing the data as shown in the DeleteAlias Example. Or on the commandline like in the AddAlias examples.

The debug versions should only be called when testing the installer as they will display several message boxes containing the data you supplied to the plugin. Their main function is to check that the data is going to the right place.

To enable the plugin to detect the data types the following prefixes must be added to your data before pushing it to the stack:

Prefix Description
*A* Alias
*B* Enable BCD [TRUE/FALSE]
*D* Driver
*O* Other Parameters
*P* Path

Version History

[Update 2005-10-18] Version 0.5
Fixed problem with deleting Aliases. Added ability to specify if BCD should be enabled or not.
[Update 2004-01-23] Version 0.4
Added Debug versions of the Plugin Functions - Display the pop'ed values. Now you can specify the parameters in any order!
[Update 2003-12-18] Version 0.3
Added ability to specify other parameters such as 'User Name'. If you wish to specify more than one parameter you should separate them with a semicolon.
[Update 2003-11-19] Version 0.2
Uses the stack instead of variables for information transfer.

Vytautas

Feature Requests

  1. It would be great if this plug-in can show BDE alias properties.

    I have encountered cuch use-case when my installer has to run some SQL scripts for Firebird DB which have no Firebird alias but only BDE alias. Fortunately I've googled the solution on some message board.

  2. Set of handy macros for the plug-in is also very appretiated.

VV