PDA

View Full Version : Installation of IPDriver



NewsArchive
08-06-2009, 01:07 PM
On 30/11/08 Chuck T wrote

"I use setupbuilder to do this - install and start the IPREQ
service."

In SetupBuilder I was using "Run Program" to run ipreq.exe -u to
uninstall before upgrading and ipreq -i to install the program after
the upgrade is finished. Then the user can use IPSRVMGR to stop and
start the service.

I am now trying to use "Edit Service" to initailly "Stop Service" and
"Remove Service" before upgrading and "Create Service" and "Start
Service" when that is finished.

But IPSRVMGR then reports that the service is not running, althought my
main program runs quite happily and the service IS in fact running.

I can get the user to run ipreq -u to stop the service.

Should I care and does it matter, or am I doing something wrong?

Dermot

NewsArchive
08-06-2009, 01:07 PM
I have discovered more.

If I use Setupbuilder to make the service run then neither ipreq.exe -u
nor IPSRVMGR stop it.

This means that I have no way to stop the service except to use Process
Explorer or Task Manager and no way to start it except by re-boot, and
re-boot of a large system server is difficult. (If I use IPSRVMGR to
start it I think I get two running on next re-boot)

Am I missing something or is there a problem with my naming of the
service started by Setupbuilder?

Dermot

NewsArchive
08-06-2009, 01:08 PM
In the SetupBuilder script manager I do this;

before installing files in the [create folders] section

1. using EditService - stop service SoftVelocity IP Data Server
2. using EditService - remove service SoftVelocity IP Data Server
3. using DeleteFile - delete ipreq.exe

These three steps are taken before installing files. I re-install IPREQ.EXE
with each install.

After files are installed in the [modify system] section

1. using EditService - remove service SoftVelocity IP Data Server - just as
a precaution in case it was not removed prior to file install
2. using EditService - create service SoftVelocity IP Data Server
3. using EditService - start service SoftVelocity IP Data Server

This works fine and does not affect the IP service manager in anyway - it
still works normally.

Hope this helps,

Chuck

NewsArchive
08-06-2009, 01:08 PM
I did almost exactly this, using EditService also after your previous
comment and looking into SetupBuilder.

But then the problem is that nothing except Process Explorer or Task
Manager can stop the service (difficult to explain to a user over the
phone). I then have to start it in a different mode/name by using
IPSRVMGR. Then the later upgrade installation cannot stop it with
StopService ...

But perhaps I have different names that the two processes get and thus
they cannot be "seen" by each other. But what are the "correct" names
that I should use in Setupbuilder that IPSRVMGR will then "see"?

Problems, problems

Dermot

NewsArchive
08-06-2009, 01:08 PM
The name to use in SetupBuilder to stop the service is the same name that
the service is installed with - "SoftVelocity IP Data Server"

I did have a problem on occasion stopping the service on certain versions of
Windows - the service would not stop immediately on request from
Setupbuilder. I created a loop in Setupbuilder and checked for the running
program ipreq.exe with each iteration of the loop and if it was still
running I ran the Setubuilder code to terminate the running of the .exe. It
is was not running then I broke out of the loop. I did find a few instances
where Windows reported the .exe was not running even though task manager
showed it to be running - in this case, staying in the loop for a few extra
seconds insured the .exe was terminated. Some versions of Windows appear to
lag behind what they think is running as a service and what is actually
running.

Chuck

NewsArchive
08-08-2009, 01:14 AM
You are a genius Chuck - thanks very much - it worked. I suspected it
was all in a name, but could not find out what the name was.

How did you find the name? ProcessExplorer shows the name as "Clarion
IP Service Requester" (I did see the correct name when you install and
it tells you it is installed but didn't notice it)

Dermot



Chuck presented the following explanation :
> The name to use in SetupBuilder to stop the service is the same name that the
> service is installed with - "SoftVelocity IP Data Server"
>

NewsArchive
08-08-2009, 01:15 AM
Dermot,

To find the name of any service open the service manager in Windows. Control
Panel > Administrative Tools > Services. Happy to help.

Chuck

NewsArchive
08-08-2009, 01:15 AM
If I go into Services it shows the name as "Clarion IP Service
Requester" which is what I tried and of course it didn't work. The
ONLY place where I have found the "correct" name is when you install
the service using IPSRVMGR and it shows a message with the name on it.
I'm a bit confused, but thanks to you it is working over my confusion
<g>.

I think this is important for the use of the IPDriver and I will write
a "tip" for ClarionMag.

Dermot

NewsArchive
08-08-2009, 01:16 AM
Dermot,

When the IP service manager is used to install the service it uses the name
"SoftVelocity IP Data Server". If you use another means to install the
service, such as SetupBuilder, you can give the service any name you want.
Is it possible this is what happened in your case?

CHuck

NewsArchive
08-08-2009, 01:16 AM
Yes - that is exactly what happened, but now I have made SetupBuilder
name it "SoftVelocity IP Data Server" and both the "RemoveService" etc.
and IPSRVMGR can handle it in all the ways that I need.

But if you look at Services, nowhere is the name "SoftVelocity IP Data
Server" used. Only appears as you install with IPSRVMGR.

Dermot