Old 9th April 2004, 14:38   #1
fcorneli
Junior Member
 
Join Date: Apr 2004
Posts: 1
Manipulating section checkbox

Hi,

I want to enable a section checkbox when there exists a certain file within the $EXEDIR directory. I already have:

!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit

Function myGuiInit
IfFileExists "$EXEDIR\win32\mysql-4.0.18-win\SETUP.EXE" mysql_found mysql_done
mysql_found:
MessageBox MB_OK "enable checkbox"
goto mysql_done
mysql_done:
FunctionEnd

Instead of the MessageBox I would like to enable an RO section again. How can this be done?
fcorneli is offline   Reply With Quote
Old 9th April 2004, 14:41   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use the macros in Sections.nsh. See one-section.nsi as an example.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump