如何在启动电脑时启动我的应用程序 [英] how to start my app when start pc

查看:57
本文介绍了如何在启动电脑时启动我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在启动pc.i工作win app时启动我的应用程序,所以创建win服务,但我不知道如何安装,这些服务让plz给我建议。谢谢,

i want to start my app when start pc.i working win app, so create win service ,but i dont no how can install, these service so plz give me suggestion.thanks,

推荐答案

请参阅:

http://en.wikipedia.org/wiki / Windows_service [ ^ ],

http://msdn.microsoft.com/en-us /library/d56de412%28v=vs.110%29.aspx [ ^ ]。



但是你确切知道你什么时候开始执行你的代码?在计算机供电和显示用户桌面之间有很多阶段。也许你想在用户登录时做点什么?还有什么吗?



我可以推荐一种秘密武器。下载并运行名为Autoruns的SysInternals应用程序:

http:// technet .microsoft.com / zh-cn / sysinternals / bb842062.aspx [ ^ ],

http:// technet .microsoft.com / zh-CN / sysinternals / bb963902 [ ^ ]。



实际上,拥有整个套件是任何软件开发人员必备的。运行;您将看到有多少机会可以自动执行代码。对于每个项目,应用程序将显示位置是系统注册表,可以在其中规定应用程序启动。



-SA
Please see:
http://en.wikipedia.org/wiki/Windows_service[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.110%29.aspx[^].

But do you know exactly when do you want to start execution of your code? There are many phases between powering of your computer and showing of the user's desktop. Maybe you want to do something on user login? Anything else?

I can recommend one "secret weapon". Download and run the SysInternals application called "Autoruns":
http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx[^],
http://technet.microsoft.com/en-us/sysinternals/bb963902[^].

Actually, having the whole suite is a must-have for any software developers. Run it; and you will see how many opportunities are there to make your code executed automatically. For each item, the application will show you the location is system registry, where the application launch can be prescribed.

—SA


您知道Windows服务不能与用户的桌面交互吗?如果您坚持要弹出您的应用,则它不能是服务,而是交互式程序。在启动文件夹中创建一个指向它的链接(类似于milindaSnow的答案,但不要复制它 - 使用符号链接!),或在HKLM或HKCU \Software \ Microoft \ Windows \ CurrentVersion \中添加注册表值运行
Do you know that a Windows Service MUST NOT interact with a user's desktop? If you insist that your app pops up, it must not be a service, but an interactive program. Create a link to it in the startup folder (similar to milindaSnow's answer, but do not copy it - use a symblic link!), or add registry value in HKLM or HKCU \Software\Microsoft\Windows\CurrentVersion\Run


据我了解你需要启动你的Windows应用程序,当你打开你的电脑,是它..

我建议的是,为您的工作应用程序添加一个安装项目,并创建一个.msi安装程序来安装您的应用程序..安装完成后,您可以将已安装的应用程序放入Start> All中的startup文件夹中程序列表。



*添加s设置项目

http://msdn.microsoft.com/en-us/library/cc766795.aspx [ ^ ]



大约需要10分钟所以..

问候。
As I understand You need to start your windows application, as you turn on your PC, is that it..
What I'm suggesting is that, add a "setup Project" to your working application and create a .msi installer to install your application.. once you have installed then you can put the installed application to your "startup" folder which is in your "Start->All Programs" list.

* adding s Setup Project
http://msdn.microsoft.com/en-us/library/cc766795.aspx[^]

It will take around 10 mins to do so..
Regards.


这篇关于如何在启动电脑时启动我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