Archive: Installer skipping over Windows Installer Package


Installer skipping over Windows Installer Package
I have about 9 files that I am installing in my installer, and all of the exe files are working fine. But the MYSQL Database installer is an msi file, and it extracts it or says it is, and then skips over it.

Any ideas any one. Does NSIS not permit Windows Installer Packages (.msi)??

Thanks in advance...


Extracts and then skips over it? What do you mean? Do you mean it doesn't execute it? If you attach your script or a minimal example, it'll be easier to see what the problem is.


ok. this is the section code:

Section "MySQL 4.1" SecDATA
SectionIn RO
SetOutPath "$INSTDIR"
File "..\Examples\MYSQLInstall.msi"
ExecWait '"$INSTDIR\MYSQLInstall.msi"'
SetDetailsPrint textonly
DetailPrint "Installing MySQL Database 4.1..."
SetDetailsPrint listonly
Delete "$INSTDIR\SAMInstall.exe"
SectionEnd


And what it does in the installer is it says Extract MYSQLInstall.msi (Then the PErcentages going up) Then it says Execute MYSQLInstall.msi...Then Installing MYSQL Database 4.1 for a quick second. Then Skips over to the next installer.

I am very confused. I would be happy to post my installer up here, but it is a pretty large file.

ExecWait '"$WINDIR\System32\msiexec.exe" /i "$INSTDIR\MYSQLInstall.msi"'

That's because a MSI installer is not really an executable. You can install it using msiexec.exe which is a real executable.


Thank you so much everybody. It worked.


Of course, this will only work if the Windows Installer is... well... installed. You probably need to check some obscure setting in the registry to determine if it is installed. Microsoft might provide some information about it.


they should all have it installed considering this installer is only for windows xp. The other programs dont work on anything lower.


If it is not necessary to have the installer wait, this will also work.

ExecShell "Open" "$INSTDIR\MYSQLInstall.msi"