Search code examples
visual-studio-2010windows-installervisual-studio-setup-proje

How to create a msi file for a Visual Studio 2010 solution w/o Visual Studio 2010?


We have an old Visual Studio 2010 windows forms application, inside it has a Setup project to create the msi file. This is the command we call in Jenkins:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" "%WORKSAPCE%\RepoManager-v3-TIB3-dev\RepoManager.sln" /build "Release|x86"

Now we only have VS 2013 installed on the build server. We can build the solution using 2013 like this, but the msi file is not created. We know it's no longer supported.

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com" RepoManager.sln" /build "Release|x86"

My situation is we don't have the resource to migrate the whole solution to 2013, it's big. So what's the best way for us to create the msi file?

[Added in June 17] Following PhilDW's suggestion, I installed the Installer Project extension to 2013, it shows as "Visual Studio Installer Extension for Microsoft Visual Studio 2013" in the Programs and Features (How to find it in the file system? Where it's installed to?) Now I got this error in the build, and the msi file is still not generated.

------ Starting pre-build validation for project 'Setup2.0_Prod' ------ 
ERROR: An error occurred while validating.  HRESULT = '8000000A'
------ Pre-build validation for project 'Setup2.0_Prod' completed ------
15>------ Build started: Project: Setup2.0_Prod, Configuration: Release ------

enter image description here


Solution

  • Finally I figured out, the easiest solution is: 1. Install the extension to VS 2013. 2. Add the registry key: An error occurred while validating. HRESULT = '8000000A'