Solved

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

739 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