7 Jun 2007

Launch application at startup

Si vous avez besoin de lancer votre application C# au démarrage du système, ajouter les valeurs suivantes dans la base de registre à la clé HKEY_LOCAL_MACHINE\init:

If you need to launch your C# application at startup, add the following values to your registry to the key HKEY_LOCAL_MACHINE\init:

Launch90="yourApp.exe"
Depend90= 32 00 3C 00



Pour Windows CE, vous pouvez supprimer le shell, en revanche ce n'est pas possible pour Windows Mobile.

For Windows CE, you can remove the shell, on the other hand it is not possible for Windows Mobile.

2 comments:

Anonymous said...

Hi,
It would be nice, if you could provide information on what the value for Depend means? I can see different values on your screenshot.
Thanks.

Fabien Decret said...

Hi,
Thanks for comment.
The launchXX number is used to specify the order things are started in, but you will need to use the Depend values to specify applications that the system must be running before the LaunchXX applications run. Check out this ink : http://msdn2.microsoft.com/en-us/library/ms901773.aspx
For the example : Depend90= 32 00 3C 00 means it depends of Launch50 (32 in hexa) and Launch60 (3C in hexa).

In French, le LaunchXX numéro est utilisé pour spécifier l'ordre de démarrage de votre application, mais vous devrez utiliser la valeur Depend pour spécifier les applications que le système doit lancer avant que le process de l'application de LaunchXX soit
démarré.
Par exemplee : Depend90= 32 00 3C 00 signifie que l'application dépend du process en Launch50 (32 in hexa) et du process en Launch60 (3C in hexa).