Reputation: 39
I am using Visual Studio Installer setup project to install my program, in Visual Studio Community 2015. My program, however, is reliant on SqlLocalDB. I have the SqlLocalDB.msi and I would like to install it after my program installs. So, I package it in my installer, into the folder that my program goes as well. Then, in the post build events I have
msiexec /a "c:\Program Files(x86)\TowerSearch\SqlLocalDB.msi"
That is the directory that the installer installs to. However, this fails with error code 1619 with unspecified error when I try to build the project. I also tried some other variations, but to no avail. I'm probably doing something silly that makes it not work, but I don't know what. So, how would you install a separate .msi file, if it's even possible?
Upvotes: 0
Views: 878
Reputation: 20780
You may need to expand on what your goal is here.
If you are on your dev system then postbuild events are called by the Visual Studio build process. However you cannot install the same MSI twice, so it's not clear what you are trying to do. You have that SQL on your dev system already, so you cannot install it again. Error 1619 means it cannot find the file.
If this is intended for client systems (not your development system) then postbuild events don't apply - they are a development thing, not a deployment method. The way you install a prerequisite like SQL is to have it in the Prerequisites of your setup program, where it generates a setup.exe that installs those prerequisites and then installs your MSI file.
Upvotes: 1