Archive: some execwait issues


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


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.


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


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.


That's why I said, execwait the installer AND wait for its childprocesses.

http://lmgtfy.com/?q=nsis+execwait+child+processes&l=1


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

No idea. Try to find out what it's waiting for. Start by using a different exe.


i tried, but still the same. even if i call calc and close it, the installer still hangs after closing the program


Hm, guess that's a bug in the macro, then. What OS?


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)


it seems that only "/clone_wait" is needed. dont know if it works with older installshield-versions