Old 30th August 2005, 11:15   #1
ShakerWD
Junior Member
 
Join Date: Aug 2005
Posts: 11
Question ExecWait, and then wait for 2nd process?

hi,
just begun working with nsis. its really nice to work with, especially with EclipseNSIS. first off all thx for these great tools!

in my installer i'm checking if acrobat reader is installed.
if not, i start the installation with ExecWait. the problem is that the newest acrobat installer launches 2 processes. the first process invoked by me is AcrReader.exe
This process ends and the Reader installation is continued with the msiexec.exe process.

thus my installation continues during the main reader-instalaltion 'cause AcrReader.exe ended.

how i can observe these 2 processes? nothing found so far.
need to wait until the 2nd process returns.

cheers

Daniel
ShakerWD is offline   Reply With Quote
Old 30th August 2005, 14:43   #2
KenA
Junior Member
 
Join Date: Jul 2004
Posts: 36
Hi ShakerWD,

you should be able to monitor msiexec.exe, and any other process for that matter, with the "FindProcDLL" plug-in. Don't remember if it's in standard NSIS install tho.

Hope this helps,

KenA
KenA is offline   Reply With Quote
Old 30th August 2005, 18:42   #3
OJi
Guest
 
Posts: n/a
when you launch the exe does it begin to decompress acrobat reader ?
if yes - unpack it your self and lauch the msi directly.

hope it helps.

OJi.
  Reply With Quote
Old 30th August 2005, 20:19   #4
ShakerWD
Junior Member
 
Join Date: Aug 2005
Posts: 11
Quote:
you should be able to monitor msiexec.exe, and any other process for that matter
thats what i've already done. the problem with this solution is that adobe starts the msiexec 4!! times. 3 times with the logged in user, the 4th time with an system account. works fine. i'm waiting a well defined time. checking the state of the process. problem is that the 4th msiexec.exe never dies. it will run until the end of windows session. or until killed by hand. so moitoring the process wont give the right solution.

Quote:
unpack it your self and lauch the msi directly
took a while to find the needed files. will try tomorrow if it works. but think execwait will run against the same wall as the aproach above cause the hanging process. will try an older reader version too.

thx for your replies

cheers

Daniel
ShakerWD is offline   Reply With Quote
Old 31st August 2005, 06:03   #5
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
You can launch Acrobat setup at the end on installation (last section, for example) and finish your installer instead of waiting. NSIS 'finish' page must be omitted this case - see finPre function in the attached script. I did this trick for .NET 1.1 installation because it may require reboot (if replaces 1.0). Attached script is draft only, it searchs $EXEDIR for 2 additional predefined setup files (dotnetfx and 'components' package) and (if any) displays sections page (editor itself not requires sections). Hides itself during 'components' package installation (SEC_2).
Attached Files
File Type: nsi ced.nsi (8.7 KB, 231 views)
Takhir is offline   Reply With Quote
Old 31st August 2005, 08:43   #6
ShakerWD
Junior Member
 
Join Date: Aug 2005
Posts: 11
thx takhir,

solved it this way. searched the unpacked files.
added them to installer.

starting installation with
PHP Code:
ExecWait "msiexec.exe /i $TEMP\Test\Acrobat\Reader.msi" 
ExecWait can handle the hanging process. works fine now.

thx for your replies
ShakerWD 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