Issue 112947 - NSIS ExecWait of OOo installers results in parallel installs
Summary: NSIS ExecWait of OOo installers results in parallel installs
Status: CLOSED OBSOLETE
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: OOo 3.2.1
Hardware: Unknown Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://JesusnJim.com/OOo.html
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 21:21 UTC by jmichae3
Modified: 2019-10-07 15:03 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
sample installer for whole OOo package with manuals (35.83 KB, text/plain)
2010-07-05 21:25 UTC, jmichae3
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jmichae3 2010-07-05 21:21:46 UTC
I write a wraparound NSIS installer for my OpenOffice.org Productivity Suite. 
my installer has a problem with your installer: 
I use the NSIS command ExecWait to execute your installer. on every program in
existence except OOo's pieces it does what it should: NSIS waits until the
program in question is finished installing before it goes on to the next line of
code.

OOo seems to be spawning new processes and then killing off the parent.  it used
to be I could simply do a waitjob on setup.exe until setup.exe finished, and
then I would be good to go.

but all of them (lang pack, sdk, OOo, old URE, etc) just blast straight through
and the setup has not finished, so now I have several OpenOffice.org installers
running simultaneously, and clipart installing.  a real mess and a big system
load and it's a memory hog.

please make the installers a single-process, single-tasking wonder and solve
this problem so that ExecWait on OOo or one of its parts like langpack will
truly wait until the setup for that component is truly finished.

stripped down version of my NSIS code:
SectionGroup "Office"
Section "OpenOffice.org ${OFFICE_VERSION}" Sec_ooo
    ExecWait "$EXEDIR\OOo_3.2.1_Win_x86_install-wJRE_en-US.exe" $EXIT_CODE
    ;;wait until setup.exe appears
    ;!insertmacro ExecWaitJob "setup.exe"
    ;; let's hope they never press cancel or we're in for an infinite loop!
SectionEnd

Section "OOo Language Pack ${OFFICE_VERSION}" Sec_ooolang
    ExecWait "$EXEDIR\OOo_3.2.1_Win_x86_langpack_en-US.exe"
    ;;wait until setup.exe appears
    ;!insertmacro ExecWaitJob "setup.exe"
    ;; let's hope they never press cancel or we're in for an infinite loop!
SectionEnd

Section "OpenClipart 2.0 (recommended)" Sec_openclipart
    ExecWait '$EXEDIR\clipart.exe x -y -o"$PROGRAMFILES\Open Clip Art Library\$\"'
SectionEnd

SectionGroup "Developer Tools/SDK's"
Section "OpenOffice.org SDK ${OFFICE_VERSION}" Sec_sdk
    ExecWait '$EXEDIR\OOo-SDK_3.2.1_Win_x86_install_en-US.exe'
    ;;wait until setup.exe appears
    ;!insertmacro ExecWaitJob "setup.exe"
    ;; let's hope they never press cancel or we're in for an infinite loop!
SectionEnd
SectionGroupEnd
SectionGroupEnd



The ExecWaitJob used to work at one time, then it didn't work anymore.  it was a
hassle, and was prone to infinite loops (hangs).
Comment 1 jmichae3 2010-07-05 21:25:46 UTC
Created attachment 70398 [details]
sample installer for whole OOo package with manuals
Comment 2 Olaf Felka 2010-07-06 06:46:15 UTC
@ is: Please have a look.
Comment 3 oooforum (fr) 2019-10-07 12:04:56 UTC
3.2 is end-of-life