Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 9th December 2005, 14:59   #1
P_B
Junior Member
 
Join Date: Oct 2005
Posts: 18
ExecWait in function .oninstsuccess

hi

i'm using five sections in my installer. if user selectes all of the sections it wont executes ExecWait statements in the .oninstsuccess function. But in case user selects less than five options, it will work properly.

can anybody tell me tat whether it is any limitation or somewhat else...................?
P_B is offline   Reply With Quote
Old 9th December 2005, 17:37   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Why not have a hidden section at the end.

Section
ExecWait ...
SectionEnd

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 10th December 2005, 08:09   #3
P_B
Junior Member
 
Join Date: Oct 2005
Posts: 18
not possible to have hidden section

hey,

wat my installer is doing, running installer for mysql and some other applications. and in the end i want to update the mysql database using the update scritps. But in case of sections, as sections execute simultaneouly; it executed the update scripts before the mysql installs. To get rid if it, this is the best solution i found; based on some boolean flag set i used to run the database script in the function .oninstsuccess if user selected to update the database.
P_B is offline   Reply With Quote
Old 10th December 2005, 11:07   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Sections are not executed simultaneously, they're executed sequentially.

As for the original question, if .onInstSuccess is not executed, it's because the installation wasn't successful. You probably have a Abort laying somewhere in the script. You can verify this by putting a message box in .onInstFailed.

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 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