Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows Vista > Windows Vista Administration

Notices

Reply

Windows Service Registration

 

LinkBack Thread Tools Display Modes
Old 02-12-2007, 04:12 PM   #1 (permalink)
Default Windows Service Registration

I created Windows Service in VB 2005.
Using InstallUtil.exe I register it on any machine with Windows XP, Windows
2003 Server without any problem. I even never had to learn that process.
After registration I see a couple of new files in the folder where I have My
Service EXE file (MSFaxListener.exe).
Their names are MSFaxListener.InstallLog and MSFaxListener.InstallState. In
the list of Services I see MSFaxListener service.

I tried to install my service on the machine with Vista Business. DOS window
appears for a portion of second. New files do not appear in MyServices
folder and there is no MSFaxListener service in the list of registered
services.
I checked permissions on MyServices Folder. Everything looks OK.

What am I missing? How do I register Windows Service on Vista machine?

Vovan


vovan
Guest
 
Posts: n/a
Reply With Quote  
Old 02-12-2007, 04:49 PM   #2 (permalink)
Default Re: Windows Service Registration

I was able to register the service by using cmd (run as Administrator). But
due to the number of typed characters (cannot use copy/paste in DOS) and
inconvenience I'm still looking for a simpler way to register my service.
Thank you

Vovan

"vovan" <someone@vovan.com> wrote in message
news:OQF90jsTHHA.1552@TK2MSFTNGP05.phx.gbl...
Quote:
>I created Windows Service in VB 2005.
> Using InstallUtil.exe I register it on any machine with Windows XP,
> Windows 2003 Server without any problem. I even never had to learn that
> process. After registration I see a couple of new files in the folder
> where I have My Service EXE file (MSFaxListener.exe).
> Their names are MSFaxListener.InstallLog and MSFaxListener.InstallState.
> In the list of Services I see MSFaxListener service.
>
> I tried to install my service on the machine with Vista Business. DOS
> window appears for a portion of second. New files do not appear in
> MyServices folder and there is no MSFaxListener service in the list of
> registered services.
> I checked permissions on MyServices Folder. Everything looks OK.
>
> What am I missing? How do I register Windows Service on Vista machine?
>
> Vovan
>
>

vovan
Guest
 
Posts: n/a
Reply With Quote  
Old 02-12-2007, 07:26 PM   #3 (permalink)
Default Re: Windows Service Registration

On Feb 12, 11:49 am, "vovan" <some...@vovan.com> wrote:
Quote:
> I was able to register the service by using cmd (run as Administrator). But
> due to the number of typed characters (cannot use copy/paste in DOS) and
> inconvenience I'm still looking for a simpler way to register my service.
> Thank you
>
> Vovan
>
\
Have you tried using a setup project and Installer object with the
service to get it installed on Vista? I use that for all my setups
rather than using installutil.exe manually but I have not tested any
of them on Vista.

jayeldee
Guest
 
Posts: n/a
Reply With Quote  
Old 02-12-2007, 08:28 PM   #4 (permalink)
Default Re: Windows Service Registration

I spent on this project just several hours awhile ago. I followed the steps
from MS help. My project contains 2 modules - one is my service and another
one is Installer. After I compiled it I copied EXE into the target machine
and used InstallUtil.exe (as MS suggested).
I do not know how to use it with setup project.
Could you please give me some more information
Thank you

Vovan

"jayeldee" <jayeldee@gmail.com> wrote in message
news:1171311968.679827.35300@a75g2000cwd.googlegro ups.com...
Quote:
> On Feb 12, 11:49 am, "vovan" <some...@vovan.com> wrote:
Quote:
>> I was able to register the service by using cmd (run as Administrator).
>> But
>> due to the number of typed characters (cannot use copy/paste in DOS) and
>> inconvenience I'm still looking for a simpler way to register my service.
>> Thank you
>>
>> Vovan
>>
> \
> Have you tried using a setup project and Installer object with the
> service to get it installed on Vista? I use that for all my setups
> rather than using installutil.exe manually but I have not tested any
> of them on Vista.
>

vovan
Guest
 
Posts: n/a
Reply With Quote  
Old 02-12-2007, 10:36 PM   #5 (permalink)
Default Re: Windows Service Registration

Well this is the entry for that topic:

http://msdn2.microsoft.com/en-us/lib...yf(VS.80).aspx

where it talks about installer classes, custom actions etc. However if you
just launch the MSI file, the Installer classes can't install Services
because the custom action code ends up running as a limited user. You will
need to generate and use the setup.exe launcher because that elevates when
it starts and consequently the MSI setup runs elevated.
--
Phil Wilson
[Microsoft MVP Windows Installer]

"vovan" <someone@vovan.com> wrote in message
news:erO2yyuTHHA.5068@TK2MSFTNGP03.phx.gbl...
Quote:
>I spent on this project just several hours awhile ago. I followed the steps
>from MS help. My project contains 2 modules - one is my service and another
>one is Installer. After I compiled it I copied EXE into the target machine
>and used InstallUtil.exe (as MS suggested).
> I do not know how to use it with setup project.
> Could you please give me some more information
> Thank you
>
> Vovan
>
> "jayeldee" <jayeldee@gmail.com> wrote in message
> news:1171311968.679827.35300@a75g2000cwd.googlegro ups.com...
Quote:
>> On Feb 12, 11:49 am, "vovan" <some...@vovan.com> wrote:
Quote:
>>> I was able to register the service by using cmd (run as Administrator).
>>> But
>>> due to the number of typed characters (cannot use copy/paste in DOS) and
>>> inconvenience I'm still looking for a simpler way to register my
>>> service.
>>> Thank you
>>>
>>> Vovan
>>>
>> \
>> Have you tried using a setup project and Installer object with the
>> service to get it installed on Vista? I use that for all my setups
>> rather than using installutil.exe manually but I have not tested any
>> of them on Vista.
>>
>
>

Phil Wilson
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
XP Registration Jupiter Jones [MVP] Windows XP New Users 2 12-17-2003 02:52 PM
Windows XP registration Mat Windows XP Setup 3 09-12-2003 08:13 AM
windows xp re-registration gill Windows XP Accessibility 2 09-08-2003 06:32 PM
COM registration Mike Windows XP Embedded 1 08-07-2003 08:05 PM
windows xp registration lena Windows XP New Users 3 08-05-2003 03:38 PM


All times are GMT. The time now is 04:21 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48