Reputation: 72544
I've created setups for all my Delphi tools with Inno Setup for years. Now some users rather want an MSI installation package, so they can deploy the setups from a central server to all workstations.
How do I create one? Do I have to buy Visual Studio or some other product?
Upvotes: 89
Views: 219456
Reputation: 479
In Visual Studio (including the free community editions) you can install the Microsoft Visual Studio Installer Projects
extension [1] which allows you to create an MSI installation package. To install it from within Visual Studio:
Extensions
-> Manage Extensions
in the menu barInstaller Projects
in the search boxMicrosoft Visual Studio Installer Projects
and hit Download
Once the extension is installed, you'll create a new project that will contain all of the files and settings for the MSI. To do this:
File
-> New
-> Project
in the menu barAll languages
, All platforms
, and All project types
respectivelySetup Wizard: Create a Windows Installer project with the aid of a wizard.
Next
.Work through the prompts to choose the installer project name and location. Choose Create a setup for a Windows application
at Step 2 and in Step 3 choose the executable and other files that should be included in the MSI (hit Add..
). At the end, hit Create
.
To build the actual MSI go to Build
-> Build Solution
in the top menu, and you should see a message like the following in the Output window:
Build started...
------ Starting pre-build validation for project 'Setup1' ------
------ Pre-build validation for project 'Setup1' completed ------
------ Build started: Project: Setup1, Configuration: Debug ------
Building file 'C:\Users\zelda\Source\Repos\Setup1\Setup1\Debug\Setup1.msi'...
Packaging file 'test.exe'...
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
What's created by default is a very basic MSI, but for additional configuration like creating custom actions, adding/changing registry keys, configuring the user interface associated with the MSI, etc., see the full documentation [2]
[2] https://aka.ms/vdproj-docs
Upvotes: 16
Reputation: 6084
In my opinion you should use Wix#, which nicely hides most of the complexity of building an MSI installation pacakge.
It allows you to perform all possible kinds of customization using a more easier language compared to WiX.
Upvotes: 1
Reputation: 81
You can use "Visual studio installer project" and its free...
This is very easy to create installer and has GUI.(Most of the freeware MSI creation tool does not have a GUI part)
You will find many tutorials to create an installer easily on the internet
To install. just search Visual Studio Installer Project in your Visual Studio
Visual Studio-> Tools-> Extensions&updates ->search Visual Studio Installer Project. Download it and enjoy...
Upvotes: 8
Reputation: 10697
You can purchase InstallShield, the market leader for creating installation packages. It offers many features beyond what you get with freeware solutions.
Warning: InstallShield is insanely expensive!
Upvotes: 0
Reputation: 3471
Google "Freeware MSI installer".
e.g. https://www.advancedinstaller.com/
Several options here:
http://rbytes.net/software/development_c/install-and-setup_s/
Though being Windows, most are "shareware" rather than truly free and open source.
Upvotes: 13
Reputation: 1929
You can use Visual Studio - that's paid.
You can use https://www.advancedinstaller.com/ - that has a free edition.
You can use http://nsis.sourceforge.net/Main_Page - for example Winamp uses this installer - and is very configurable and is Open Source.
Upvotes: 15
Reputation: 28740
You can use Wix (which is free) to create an MSI installation package.
WiX Tutorial - Creating an Installer MSI with Wix
Upvotes: 60
Reputation: 22446
If you don't understand Windows Installer then I highly recommend The Definitive Guide to Windows Installer. You can't really use WiX without understanding MSI. Also worth downloading is the Windows Installer 4.5 SDK.
If you don't want to learn the Windows Installer fundamentals, then you'll need some wizard type package to hide all the nitty gritty details and hold your hand. There are plenty of options, some more expensive than others.
However still I'd suggest picking up the above book and taking some time to understand what's going on "under the hood", it'll really help you figure out what's going wrong when customers start complaining that something is broken with the setup :)
Upvotes: 20