|
|
#1 |
|
Junior Member
Join Date: Feb 2010
Posts: 5
|
define "InstallDir" in a function
I need to set "InstallDir" in a function. but it wont let me do that is there a way i could use a var and then change that in the function ?
Thanks, Tom. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
The variable it uses is $INSTDIR, and you can modify $INSTDIR in function or section.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2010
Posts: 5
|
k, how can i define it different in 3 functions ?
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Nov 2005
Posts: 115
|
It's a variable, so you can change it like any other variable. StrCpy, ReadRegStr, ReadINIStr, ...
Section MainFiles StrCpy $INSTDIR "$PROGRAMFILES\Foo\Bar" SetOutPath "$INSTDIR" ... SectionEnd |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2010
Posts: 5
|
Thanks. I knew i be able to change the variable. i just don;t know the commands :S what language is it in ?
|
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Errr... You're writing an installer in NSIS, and you're asking what language it is? It's NSIS script, duh.
Please read the documentation for information on what commands exist and what they do: http://nsis.sourceforge.net/Docs/Chapter4.html |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|