![]() |
Problems in setting/manipulating environment variable
Hi All,
In my installer design I need to set some environment variable and need to change the path variable. I searched through the forum and found ... http://nsis.sourceforge.net/wiki/Set...ment_Variables http://nsis.sourceforge.net/wiki/Path_Manipulation I downloaded WriteEnvStr.nsh from CVS and placed in my include folder and copy paste the sample code in my script !include WriteEnvStr.nsh # or the name you chose # ... Section "Add Env Var" Push MyEnvVar Push MyEnvVarValue Call WriteEnvStr SectionEnd but my compilation failed. Here is the message ---------------------------------------------------- Processed 1 file, writing output: Adding plug-ins initializing function... Done! warning: uninstall function "un.PFI_DeleteEnvStr" not referenced - zeroing code (0-42) out warning: uninstall function "un.PFI_DeleteEnvStrNTAU" not referenced - zeroing code (42-84) out Error: resolving install function "PFI_TrimNewlines" in function "PFI_WriteEnvStr" Note: uninstall functions must begin with "un.", and install functions must not Error - aborting creation process ---------------------------------------------------- What was the problem? Could any one help with some sample script to do the same. Thanks, Nandhaa |
Copy TrimNewLines from the documentation.
|
| All times are GMT. The time now is 04:44. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.