Solved

Need help creating an installation custom action

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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