Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Problems in setting/manipulating environment variable (http://forums.winamp.com/showthread.php?t=230208)

Nandhaa 5th November 2005 20:04

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

kichik 8th November 2005 16:34

Copy TrimNewLines from the documentation.


All times are GMT. The time now is 04:44.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.