Old 25th November 2011, 02:17   #1
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
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
Thyrador is offline   Reply With Quote
Old 25th November 2011, 06:26   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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.
MSG is offline   Reply With Quote
Old 25th November 2011, 07:01   #3
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
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 is offline   Reply With Quote
Old 25th November 2011, 07:04   #4
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
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.
Thyrador is offline   Reply With Quote
Old 25th November 2011, 08:37   #5
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
That's why I said, execwait the installer AND wait for its childprocesses.

http://lmgtfy.com/?q=nsis+execwait+child+processes&l=1
MSG is offline   Reply With Quote
Old 25th November 2011, 09:57   #6
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
i'd try it, but it wont response with anything.

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

did i get the wrong idea?

after first installer it hangs, it seems that it wait till forever, after finishing first job.
Thyrador is offline   Reply With Quote
Old 25th November 2011, 10:50   #7
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
No idea. Try to find out what it's waiting for. Start by using a different exe.
MSG is offline   Reply With Quote
Old 25th November 2011, 10:59   #8
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
i tried, but still the same. even if i call calc and close it, the installer still hangs after closing the program
Thyrador is offline   Reply With Quote
Old 25th November 2011, 11:42   #9
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Hm, guess that's a bug in the macro, then. What OS?
MSG is offline   Reply With Quote
Old 25th November 2011, 11:45   #10
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
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 is offline   Reply With Quote
Old 26th November 2011, 09:19   #11
Thyrador
Junior Member
 
Join Date: Mar 2011
Posts: 24
it seems that only "/clone_wait" is needed. dont know if it works with older installshield-versions
Thyrador is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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