|
|
#1 |
|
Junior Member
Join Date: Oct 2005
Posts: 13
|
IfFileExists then macro
Hello,
I don't quite get the some of the basics ![]() Is it not possible to do a: IfFileExists "$INSTDIR\sc_update" !insertmacro "Remove_${SEC01}" It is in uninstall process, i just want to run remove macro if file is found. Regards, Simon |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Use LogicLib:
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: Oct 2005
Posts: 13
|
Great works like a charm.
Is there any way to do something as simple for checking whether a section is check or not? |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Oct 2005
Posts: 13
|
Sry for my horrible english.
What i want to do is execute 3 commands if a section is selected. i wan't to do this inside one section. I've been scavaging the docs/forum but can't seem to find what i need. I want to be able to something like: IfSectionChecked {writeIniStr, writeIniStr, WriteIniStr} |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2005
Posts: 13
|
I guess i should do some more reading..
I've tried with: ${If} ${SectionIsSelected} ${SEC03} WriteIniStr DIR GROUP KEY VALUE ${EndIf} But the value get's written regardless of the section is checked or not
|
|
|
|
|
|
#6 | |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Make sure SEC03 has the correct value in there. Add:
If the output comes out as:code: Quote:
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|