Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
GeneralMulticast Programming Pin
goodpilot28-Jun-04 6:25
goodpilot28-Jun-04 6:25 
GeneralRe: Multicast Programming Pin
Heath Stewart28-Jun-04 6:47
protectorHeath Stewart28-Jun-04 6:47 
GeneralRe: Multicast Programming Pin
goodpilot28-Jun-04 7:35
goodpilot28-Jun-04 7:35 
GeneralGetting a ConfigurationException and I dont know why Pin
Flack28-Jun-04 6:18
Flack28-Jun-04 6:18 
GeneralRe: Getting a ConfigurationException and I dont know why Pin
Heath Stewart28-Jun-04 6:25
protectorHeath Stewart28-Jun-04 6:25 
GeneralRe: Getting a ConfigurationException and I dont know why Pin
Flack28-Jun-04 6:35
Flack28-Jun-04 6:35 
Questionhow to retrieve the ProductCode? Pin
econnor28-Jun-04 6:15
econnor28-Jun-04 6:15 
AnswerRe: how to retrieve the ProductCode? Pin
Heath Stewart28-Jun-04 6:21
protectorHeath Stewart28-Jun-04 6:21 
I'm guess that you mean you added an assembly with an Installer class (attributed with the RunInstallerAttribute class) as a custom action within a Windows Installer package using VS.NET (or anything, really)?

If so, you have to pass it as a command-line parameter. In the Installer class, you can query command-line parameters easily using the Context.Parameters property. It's a simple dictionary. So, lets say you define a command-line parameter named "ProductCode", you'd access it like so:
public override void Install(IDictionary stateSaver)
{
  string productCode = Context.Parameters["ProductCode"];
  if (productCode != null)
  {
    // ...
  }
}
In the custom action command-line within the designer for the VS.NET distribution package (an MSI), add /ProductCode=[ProductCode] to the command-line. That will pass-in the ProductCode for the MSI as a command-line argument.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: how to retrieve the ProductCode? Pin
econnor29-Jun-04 3:53
econnor29-Jun-04 3:53 
GeneralEnumerations (design question) Pin
mealnumberone28-Jun-04 5:44
mealnumberone28-Jun-04 5:44 
GeneralRe: Enumerations (design question) Pin
Heath Stewart28-Jun-04 6:33
protectorHeath Stewart28-Jun-04 6:33 
Questionneed to send within the current connection ..? Pin
Adel83k28-Jun-04 5:18
Adel83k28-Jun-04 5:18 
AnswerRe: need to send within the current connection ..? Pin
Heath Stewart28-Jun-04 6:29
protectorHeath Stewart28-Jun-04 6:29 
GeneralWindows Service App Pin
japanreddy28-Jun-04 4:37
japanreddy28-Jun-04 4:37 
GeneralRe: Windows Service App Pin
Heath Stewart28-Jun-04 4:55
protectorHeath Stewart28-Jun-04 4:55 
GeneralRe: Windows Service App Pin
Xiangyang Liu 刘向阳28-Jun-04 5:17
Xiangyang Liu 刘向阳28-Jun-04 5:17 
GeneralFolderBrowserDialog external machine selection Pin
fozzwald28-Jun-04 4:29
fozzwald28-Jun-04 4:29 
GeneralRe: FolderBrowserDialog external machine selection Pin
Heath Stewart28-Jun-04 4:46
protectorHeath Stewart28-Jun-04 4:46 
GeneralProblem with EnvDTE Pin
Johan Van Antenaeken28-Jun-04 4:25
Johan Van Antenaeken28-Jun-04 4:25 
GeneralDynamic Create Class Pin
savaskulah28-Jun-04 4:07
savaskulah28-Jun-04 4:07 
GeneralRe: Dynamic Create Class Pin
Heath Stewart28-Jun-04 4:28
protectorHeath Stewart28-Jun-04 4:28 
GeneralCreation of DLL library Pin
Ronald Boucher28-Jun-04 3:41
sussRonald Boucher28-Jun-04 3:41 
GeneralRe: Creation of DLL library Pin
Serge Lobko-Lobanovsky28-Jun-04 4:19
Serge Lobko-Lobanovsky28-Jun-04 4:19 
GeneralRe: Creation of DLL library Pin
Heath Stewart28-Jun-04 4:22
protectorHeath Stewart28-Jun-04 4:22 
GeneralRe: Creation of DLL library Pin
Ronald Boucher28-Jun-04 6:41
sussRonald Boucher28-Jun-04 6:41 

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.