|
|
#1 |
|
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...................? |
|
|
|
|
|
#2 |
|
Moderator
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 |
|
|
|
|
|
#3 |
|
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. |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|