|
|
#1 |
|
Junior Member
Join Date: Dec 2008
Posts: 5
|
prerequisites before install
I have an .onInit Function that query the user computer registry. How can I skip one of the Section of code? I try to make an if statement around the section but it only ways to be in the section. If I have it in the section then it still will be display on the Choose componects page. Any help will be great
|
|
|
|
|
|
#2 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
|
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
The IF-test should indeed be within the Section... e.g.
code: At the same time, after you check the registry, you can hide the section from the install options list by settings its text blank: code: e.g. code: So... 1. hide the section from the list 2. make the section code ignored based on the IF-test |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Dec 2008
Posts: 5
|
I am not sure how to set the description for the section to "". This is the code I have where would I put and where would I set the sectionSetText ${mySec} ""?
Function .onInit ReadRegStr $R1 HKLM "SOFTWARE\Anoto\penDirector\settings" "padName" FunctionEnd Section "RoutePen" ${If} $R1 <> 'penDispatcher.pad' messageBox MB_OK 'InstallSoftware' ${EndIf} SectionEnd |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|