我使用Sharpdevelop作为安装程序,事实上我已经安装了我的文件
的 C:\Program Files
但我的问题是我需要在特定路径中安装所有文件:
例如 :
我想安装它:
的 C:\Program Files (x86)\Sparx Systems\EA\MyFolder
必须在此路径中安装
我在Files.wxs中做了一些配置,如:
<DirectoryRef Id="TARGETDIR">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="INSTALLDIR" Name="xchangeTools">
....
....
....
</Directory>
</Directory>
</DirectoryRef>
所以我需要一些脚本或代码来帮助我检索Sparx Systems Directory的相对路径, 我希望这很清楚, 感谢
答案 0 :(得分:1)
可以从注册表项值HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\Install Path
检索Enterprise Architect的安装位置。