Custom shell dependency on IIS

R

René

I have written a custom shell that uses IIS to display a html page.

When XPe launches my shell, the html page URL is not found and hence the
page is not displayed...

But I execute my shell manually then all works well which makes me think
that the problems lies in the order in which the various services are
started up.

Anyone had a similar problem ?

Is it possible to wait for a service or to ensure that the IIS services are
running before the shell is launched?

Thanks
 
K

KM

René,

You will be likely interested in registry entries like [HKLM\SYSTEM\CurrentControlSet\Services\<Your service>],"DependOnService"
(REG_MULTI_SZ) where you can specify your service dependencies.

Of course, you can use sc.exe (from CMD) to set up the dependencies (depend= option).

Search MSDN for more info. Or check this like as an example: http://support.microsoft.com/default.aspx?scid=kb;EN-US;193888

From your application you can always use win32 service API to start (StartService/OpenService) or check a service status
(EnumServicesStatus/QueryServiceStatus). Search MSDN for the APIs to get more info.
 
R

René

This has been very helpful, thanks for the swift response.

I have read the link and related stuff on MSDN and I realise now that I will
need to modify my shell to query the service status before allowing it to
display my html page. The shell is written in C# so I shall use the
ServiceController class to do this.

Thanks again

KM said:
René,

You will be likely interested in registry entries like
[HKLM\SYSTEM\CurrentControlSet\Services\ said:
(REG_MULTI_SZ) where you can specify your service dependencies.

Of course, you can use sc.exe (from CMD) to set up the dependencies (depend= option).

Search MSDN for more info. Or check this like as an example: http://support.microsoft.com/default.aspx?scid=kb;EN-US;193888

From your application you can always use win32 service API to start
(StartService/OpenService) or check a service status
 
R

René

This has been very helpful, thanks for the swift response.

I have read the link and related stuff on MSDN and I realise that I will
need to modify my shell to query the service status before allowing it to
display my html page. The shell is written in C# so I shall use the
ServiceController class to do this.

Thanks again

KM said:
René,

You will be likely interested in registry entries like
[HKLM\SYSTEM\CurrentControlSet\Services\ said:
(REG_MULTI_SZ) where you can specify your service dependencies.

Of course, you can use sc.exe (from CMD) to set up the dependencies (depend= option).

Search MSDN for more info. Or check this like as an example: http://support.microsoft.com/default.aspx?scid=kb;EN-US;193888

From your application you can always use win32 service API to start
(StartService/OpenService) or check a service status
 
K

Kesavan

Rene,

No Way the Custom shell has a dependency on IIS.I had the same
requirement and made the image working.I guess the problem could be
that,there is some kind of resource that is over written by the Custom
component.
Probably the custom shell is not righly calling the exe or the home
page.You might need to check your custom component.

If Ctrl-Alt-Del is working then open the page from the Customs shell
firstly to check whether the Pages are working or not.But thats only
going to give you
a confidence that thngs are working in your custom shell.


Regards,
Kesavan


KM said:
René,

You will be likely interested in registry entries like [HKLM\SYSTEM\CurrentControlSet\Services\<Your service>],"DependOnService"
(REG_MULTI_SZ) where you can specify your service dependencies.

Of course, you can use sc.exe (from CMD) to set up the dependencies (depend= option).

Search MSDN for more info. Or check this like as an example: http://support.microsoft.com/default.aspx?scid=kb;EN-US;193888

From your application you can always use win32 service API to start (StartService/OpenService) or check a service status
(EnumServicesStatus/QueryServiceStatus). Search MSDN for the APIs to get more info.

--
KM,
BSquare Corporation
I have written a custom shell that uses IIS to display a html page.

When XPe launches my shell, the html page URL is not found and hence the
page is not displayed...

But I execute my shell manually then all works well which makes me think
that the problems lies in the order in which the various services are
started up.

Anyone had a similar problem ?

Is it possible to wait for a service or to ensure that the IIS services are
running before the shell is launched?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dependency on IIS? 1
Administrator shell and User shell 4
Service + Custom shell 7
Custom shell 4
Custom shell with a service 1
Java as Custom Shell 1
custom shell questions 1
Dependency problem with FP2007 2

Top