Thyrador
25th November 2011 02:17 UTC
some execwait issues
heya guy, me again.
is it me or why does the ExecWait function wont work after burning/imaging my installer?
if i start straight from hdd and install it, all would be fine.
but after burning the package on bluray/DVD, ExecWait wouldnt work anymore.
all subinstallations pops out simultanously.
whats going wrong in here?
my installer calls some other (3rd-party) installer, depending on whats the users choice.
what i want is that it install one package at time.
from hdd all works fine. from blu-ray/DVD it wouldnt
MSG
25th November 2011 06:26 UTC
Possibly this has something to do with the fact that a DVD is read-only. Perhaps those installers copy themselves to the HDD before they execute, because they want writable storage for some reason or other. You could try execwaiting including child processes.
Thyrador
25th November 2011 07:01 UTC
that wont work. for testing purposes i've copied (via a small loader) the setup executable to defined $TEMP directory and start the installation from there.
content is still on dvd/br. even if the installer is on hdd only, every childprocess is loaded instant, without waiting for finished the first process
Thyrador
25th November 2011 07:04 UTC
it wont work.
i moved the installer (via small loader) to defined $TEMP folder and start setup from there.
content is still on dvd/br.
only the installer is on that temporarily folder.
its still the same, childprocesses wont wait until first is finished.
MSG
25th November 2011 08:37 UTC
That's why I said, execwait the installer AND wait for its childprocesses.
http://lmgtfy.com/?q=nsis+execwait+child+processes&l=1
Thyrador
25th November 2011 09:57 UTC
i'd try it, but it wont response with anything.
Quote:
did i get the wrong idea?
after first installer it hangs, it seems that it wait till forever, after finishing first job.
Section "Essential" Ess StrCpy $IFIL "Core Elements" AddSize 148149 !insertmacro ExecWaitJob "$SDIR\Core\setup.exe" SectionEnd
Section "Tools" Tool StrCpy $IFIL "Useful Tools" AddSize 8345 !insertmacro ExecWaitJob "$SDIR\Tools\setup.exe" SectionEnd
|
MSG
25th November 2011 10:50 UTC
No idea. Try to find out what it's waiting for. Start by using a different exe.
Thyrador
25th November 2011 10:59 UTC
i tried, but still the same. even if i call calc and close it, the installer still hangs after closing the program
MSG
25th November 2011 11:42 UTC
Hm, guess that's a bug in the macro, then. What OS?
Thyrador
25th November 2011 11:45 UTC
finally i got it
adding "/runfromtemp /clone_wait" switches will do it, even from dvd/br
waiting time is annoying, but is works. it takes some time to end installers and step forward, but i'm happy that i got it finally working
thanks for help
EDIT:
OS: Win7 x64 (also tried with Win7 x86, same issues)
Thyrador
26th November 2011 09:19 UTC
it seems that only "/clone_wait" is needed. dont know if it works with older installshield-versions