Hi all,

I have been working on deploying PowerOff (http://users.telenet.be/jbosman/applications.html) to all of our systems so that I can have them shutdown at 5:30 pm everyday to save power. Obviously it would be nice if people would just think to shutdown their systems before leaving for the day but it just doesn't happen. I have tried quite a few different methods to try to deploy it. The app gets copied to C:\windows and I have tried two different methods to set the settings and create the service but no matter what I do the service just doesn't get created. The settings get set in the registry just fine though. All my users are restricted and so I have the apps deployed as a system service, either by means of an msi package or an AOT/AXT template (snapshot). Any thoughts on why the service doesn't get created?

One of the methods I tried was having a batch file run after poweroff.exe was copied to C:\windows to set the settings and create the service. Here is the contents of that batch file:

C:\windows\poweroff -warn -warntime 300 -msg "The computer will shutdown in 5 minutes. To stop the shutdown click the Cancel button but please remember to turn off your computer before you leave." -playsound -soundfile "C:\WINDOWS\Media\Windows XP Critical Stop.wav" -force -scheduled -time 17:30 -days m,t,w,th,f,s,su -notray -create_service

Any ideas or suggestions would be great!

- Petaris
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Sorry to reply to myself but I got this figured out with the help of a friend. It seems that it is installing just fine but a reboot is necessary to start the service. If anyone knows a way to start the service without the reboot that would be great! :)

Answered 01/07/2009 by: Petaris
Senior Yellow Belt

Please log in to comment
Hi Petaris

When you install your app using MSI, then you can configure the service to directly start after the installation using the ServiceControl table.

Add your service and set the 'Event' to 161 for example (which starts the service after install as well as stopps and removes the service during uninstall).

Hope this helps.

Answered 01/07/2009 by: rpfenninger
Second Degree Green Belt

Please log in to comment
Thanks for the reply rpfenninger! :)

I will give that a try, it would certainly make things easier. :)
Answered 01/12/2009 by: Petaris
Senior Yellow Belt

Please log in to comment