Open visual studio and follow below steps
check out steps below
1.On the File menu, point to Add, and then click New Project.
2.In the Add New Project dialog box, expand the Other Project Types node, expand the Setup and Deployment Projects, click Visual Studio Installer, and then click Setup Project. In the Name box, type Custom Action Installer.
To add the custom action
1.Select the Custom Action Installer project in Solution Explorer. On the View menu, point to Editor, and then click Custom Actions.
The Custom Actions Editor is displayed.
2.In the Custom Actions Editor, select the Commit node. On the Action menu, click Add Custom Action.
3.In the Select Item in Project dialog box, double-click the Application Folder. Select Primary output from OpenWeb.
Primary output from OpenWeb appears under the Commit node in the Custom Actions Editor.
4.In the Properties window, make sure that the InstallerClass property is set to True (this is the default).
5.In the Custom Actions Editor, select the Install node and add Primary output from OpenWeb to this node as you did for the Commit node.
6.On the Build menu, click Build Custom Action Installer.
see below link for more details
https://msdn.microsoft.com/en-us/library/d9k65z2d(v=vs.100).aspx
Thanks
Koolprasd2003
Editor, DotNetSpider MVM
Microsoft MVP 2014 [ASP.NET/IIS]