Author Topic: Run HFS as a Windows Service  (Read 42858 times)

0 Members and 1 Guest are viewing this topic.

Offline parade

  • Tireless poster
  • ****
  • Posts: 138
    • View Profile
Re: Run HFS as a Windows Service
« Reply #15 on: February 13, 2008, 11:20:04 AM »
Hi,

I tried hfs2service on an Windows XP HómeSystem and I get an error message on start.
Is there a problem with the home-edition and hfs2service or is there a problem with running programs as service in the home-edition?

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: Run HFS as a Windows Service
« Reply #16 on: February 14, 2008, 04:47:17 AM »
  Fixing “The application failed to initialize properly (0xc0000135)”

When attempting to run Microsoft .Net based applications, you may get the following error on startup:

    The application failed to initialize properly (0xc0000135)

The cause of this error is that the Microsoft .Net framework is not installed or is damaged in some way. Therefore applications will fail to launch.

To fix this error you can run Windows Update and find the Microsoft .Net framework update to install. Alternatively, you can download the Microsoft .Net Framework directly from Microsoft.

    * Microsoft .Net 1.1
    * Microsoft .Net 2.0
    * Microsoft .Net 3.0
    * Microsoft .Net 3.5
<<LeDuFe>>

Offline parade

  • Tireless poster
  • ****
  • Posts: 138
    • View Profile
Re: Run HFS as a Windows Service
« Reply #17 on: February 17, 2008, 08:08:00 AM »
The cause of this error is that the Microsoft .Net framework is not installed or is damaged in some way. Therefore applications will fail to launch.
Thank you ledufe.
I really forgot to install .Net framework on this special PC.

Another question:
Do I have to reinstall the service everytime there is a new HFS-Build?

Offline MarkV

  • Insane poster
  • *****
  • Posts: 745
    • View Profile
Re: Run HFS as a Windows Service
« Reply #18 on: February 17, 2008, 10:25:57 AM »
Just overwrite the old HFS.exe with the new one. HFS itself isn't aware of any service installation.
http://worldipv6launch.org - The world is different now.

Offline ledufe

  • Tireless poster
  • ****
  • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Re: Run HFS as a Windows Service
« Reply #19 on: February 17, 2008, 11:03:37 AM »
re-install?
no
just remember to STOP the service before replace the exe file(HFS.exe)

<<LeDuFe>>

Offline H4nd0

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
    • FireDaemon: Run Any Application As A Windows Service
Re: Run HFS as a Windows Service
« Reply #20 on: April 02, 2008, 07:03:10 PM »
Hi guys,

We have had several requests re: HFS as a service. Here's our post on the subject:

http://forums.firedaemon.com/viewtopic.php?t=1426

Cheers,

James

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12846
    • View Profile
Re: Run HFS as a Windows Service
« Reply #21 on: April 02, 2008, 07:42:29 PM »
great

Offline Tuskenraider

  • Experienced poster
  • ***
  • Posts: 74
    • View Profile
Re: Run HFS as a Windows Service
« Reply #22 on: May 13, 2009, 07:32:51 PM »
ive been gone a long time.... but i just wanted to say... im very glad that ive come back to HFS...   i have a windows home server....  it has a built in webserver...and well it sucks.... HFS is the cats meow...   thank you rejetto for a great product...and Ledufe  thanks for your work on the service side... with out you guys....  id have to have a microshaft home website... 

thanks again


tusken
pfffssshhh i dont need a signature...

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12846
    • View Profile
Re: Run HFS as a Windows Service
« Reply #23 on: May 14, 2009, 08:02:26 AM »
nice to see you again  :)
possibilities are quickly expanding here thanks to scripting capabilities

MikeBiasin problem moved to http://www.rejetto.com/forum/index.php?topic=6966.0
« Last Edit: May 14, 2009, 08:04:08 AM by rejetto »

Offline luca69

  • Experienced poster
  • ***
  • Posts: 95
    • View Profile
