Solved

Need help creating an installation custom action

Posted on 2012-04-10
3
190 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

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