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.
使用 .net 的安装项目,我想将我的软件安装到的位置写入注册表,以帮助插件知道主应用程序在哪里。我可以使用某种 %variable% 来代表安装应用程序的文件夹吗?
如果您在文件系统视图中查看应用程序文件夹的属性,它有一个名为“Property”的属性,其值为“TARGETDIR”。您可以在任何其他视图中使用 [TARGETDIR] 来表示所选的安装目录。