如何使用INNO设置向启动添加构建的exe? [英] How to add a builded exe to startup using INNO setup?
问题描述
如何使用INNO设置将exe添加到启动文件夹?
我尝试过:
i在我的桌面上创建了exe的快捷方式,并使用INNO Setup将快捷方式复制到启动时但是当操作系统更改时(win7到WINXP)我的文件夹位置
(WIN7-> C:\ProgramData \ Microsoft \ Windows \Start Menu \Programs \Startup
WINXP-> C:\ Document and Settings \ All Users \Start Menu \Programs \Startup)
也会改变,所以exe无法复制。所以我想知道有没有任何常见的启动路径,它独立于OS(WIN7或XP) )。
how to add a exe to the startup folder using the INNO setup?
What I have tried:
i have created a shortcut to exe on my desktop and copied the shortcut to the startup with INNO Setup but when the OS changes(win7 to WINXP) my folder location
(WIN7->C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
WINXP->C:\Documents and Settings\All Users\Start Menu\Programs\Startup)
also changes so the exe could not be copied.so i want to know is there any common path for startup which is indepenedent of OS(WIN7 or XP).
推荐答案
使用shell文件夹常量 {commonstartup}
,如记录在其中 [ ^ ]。
Use the shell folder constant {commonstartup}
, as documented here[^].
这篇关于如何使用INNO设置向启动添加构建的exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!