Re: Run HFS as a Windows Service
« Reply #24 on: March 19, 2010, 12:16:50 PM »
Hi all,
I successfully installed HFS as a service using Any2Service ^__^ It is very simple and works fine.

Thanks Rejetto for this great tool!
Life is what happens to you while you are busy making other plans

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 776
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: Run HFS as a Windows Service
« Reply #25 on: June 14, 2014, 02:19:21 PM »
I don't understand your issues, if you want "hfs" to startup for any user, then put it into the "all users" startup folder....

---
Your personal startup folder should be C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

The All Users start up folder should be C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup.
----

Or use some other programs or even the suggested... windows 2000 program tool to make it a service...
http://support.microsoft.com/kb/137890
http://support.microsoft.com/kb/137890?wa=wsignin1.0

http://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/
---

(Looking for this stick TS, thought that issues on theses have been resolved...
« Last Edit: February 04, 2015, 05:49:26 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12846
    • View Profile
Re: Run HFS as a Windows Service
« Reply #26 on: June 16, 2014, 08:31:52 PM »
services don't start FOR every users, but ONCE, before the users

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 776
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: Run HFS as a Windows Service
« Reply #27 on: June 17, 2014, 12:57:03 AM »
services don't start FOR every users, but ONCE, before the users

Rejetto, i don't understand your sentences...

Windows booting process:
http://resources.infosecinstitute.com/windows-booting-process/
see pic...

services run behind scenes in the background (usual in task manger as svhost....)
This happens(services begin to run) right at or just after the program winlogon.exe is executed...

upon user logon, item with in the startup folder begin to run
either by the selected user or by "any" user depending on which folder you put the program in...
(see previous post..)

if you want the program to run with no user logged in and/or at the user login screen, then you can use
INSTSRV.EXE which is a Microsoft program within the windows 2000 nt resource kit...
To MAKE IT A SERVICE...

so when you say:
quote:
services don't start FOR every users, but ONCE, before the users

Define-ing "FOR" every user, you have me puzzled...
followed by "Once"

Are you defining the boot/startup process to make the program run?
or
Saying that this is not possible???

Please define...
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 776
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: Run HFS as a Windows Service
« Reply #28 on: June 17, 2014, 01:56:25 AM »
other wise you can add the items to your startup folder user windows:
(super)WIdnows key + "r"
run command:
control userspassword2

have a user auto login
have a startup script (run once) to lock the account, thereby
gives your hfs loaded and brings you back to the login screen...

login script:
Its been a while, looing through my old scripts...
---batch/run comand that locks the current user....
rundll32.exe user32.dll,LockWorkStation
----

info to edit you script:
http://social.technet.microsoft.com/Forums/windows/en-US/64c21a89-8e04-4031-b0d7-dc0355e39590/logging-out-locked-accounts-after-a-period-of-time?forum=w7itprosecurity

--what i have done in the past was make a startup batch script and add programs to that script
I added that to my webroot user  startup folder (that way if i have multiple users) that any one who logs in will not have acess to the server running...

I would have a "runonce" script in the programs that way when i the machine is restarted would log in and lock the account...

acomplished either by startup folder/group policys/ registry entries:
After a user has successfully logged into the machine, winlogon does the following:

http://en.wikipedia.org/wiki/Windows_startup_process#Windows_NT

User and Computer Group Policy settings are applied.

Startup programs are run from the following locations:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\Run
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
All Users ProfilePath\Start Menu\Programs\Startup\ (this path is localized on non-English versions of Windows)
Current User ProfilePath\Start Menu\Programs\Startup\ (this path is localized on non-English versions of Windows)
« Last Edit: June 17, 2014, 02:02:43 AM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12846
    • View Profile
Re: Run HFS as a Windows Service
« Reply #29 on: June 29, 2014, 08:22:32 PM »
Rejetto, i don't understand your sentences...

"for every user" as "one each".
just specifying a difference between the "all users" and the services: that a service is one and for all users.