Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何向安装程序添加默认路径(例如 C:\Program Files...)。(我的意思是一个硬编码的变量,例如,它。)
提前谢谢大家...
您可以将 设置$INSTDIR为任意值:
$INSTDIR
StrCpy $INSTDIR "c:\program files\my folder"
不必将某些字符串复制到 $INSTDIR。
你可以简单地使用这个:
; The default installation directory InstallDir "C:\Program Files\my_sw"