Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Is it possible to do a search and replace on certain files? (http://forums.winamp.com/showthread.php?t=139046)

vbgunz 17th June 2003 20:34

I've also tried the following
code:
Section "Replace @AbsolutePath@"
; This snippet should help in replacing the Absolute system paths by replacing "\" with "/".
Push $INSTDIR
Push "\"
Call StrSlash
Pop $0
;Now $R0 contains the $INSTDIR with forward slashes
!insertmacro ReplaceInFile "$INSTDIR\crash.txt" "@AbsolutePath@" "$0"
SectionEnd



But I end up with the following error...
code:
Adding plug-ins initializing function... Done!
Error: resolving install function "StrSlash" in section "Replace @AbsolutePath@" (5)
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process


vbgunz 17th June 2003 21:08

I solved it Joost! I forgot to insert the !include... Excellent, Thank you so much for your time :) Everyone will get a thank you in my credits :)

Thank you for putting up with me with so far

Thanks again


All times are GMT. The time now is 05:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.