Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
AnswerRe: LookandFeel in c# winforms to create dynamic applications of different themes Pin
Nagy Vilmos30-Sep-08 22:20
professionalNagy Vilmos30-Sep-08 22:20 
GeneralRe: LookandFeel in c# winforms to create dynamic applications of different themes Pin
Alok Sharma ji1-Oct-08 22:31
Alok Sharma ji1-Oct-08 22:31 
QuestionHow to export image to PPT , PDF and MS Word Pin
K V Sekhar30-Sep-08 20:01
K V Sekhar30-Sep-08 20:01 
AnswerRe: How to export image to PPT , PDF and MS Word Pin
blackjack215030-Sep-08 21:53
blackjack215030-Sep-08 21:53 
QuestionDeployment. Pin
Stephen Lintott30-Sep-08 19:45
Stephen Lintott30-Sep-08 19:45 
AnswerRe: Deployment. Pin
BillyGoatGruff30-Sep-08 23:03
BillyGoatGruff30-Sep-08 23:03 
GeneralRe: Deployment. Pin
Stephen Lintott1-Oct-08 1:45
Stephen Lintott1-Oct-08 1:45 
GeneralRe: Deployment. Pin
BillyGoatGruff1-Oct-08 2:05
BillyGoatGruff1-Oct-08 2:05 
Yes that's along the right lines.

Generally your project will output a single assembly (exe / dll). That assembly may have some requirements that need to be created at installation time - in your case, registry entries.

So you build an installer class into each assembly, which handles the requirements for that assembly.

So your installer class in this case, will read the parameters that are passed to it from the msi (which the user typed into the msi gui). It will then use these parameters when creating the registry entries.

The assembly in question needs to be added to the custom actions - this is how the msi knows to look into that assembly and find the installer class and call its methods.

The mapping between the msi gui fields and the CustomActionData property of the custom action in the deployment package designer is something like this:

/MasterClientID=[MASTERCLIENTID] /LoggingPath=[LOGGINGPATH] /LogMsgsPath=[LOGMSGSPATH] /LogDbConnStr=[LOGDBCONNSTR]

The code for retrieving the parameters in the installer is something like this:

public override void Commit(IDictionary savedState)
       {
           string mstrClientId = Context.Parameters["MasterClientID"];
           string loggingPath = Context.Parameters["LoggingPath"];

Questioncrystal reports Pin
nelsonpaixao30-Sep-08 14:51
nelsonpaixao30-Sep-08 14:51 
QuestionKeyPressEvent "e" Pin
nelsonpaixao30-Sep-08 13:18
nelsonpaixao30-Sep-08 13:18 
AnswerRe: KeyPressEvent "e" Pin
PIEBALDconsult30-Sep-08 17:21
mvePIEBALDconsult30-Sep-08 17:21 
QuestionVery simple ProgressBar Pin
DFlat4Now30-Sep-08 12:56
DFlat4Now30-Sep-08 12:56 
GeneralRe: Very simple ProgressBar Pin
nelsonpaixao30-Sep-08 15:06
nelsonpaixao30-Sep-08 15:06 
AnswerRe: Very simple ProgressBar Pin
blackjack215030-Sep-08 22:46
blackjack215030-Sep-08 22:46 
QuestionHow to draw a line outside of onPaint event handler? Pin
amin_dorost30-Sep-08 11:08
amin_dorost30-Sep-08 11:08 
AnswerRe: How to draw a line outside of onPaint event handler? Pin
DaveyM6930-Sep-08 11:18
professionalDaveyM6930-Sep-08 11:18 
AnswerRe: How to draw a line outside of onPaint event handler? Pin
Guffa1-Oct-08 1:10
Guffa1-Oct-08 1:10 
GeneralRe: How to draw a line outside of onPaint event handler? Pin
DaveyM691-Oct-08 1:54
professionalDaveyM691-Oct-08 1:54 
GeneralRe: How to draw a line outside of onPaint event handler? Pin
Guffa1-Oct-08 2:58
Guffa1-Oct-08 2:58 
QuestionEventargs click event runtime created labels Pin
RobScripta30-Sep-08 9:37
professionalRobScripta30-Sep-08 9:37 
AnswerRe: Eventargs click event runtime created labels Pin
Wendelius30-Sep-08 9:42
mentorWendelius30-Sep-08 9:42 
GeneralRe: Eventargs click event runtime created labels Pin
Mbah Dhaim30-Sep-08 10:15
Mbah Dhaim30-Sep-08 10:15 
GeneralRe: Eventargs click event runtime created labels Pin
RobScripta30-Sep-08 10:38
professionalRobScripta30-Sep-08 10:38 
GeneralRe: Eventargs click event runtime created labels Pin
Dan Neely30-Sep-08 10:52
Dan Neely30-Sep-08 10:52 
GeneralRe: Eventargs click event runtime created labels Pin
Mycroft Holmes30-Sep-08 22:58
professionalMycroft Holmes30-Sep-08 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.