Microsoft already has a setup installer extension, that will add a new project type to Visual Studio, and then you can configure your setup.
Microsoft Visual Studio Installer Projects - Visual Studio Marketplace
This extension provides the same functionality that currently exists in Visual Studio 2015 for Visual Studio Installer…
Step by Step
1 — Open your solution on Visual Studio;