Skip to content
⌘ NSIS Forum Archive

ExecWait with .msi file

5 posts

Boyito#

ExecWait with .msi file

Hello

ExecWait only works with an exe file?

ExecWait '"$INSTDIR\someprogram.exe"' works fine but ExecWait '"$INSTDIR\someprogram.msi"' doesnt work
Why?

TIA
jpderuiter#
Please try a search before posting a question.

This question has been asked (and answered) a dosen times.
Boyito#
Thank for your help.
If its more easy to you write this stupid answer against help me, thanks a lot
CrushBug#
.msi files are not executables, they are essentially a file type and association to msiexec.exe - calling it that way won't work.

A better way to do it is to call it like this (VisualC 8 runtime in this case):
ExecWait 'msiexec /i "$INSTDIR\\vcredist.msi" /passive' $0 
If you want to know more options for msiexec, do a Start... Run... "msiexec.exe /?"