Solved

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

Posted on 2014-12-10
2
211 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
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
LordWabbit earned 500 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now