Re: Run on Startup

2009-03-18 Thread Gabriel Genellina
En Wed, 18 Mar 2009 15:13:32 -0300, Mike Driscoll   
escribió:

On Mar 18, 1:09 am, "Gabriel Genellina" 
wrote:

En Tue, 17 Mar 2009 00:16:53 -0200, MRAB   
escribió:
> Ian Mallett wrote:


>>  I'd like to make a program that automatically runs on startup  
(right  

>> after login).  How should I do that?

> Put it in the folder:

> C:\Documents and Settings\\Start Menu\Programs\Startup

Please don't do that, if you care about your users at all, and any of  
them  
might use a non-English version of Windows. Programs that put anything  
in  
the above location (or install themselves into C:\Program Files, or  
things  

like that) are really annoying, and the author is plain stupid.


How is putting your program in "C:\Program Files" stupid? Almost every
program I've ever installed on Windows defaults to that location.


In my PC, almost every program I've ever installed on Windows defaults to  
"C:\Archivos de Programa" instead -- see the difference?


Writing an installer (*and* uninstaller!) that does the right thing isn't  
trivial. Application developers usually can't master all the details  
involved - a "quick and dirty" installer just doesn't work well except in  
the developer's own environment (many things may change: OS version,  
system language, locale, user customization, user permissions, network  
environment...)
I let the experts do the hard work for me - I use InnoSetup (there are  
many other alternatives)


--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


Re: Run on Startup

2009-03-18 Thread Mike Driscoll
On Mar 18, 2:14 pm, Tim Wintle  wrote:
> On Wed, 2009-03-18 at 11:13 -0700, Mike Driscoll wrote:
> > On Mar 18, 1:09 am, "Gabriel Genellina" 
> > > Any decent installer is able to register a program so it runs on startup  
> > > (InnoSetup, by example). Anyway, if you want to it it yourself, 
> > > see:http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx
>
> > > --
> > > Gabriel Genellina
>
> > How is putting your program in "C:\Program Files" stupid? Almost every
> > program I've ever installed on Windows defaults to that location.
> > Putting a link in the Startup folder is kind of silly, I will grant
> > you that. Of course, putting the shortcut there makes it easier for
> > non-techie people to remove it. Otherwise you'll have to hack the
> > registry to stop the startup or run msconfig and stop auto-start
> > there.
>
> The reason is that on non-english language versions it's not called "C:
> \Program Files" - there's a system setting that installers use to know
> the correct place to put applications. You should ask windows where it
> thinks you should put applications, and then put it there.
>
> The "Startup" folder is (I believe) depricated, and I would have guessed
> that it's not called "Startup" in other languages.
>
>
>
> > Mike
> > --
> >http://mail.python.org/mailman/listinfo/python-list

Ah. Well, I would have used Inno Setup for installing purposes anyway.
I think it has an option to find the Program Files directory
correctly. Tim Golden has a good module called winshell that exposes
where most of this is as does wxPython StandardPaths() method.

Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: Run on Startup

2009-03-18 Thread Tim Wintle
On Wed, 2009-03-18 at 11:13 -0700, Mike Driscoll wrote:
> On Mar 18, 1:09 am, "Gabriel Genellina" 
> > Any decent installer is able to register a program so it runs on startup  
> > (InnoSetup, by example). Anyway, if you want to it it yourself, 
> > see:http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx
> >
> > --
> > Gabriel Genellina
> 
> How is putting your program in "C:\Program Files" stupid? Almost every
> program I've ever installed on Windows defaults to that location.
> Putting a link in the Startup folder is kind of silly, I will grant
> you that. Of course, putting the shortcut there makes it easier for
> non-techie people to remove it. Otherwise you'll have to hack the
> registry to stop the startup or run msconfig and stop auto-start
> there.

The reason is that on non-english language versions it's not called "C:
\Program Files" - there's a system setting that installers use to know
the correct place to put applications. You should ask windows where it
thinks you should put applications, and then put it there.

The "Startup" folder is (I believe) depricated, and I would have guessed
that it's not called "Startup" in other languages.

