|
|
|
|
#1 |
|
Senior Member
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
|
Prevent Resolution of Variable
Hi all,
i am using FileWrite $0 "LangString CheckDBName {LANG_ENGLISH} $\"Please check DB Name$\"" to create a set of translation files (comes out of a database we use for tracking translations). In the file the string will look like this: LangString CheckDBName 1033 "Please check DB Name" is there a way to prevent the resolution of ${LANG_ENGLISH} to 1033 ? Thanks a lot xBarns |
|
|
|
|
|
#2 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You mean define?
You can use this hack: Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
|
That does the trick
Thanks a lot! |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
|
|
|
|
|
|
|
#6 |
|
Major Dude
|
Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2022: www.visual-installer.com or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com |
|
|
|
|
|
#7 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Only works to escape a variable, I think.
|
|
|
|
|
|
#8 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
i'm pretty sure i got it working with a definition in a script of mine - otherwise my entire installer wouldn't work, but it does
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
!define foo bar
detailprint "$${foo}" Compiler: unknown variable/constant "bar" detected, ignoring (D:\Projects\MB\Installer\test.nsi:22) Installer: $bar detailprint "$$${foo}" Compiler: no warnings Installer: $bar So no, doesn't work. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|