Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to add custom task or actions to a setup project in vb.net

Posted on 2014-12-10
2
Medium Priority
?
254 Views
Last Modified: 2014-12-11
In my projects in vb I usually add to the solution the standard setup project from visual studio

but I dont know how to call this code from the setup process:
        Dim extension As String = ".test"
        Dim name As String = "testFile1"
        Dim description As String = "test Formats File"
        Dim applicationPath As String = "Mypath\myprogram.exe"
        Dim iconPath As String = Path.Combine("Mypath\", "myicon.ico")
        AssociateFile(extension, name, description, iconPath, applicationPath)

Open in new window


I would like to know how to call the previous code when the setup process it is in progress (installation of my project).

Best regards
0
Comment
Question by:altariamx2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
LordWabbit earned 2000 total points
ID: 40493320
It's pretty straight forward, just follow the directions on the following link.
http://msdn.microsoft.com/en-us/library/d9k65z2d%28v=vs.80%29.aspx
0
 
LVL 11

Expert Comment

by:LordWabbit
ID: 40493323
Just to add something more, I thought step 5 of the section "To add the custom action" was a bit daft and skipped it.  Don't.  Otherwise when it gets to the commit it can't find the custom action it would have installed if I hadn't skipped step 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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question