- 积分
- 6483
- 明经币
- 个
- 注册时间
- 2002-4-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2004-8-7 20:51:00
|
显示全部楼层
如果要实现这个功能,只能用Innosetup本身来写了。在我的这个通用安装程序中实现比较费事,需要我修改程序,定制太复杂就不是我的目的了。这个安装程序只是提供了大部分很常用的AutoCAD二次开发程序安装中可能会碰到的情况处理。并不是一个专业的通用的安装程序。你说的这种要求对于大部分二次开发的AutoCAD程序来说可能比较少见吧?
在InnoSetup中上述要求可以用常量表示。
Shell Folder Constants Inno Setup supports another set of directory constants, referred to as shell folder constants. They can be used in the same way as the other directory constants. The "user" constants below refer to the currently logged in user's profile. "common" constants refer to the All Users profile. Except where otherwise noted, shell folder constants work on all versions of Windows that Inno Setup supports, including Windows 95 and NT 4.0.
* = The "common" form of this constant is mapped to the "user" form if the logged-in user lacks administrative privileges, or if the operating system is Windows 95/98/Me. {group} The path to the Start Menu folder, as selected by the user on Setup's Select Start Menu Folder wizard page. On Windows NT/2000/XP, this folder is always created under the All Users profile unless the user installing the application does not have administrative privileges, in which case it is created on the user's profile.
{localappdata} The path to the local (nonroaming) Application Data folder. {sendto} The path to the current user's Send To folder. (There is no common Send To folder.) {userappdata} & {commonappdata}
The path to the Application Data folder. {userdesktop} & {commondesktop} * The path to the desktop folder. {userdocs} & {commondocs} The path to the My Documents folder (or on NT 4.0, the Personal folder).
{userfavorites} & {commonfavorites} *
The path to the Favorites folder. Usage of these constants requires a MinVersion setting of at least " 4.1, 4". Only Windows 2000 and later supports {commonfavorites}; if used on previous Windows versions, it will translate to the same directory as {userfavorites}. {userprograms} & {commonprograms} * The path to the Programs folder on the Start Menu. {userstartmenu} & {commonstartmenu} *
The path to the top level of the Start Menu.
{userstartup} & {commonstartup} * The path to the Startup folder on the Start Menu. {usertemplates} & {commontemplates} * The path to the Templates folder. Only Windows 2000 and later supports {commontemplates}; if used on previous Windows versions, it will translate to the same directory as {usertemplates}. |
|