Solved

Need help creating an installation custom action

Posted on 2012-04-10
3
195 Views
Last Modified: 2012-06-27
I am creating a deployment project for my windows application. What I want to accomplish is when i run the install, I want an entry created in the database, in addition to installing my application.


So i have added Install class to my windows application project that would add a necessary entry to a database. Now how do set up my setup and deployment project so that my custom action gets executed before installing the application?
0
Comment
Question by:YZlat
[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
3 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37829904
Here, have a look at this step by step msdn tutorial:-

http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx
0
 
LVL 35

Author Comment

by:YZlat
ID: 37832366
I don't think you understood the question. In the link you provided a Class library is created and added to the primary output of the setup project. I already have my Windows app added to the primary output of the setup class. Now i also need to add my Class library project
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37832413
no just add the your installer class to it...
In case of library, it will automatically search for class of Installer type. both approaches will work
0

Featured Post

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

632 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