rejetto forum

Run HFS as a Windows Service

ledufe · 31 · 90303

0 Members and 2 Guests are viewing this topic.

Offline parade

  • Tireless poster
  • ****
    • Posts: 138
    • View Profile
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
  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
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

  • Tireless poster
  • ****
    • Posts: 764
    • View Profile
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-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
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 Tuskenraider

  • Occasional poster
  • *
    • Posts: 74
    • View Profile
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
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
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

  • Occasional poster
  • *
    • Posts: 95
    • View Profile
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

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
services don't start FOR every users, but ONCE, before the users


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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...
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
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.