Old 20th February 2007, 12:30   #1
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
Windows 2003 Server & Services

Hi,

I use Sunjammer Dll for controlling access to Windows services:
http://nsis.sourceforge.net/How_do_I_start/stop/create/remove/check_a_service

However there seems to be compatability issues with Windows 2003 Server

Any ideas??

Nniol
Nniol is offline   Reply With Quote
Old 20th February 2007, 12:31   #2
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
Dll HTML Link

http://nsis.sourceforge.net/How_do_I_start/stop/create/remove/check_a_service
Nniol is offline   Reply With Quote
Old 20th February 2007, 12:33   #3
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
nsis.sourceforge.net/How_do_I_start/stop/create/remove/check_a_service
Nniol is offline   Reply With Quote
Old 20th February 2007, 20:06   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Untick "Automatically parse URLs" when you post and the URLs will not be hidden.

As for the problem itself, what exactly do you mean by compatability issues and do the other solutions exhibit the same behavior?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 22nd February 2007, 07:57   #5
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
With some versions of WIndows 2003 Server it works, and with others it doesn't......

But only on 2003, just wondering if Microsoft have changed their code or something



NNiol
Nniol is offline   Reply With Quote
Old 23rd February 2007, 10:48   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
And what exactly do you mean by not working? Is the service created but not started? Does it crash when creating the service? Does it set the wrong name? And what about the other available solutions for service creation?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd February 2007, 10:54   #7
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
it is querying whether a service exists...
On all other computer it returns that the service installed by installer A is there, but on Windows 2003 the same servie returns not present
Nniol is offline   Reply With Quote
Old 23rd February 2007, 11:00   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Nniol, I can't help you unless you start giving me some more details. What is querying whether a service exists? What about other methods of service creation?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd February 2007, 11:15   #9
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
The problem is within the DLL, the DLL runs fine and doesn't crash it just returns a wrong result...

The service is started and running. The call from within NSIS is:
services::IsServiceInstalled "$ServiceKeyName"

Where $ServiceKeyname is
StrCpy $ServiceKeyName "Office Document Server"

ON all other servers this works fine and returns Yes if installed and no otherwise, however on Windows 2003 it no even if the service is there.
Nniol is offline   Reply With Quote
Old 23rd February 2007, 11:21   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
And how is the service created?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd February 2007, 11:40   #11
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
From a Windows executable
something like

ODSServer.exe -install
Nniol is offline   Reply With Quote
Old 23rd February 2007, 11:42   #12
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Are you sure it doesn't use another name on Windows 2003 or different set of privileges? It's possible, though unlikely, that it refuses the query privilege from some users.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd February 2007, 11:50   #13
Nniol
Junior Member
 
Join Date: Oct 2006
Posts: 26
OK...

Will ask the App. Devs about this,

Thank you
Nniol is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not 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

Forum Jump