Solved

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

Posted on 2014-12-10
2
241 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 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

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

615 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