|
|
#1 |
|
Junior Member
Join Date: Mar 2003
Posts: 2
|
condition sections based on target machine
Is it possible to display or omit a particular section based on the target environment? I'd like to diplay a component only if the user has a certain environmental variable and that variable is a directory.
Thanks. -- Steve Hall [ digitect@mindspring.com ] |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,336
|
Yes, set it's name to an empty string ("") using SectionSetText. For example:
PHP Code:
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2003
Posts: 2
|
Thanks for the reply, the short version is that it worked.
The long version involves me spending hours and hours to get it to do so, finally realizing that functions must follow sections.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|