Win32::Service is buggy, it only allows you to get the service status and stop or start the service. Everything else I couldn't get to work. Use Win32::Registry to edit the registry entries for startup configuration changes.
> -----Original Message----- > From: Trevor Joerges [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 9:28 AM > To: Bateman, John (IQAUS is); > [EMAIL PROTECTED] > Subject: Re: Disabling a service.. > > > I don't think you can do this with Win32::Service but you can with > Win32::Daemon by Dave Roth. The modules "ConfigureService" > routine allows > you to pass in a hash reference of configuration settings of > which one hash > key can be "start_type" and can have a value of either > SERVICE_AUTO_START, > SERVICE_DEMAND_START or SERVICE_DISABLED. > > Hope this helps. > > Kind regards, > Trevor J. Joerges > -------------------------------------------- > $_=q;rrUSFWPSZK.ZKPFSHFT,rkvtuZbopuifsZQZibdl > rrqpxfsfeZcyZQ,,riuuq://xxx.%.dpn,ru~@%.dpn ,rrr8-) > ;;s;\~;kpfshft;g;s;\%;tfoenjnf;g;y;B-x;A-w;; > s;P;perl;g;s;,;\n;g;s;Y; ;g;s;q;\t;g;print; > -------------------------------------------- > > ----- Original Message ----- > From: "Bateman, John (IQAUS is)" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 01, 2002 1:03 PM > Subject: Disabling a service.. > > > | Hello, > | I know you can use Win32::Service to stop a service but does anyone > | know how to change it's startup type to disabled? Or am I > overlooking > | something. > | > | Thank You, > | John > | _______________________________________________ > | Perl-Win32-Admin mailing list > | [EMAIL PROTECTED] > | To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > | > > > _______________________________________________ > Perl-Win32-Admin mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
