ChngVrbl 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}}:scully13|scully13]] ([[{{ns:3}}:scully13|talk]], [[{{ns:-1}}:Contributions/scully13|contrib]])</small> | |||
|} | |||
<br style="clear:both;"> | |||
== Links == | == Links == | ||
<attach>Chngvrbl.zip</attach><br> | <attach>Chngvrbl.zip</attach><br> | ||
Line 19: | Line 23: | ||
-scully13 | -scully13 | ||
Revision as of 23:14, 29 April 2005
Author: scully13 (talk, contrib) |
Links
Chngvrbl.zip (5 KB)
Chngvrbl.zip (5 KB) (Mirror #1)
The zip file contains the DLL, the VC++ 6.0 source code and an example NSIS script for using the DLL. The script has an example of using the DLL to change the $PLUGINSDIR variable.
Description
The change variable plugin was designed for changing variables outside of the script. It will change any variable listed in the header file although only some of them need to be changed using the DLL like $PLUGINSDIR. StrCpy is able to change most of the others without a problem. To read more about this plugin and why I made it go here.
Example
SetOutPath $0 File /oname=$0\chngvrbl.dll "${NSISDIR}\Plugins\chngvrbl.dll" Push $0 Push 25 ; $PLUGINSDIR CallInstDLL "$0\chngvrbl.dll" changeVariable Delete "$0\chngvrbl.dll"
-scully13