Click here to Skip to main content
15,562,903 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 4:57
protectorHeath Stewart15-Jan-04 4:57 
AnswerRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 5:03
protectorHeath Stewart15-Jan-04 5:03 
GeneralRe: Best way of tracking remoting clients? Pin
Alex Korchemniy15-Jan-04 5:37
Alex Korchemniy15-Jan-04 5:37 
GeneralRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 10:41
protectorHeath Stewart15-Jan-04 10:41 
GeneralCustom Attributes Pin
pnolan14-Jan-04 14:53
pnolan14-Jan-04 14:53 
GeneralRe: Custom Attributes Pin
Heath Stewart15-Jan-04 4:55
protectorHeath Stewart15-Jan-04 4:55 
GeneralI still didn't found what I was looking for - C# Service installation Pin
Pinho14-Jan-04 13:53
Pinho14-Jan-04 13:53 
GeneralRe: I still didn't found what I was looking for - C# Service installation Pin
Heath Stewart15-Jan-04 4:50
protectorHeath Stewart15-Jan-04 4:50 
See ServiceInstaller and ServiceProcessInstaller. The documentation for these two classes in the .NET Framework SDK also include samples.

Basically, you derive from Installer to create your own installer then add an instance of each of the aforementioned classes according to the documentation.

You can use the installutil.exe utility that is installed with the .NET Framework or include the assembly that includes the installer class in a Windows Installer setup project in VS.NET as a Custom Action.

If you want to set anything during installation, you'll have to use a command-line switch. You can find more information about this in the documentation for the Installer.Context property. You use some code like the following in your derived Installer class to get parameters passed to it from installutil.exe or from Windows Installer:
string value = Context.Parameters["SvcName"];
If you want to use this in an MSI package (Windows Installer), you can pass the command-line option based on an MSI database property that can be set by msiexec.exe when installing the package. For more information about that, see a previous thread I replied to: http://www.codeproject.com/script/comments/forums.asp?msg=711576&forumid=1649&XtraIDs=1649&searchkw=custom+action+windows+installer&sd=10%2F17%2F2003&ed=1%2F15%2F2004#xx711576xx[^].

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralNeed several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 13:45
FocusedWolf14-Jan-04 13:45 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 13:50
FocusedWolf14-Jan-04 13:50 
GeneralNeed several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 13:45
FocusedWolf14-Jan-04 13:45 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
Heath Stewart15-Jan-04 4:44
protectorHeath Stewart15-Jan-04 4:44 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf15-Jan-04 18:43
FocusedWolf15-Jan-04 18:43 
GeneralTaskbar Grouping Icon and Text in Windows XP Pin
Sascha Sertel14-Jan-04 13:19
Sascha Sertel14-Jan-04 13:19 
GeneralRe: Taskbar Grouping Icon and Text in Windows XP Pin
Heath Stewart15-Jan-04 7:12
protectorHeath Stewart15-Jan-04 7:12 
GeneralDisplaying Multidimensional Arrays in a Form Pin
crushinghellhammer14-Jan-04 12:56
crushinghellhammer14-Jan-04 12:56 
GeneralRe: Displaying Multidimensional Arrays in a Form Pin
Christian Graus14-Jan-04 13:03
mveChristian Graus14-Jan-04 13:03 
GeneralRe: Displaying Multidimensional Arrays in a Form Pin
Colin Angus Mackay14-Jan-04 13:07
Colin Angus Mackay14-Jan-04 13:07 
GeneralIsInputKey override for cursors not working Pin
cgcrute14-Jan-04 12:37
cgcrute14-Jan-04 12:37 
GeneralRe: IsInputKey override for cursors not working Pin
cgcrute14-Jan-04 22:42
cgcrute14-Jan-04 22:42 
General.NET remoting book Pin
naxos14-Jan-04 11:58
naxos14-Jan-04 11:58 
GeneralRe: .NET remoting book Pin
Giles14-Jan-04 12:14
Giles14-Jan-04 12:14 
GeneralRe: .NET remoting book Pin
Mohamad Al Husseiny14-Jan-04 20:34
Mohamad Al Husseiny14-Jan-04 20:34 
GeneralCd Detection to start App Pin
antoine@orchus-tech14-Jan-04 11:54
antoine@orchus-tech14-Jan-04 11:54 
GeneralRe: Cd Detection to start App Pin
Meysam Mahfouzi14-Jan-04 19:30
Meysam Mahfouzi14-Jan-04 19:30 

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.