一些C#应用程序 [英] some c# application

查看:109
本文介绍了一些C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我正在创建一个桌面应用程序,并且肯定是在我部署此应用程序时创建的,因此它将是setup.exe.我想要的是在该设置中添加一个选项,以便该应用程序自动在Windows的开头启动.有人可以告诉我有关该文章的任何文章或某些源代码链接吗?
在此先感谢

hi!
i am creating a desktop app, and definitely when i deploy this app, so it will be a setup.exe. what i want is to put an option in that setup so that the app automatically start at the start of windows.can somebody tells me about any article or some source code link to that i get a better idea from that.
thanks in advance

推荐答案

为了使程序自动为所有用户启动,您需要在C:\ Documents and Settings \ All Users中放置应用程序的快捷方式\\开始菜单\程序\启动\.
In order to make a program automatically start for all users you need to place a shortcut to your application in C:\Documents and Settings\All Users\Start Menu\Programs\Startup\.


那不是一个好主意. 在Windows启动时"(而不是在用户登录时)意味着这将由Windows服务而不是桌面应用程序提供.

这两种应用程序的工作方式互不相同,并且当用户在Windows 7及更高版本下登录时,Windows服务不再欺骗建立用户界面.
That''s not a good idea. "At Windows start", not at user logon, means that this would have by a Windows Service, not a desktop app.

Those two app types are work very different from each other and a Windows Service can no longer cheat putting up a user interface when a user is logged in under Windows 7 and above.




使用安装盾来准备设置,您可以设置选项以通过编码或任何其他方式自动启动.exe.我知道这里有设施,但是找不到完美的方法.

谢谢.
Hi,

Using install shield to prepare your setup in that you can set option to start .exe automatically through coding or any other way. This facility is there i know but cant have the perfect way so search for it.

Thanks.


这篇关于一些C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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