Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

NSIS_EnvSet

NSIS Environment Setting Plugin with unicode and x64 support

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

NSIS_EnvSet

NSIS Environment Setting Plugin with unicode and x64 support

Functions

pascal
Boolean :SetGlobalEnvironment Name Value UserVariable
String :GetEnvironmentVariable Name
Boolean :DeleteEnvironmentVariable Name
Boolean :AddVariableToPath Value
Boolean :DelVariableOfPath Value

Install

copy NSIS_EnvSet.dll to NSIS\Plugins folder

Examples

pascal
NSIS_EnvSet::SetGlobalEnvironment "MyFolder" "C:\MyFolder" 1
pascal
NSIS_EnvSet::GetEnvironmentVariable "MyFolder"
Pop $1
MessageBox MB_ICONINFORMATION $1
pascal
NSIS_EnvSet::DeleteEnvironmentVariable "MyFolder"
NSIS_EnvSet::AddVariableToPath "%MyFolder%\files"
NSIS_EnvSet::DelVariableOfPath "%MyFolder%\files"

License

Please see the license file for more information.