Archive: MSI won't EXEC


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!! :eek:

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.:p

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:

http://forums.winamp.com/showthread....light=msi+exec


THANK YOU!!:D :D
This helped alot and worked.:p