Archive: ExecWait with MSI file


ExecWait with MSI file
Hi,

I'm executing a .MSI file to launch PostgreSQL install, in my NSIS Setup, like that:

ExecWait '"msiexec" /i "$INSTDIR\postgresql\postgresql-8.2.msi"'

My problem is that the PostgreSQL installer gives hand to the setup before the end of the install. The MSI install launches correctly and gives hand to the setup only after 2 clicks !!!

So I can't be able to know when the install finishes ...

any ideas ?


Sorry, what do you mean by 'gives hand'?

To run it silently, you need to use the /qn switch:
http://pginstaller.projects.postgresql.org/silent.html

Stu


Hello,

Thanks for your answer.
I don't want to run it silently.

My setup launches the .MSI file waiting for the answer when the install will be finished; and after only 2 clicks in my MSI installer, the ExecWait method receives the signal, as if the .MSI file had finished, whereas it's not finished and continues in parallel.

Both installs (SETUP AND MSI) execute at the same time, whereas I need the MSI install to be finished in order to continue my setup execution...


Sounds like it is launching a new process. You need to find if there is a command line switch to stop this happening.

Stu