> 
> Mike
> --
> http://mail.python.org/mailman/listinfo/python-list

--
http://mail.python.org/mailman/listinfo/python-list


Re: Run on Startup

2009-03-18 Thread Mike Driscoll
On Mar 18, 1:09 am, "Gabriel Genellina" 
wrote:
> En Tue, 17 Mar 2009 00:16:53 -0200, MRAB   
> escribió:
>
> > Ian Mallett wrote:
> >>  I'd like to make a program that automatically runs on startup (right  
> >> after login).  How should I do that?
>
> > Put it in the folder:
>
> > C:\Documents and Settings\\Start Menu\Programs\Startup
>
> Please don't do that, if you care about your users at all, and any of them  
> might use a non-English version of Windows. Programs that put anything in  
> the above location (or install themselves into C:\Program Files, or things  
> like that) are really annoying, and the author is plain stupid.
>
> Any decent installer is able to register a program so it runs on startup  
> (InnoSetup, by example). Anyway, if you want to it it yourself, 
> see:http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx
>
> --
> Gabriel Genellina

How is putting your program in "C:\Program Files" stupid? Almost every
program I've ever installed on Windows defaults to that location.
Putting a link in the Startup folder is kind of silly, I will grant
you that. Of course, putting the shortcut there makes it easier for
non-techie people to remove it. Otherwise you'll have to hack the
registry to stop the startup or run msconfig and stop auto-start
there.

Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: Run on Startup

2009-03-18 Thread James Matthews
You may also add it to the registry or make it a windows service. Both will
startup.

On Wed, Mar 18, 2009 at 8:09 AM, Gabriel Genellina
wrote:

> En Tue, 17 Mar 2009 00:16:53 -0200, MRAB 
> escribió:
>
>> Ian Mallett wrote:
>>
>>>  I'd like to make a program that automatically runs on startup (right
>>> after login).  How should I do that?
>>>
>>>  Put it in the folder:
>>
>> C:\Documents and Settings\\Start Menu\Programs\Startup
>>
>
> Please don't do that, if you care about your users at all, and any of them
> might use a non-English version of Windows. Programs that put anything in
> the above location (or install themselves into C:\Program Files, or things
> like that) are really annoying, and the author is plain stupid.
>
> Any decent installer is able to register a program so it runs on startup
> (InnoSetup, by example). Anyway, if you want to it it yourself, see:
> http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx
>
> --
> Gabriel Genellina
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/
--
http://mail.python.org/mailman/listinfo/python-list


Re: Run on Startup

2009-03-18 Thread Gabriel Genellina
En Tue, 17 Mar 2009 00:16:53 -0200, MRAB   
escribió:

Ian Mallett wrote:
 I'd like to make a program that automatically runs on startup (right  
after login).  How should I do that?



Put it in the folder:

C:\Documents and Settings\\Start Menu\Programs\Startup


Please don't do that, if you care about your users at all, and any of them  
might use a non-English version of Windows. Programs that put anything in  
the above location (or install themselves into C:\Program Files, or things  
like that) are really annoying, and the author is plain stupid.


Any decent installer is able to register a program so it runs on startup  
(InnoSetup, by example). Anyway, if you want to it it yourself, see:

http://msdn.microsoft.com/en-us/library/bb776426(VS.85).aspx

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list


Re: Run on Startup

2009-03-16 Thread MRAB

Ian Mallett wrote:

Hi,

I'd like to make a program that automatically runs on startup (right 
after login).  How should I do that?



Put it in the folder:

C:\Documents and Settings\\Start Menu\Programs\Startup

The exact path depends on your login/username and I'm assuming that
Windows is installed on drive C.

I'm also assuming that you're using Windows. Chances are that you are
(you didn't say!).
--
http://mail.python.org/mailman/listinfo/python-list


Run on Startup

2009-03-16 Thread Ian Mallett
Hi,

I'd like to make a program that automatically runs on startup (right after
login).  How should I do that?

Thanks,
Ian
--
http://mail.python.org/mailman/listinfo/python-list