Hi, setup.exe is part of a .msi/.exe combination created by a Visual Studio setup project.
; Install App
ExecWait "$INSTDIR\setup.exe"
; Install Sql Server Express Edition 2005
ExecWait "$INSTDIR\install_sql_server.cmd"
; Setup and restore database
ExecWait "$INSTDIR\import_db.cmd"
; setup database user
ExecWait "$INSTDIR\adduser.cmd"
; Create ODBC DSN
If you run the .msi, it works fine UNLESS the prerequisites are missing. Hence it's better to go with the .exe. The .exe checks for the prerequisites, in this case version 3.5SP1 of the .NET Framework and Crystal Reports Basic, and downloads and installs them if needed.
One would expect that running setup.exe with ExecWait would do the checks, get and install anything that's missing, and then install the application (.msi). However, what happens is that the .msi part of the package and the following ExecWait which installs SQL Sever 2005 Express launch at the same time.
Does anybody know a way to prevent that from happening?