|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2015
Posts: 25
|
Error: resolving install function "StrReplace" in function "RIF"
I am getting an error finding the strReplace function. I dont know how to fix this error, could someone let me know where the problem is coming from and assist me in fixing the problem.
My files are as follows: strrep.nsh code: ReplaceInFile.nsh code: RIPtest.nsi code: Also, when I tried putting the nsh files in (kind of) my own includes area, which I had hoped to be located in a My documents" folder NSIS was saying it could not find the files. How can I do that in an include? You can see where I tried in the commented out code of RIPtest.nsi. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Read the bottom of the ReplaceInFile page on the wiki.
$Documents is a run-time variable, use something like $%userprofile%\documents\foo.nsh... IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2015
Posts: 25
|
Are all the variables in the constant section of the documentation run-time only? Thanks for showing how to handle environment vars!
Also, are comments ignored in the resulting exe, or compiled into the string list? |
|
|
|
|
|
#4 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Quote:
Comments are removed in the preprocessor complier step IIRC... IntOp $PostCount $PostCount + 1 |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|