471,852 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

I need to install a COMPILED windows service .exe

here's my problem: I have an obfuscated, compiled .exe , that is a windows
service, and I need it to install using a setup project. since its already
compiled, I can't just go to "custom actions" and add primary output from the
service. my setup project doesnt see it. so how the heck do I do it?

I was thinking of using a DOS .bat file that uses sc.exe or installutil.exe,
but I am still having trouble making it work. anyone got a tutorial or
something. that would be awwesome. thanks.
Mar 25 '08 #1
1 2012
Go here:

http://www.eggheadcafe.com/articles/20041204.asp

1) I made the ServiceManager a "self-installing" service a- la Craig
Andera's excellent example code. You only need to run "ServiceManager.exe
/install" or "ServiceManager.exe /uninstall" and you are good to go. This is
relatively easy to do, and it eliminates the need to rely on that nasty
InstallUtil.exe thing.

Which is aka for
MyWindowsService.exe /install
MyWindowsService.exe /uninstall

Ignore the msmq stuff, and focus on #1.

I found that by accident, and that is my goto windows service installer
method now.

Shout out to Peter (again) for that one.

...
"Rogelio" <Ro*****@discussions.microsoft.comwrote in message
news:6E**********************************@microsof t.com...
here's my problem: I have an obfuscated, compiled .exe , that is a windows
service, and I need it to install using a setup project. since its already
compiled, I can't just go to "custom actions" and add primary output from
the
service. my setup project doesnt see it. so how the heck do I do it?

I was thinking of using a DOS .bat file that uses sc.exe or
installutil.exe,
but I am still having trouble making it work. anyone got a tutorial or
something. that would be awwesome. thanks.

Mar 25 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by raghavendra | last post: by
2 posts views Thread by Fan Wang | last post: by
3 posts views Thread by Chad Smith | last post: by
NeoPa
reply views Thread by NeoPa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.