Skip to content
⌘ NSIS Forum Archive

MSI won't EXEC

3 posts

JATO#

MSI won't EXEC

New to NSIS....Trying to create an installer which downloads and installs several programs

For some reason..I can't get a .MSI file to execute using EXEC command. The Installer says it Executed it..but nothing happens on screen!! 😱

Forums seem to indicate that EXEC command should run it. What newbie mistake am I making???.
Here's a snippet of code....

Section "download" Sec01
nsisdl::download \
"${Tortoise_URL}/TortoiseSVN-1.2.2.4299-VS.NET-ASP.NET-svn-1.2.3.msi" \
c:\temp\test1\TortoiseSVN-1.2.2.4299-VS.NET-ASP.NET-svn-1.2.3.msi
SectionEnd

Section "Install" Sec02
Exec "c:\temp\test1\TortoiseSVN-1.2.2.4299-VS.NET-ASP.NET-svn-1.2.3.msi"
SectionEnd
I've verified that the .MSI file is in Temp\Test1 folder.
The Installer ends with
Execute:c:\temp\test1\TortoiseSVN-1.2.2.4299-VS.NET-ASP.NET-svn-1.2.3.msi
Complete
If I use similar commands for .NET Framework...the .EXE works fine.
Is there a different command for MSI files?

Any assistance would be greatly appreciated.😛
kichik#
A MSI package is not an executable. You can't execute it using Exec or ExecWait. Use ExecShell or pass it on as a parameter to msiexec.exe.

Your mistake was not searching the forum for "msi exec" and finding:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.