Setup.lst 文件中的路径参数宏

Setup.lst 文件中的Path 参数表示文件将被安装到的位置。这个参数所使用的值可以是一个实际的路径,也可以是一个表示用户所指定的路径的宏。下表列出了在安装过程中可以使用的宏。

在此目录安装文件 在此段有效
$(WinSysPath)
  • \Windows\System (Windows 95 或更新版本)

  • \Winnt\System32 (Windows NT)
Setup1 Files 及 Bootstrap Files
$(WinSysPathSysFile)
  • \Windows\System (Windows 95 或更新版本)

    该文件将作为系统文件安装,当删除应用程序时这些文件不会被删除。

  • \Winnt\System32 (Windows NT)
只在 Setup1 Files 段有效
$(WinPath)
  • \Windows (Windows 95 或更新版本)

  • \Winnt (Windows NT)
Setup1 Files 及
BootStrap Files
$(AppPath) 由用户指定的应用程序目录,或在 Setup 部分指定的 DefaultDir 值。 只在 Setup1 Files 段有效
$(AppPath)\Samples \Samples,位于应用程序目录之下。 只在 Setup1 Files 段有效
\path (for example, c:\) path 所确定的目录(建议不使用)。 只在 Setup1 Files 段有效
$(CommonFiles) \Program Files\Common Files\

通常与子目录结合使用,如$(CommonFiles)\My Company\My Application。

只在 Setup1 Files 段有效
$(CommonFilesSys) $(CommonFiles)\System 只在 Setup1 Files 段有效
$(ProgramFiles) \Program Files 只在 Setup1 Files 段有效