Wix安装程序没有选择安装路径

时间:2018-01-29 17:07:20

标签: wix

我是WIX的新手,只是试图调试问题。 我有一个安装路径的文本框,但是当用户选择新的安装目录时,<DirectoryRef Id="INSTALLDIR"> <Component Id="cmpOnlineSupport.url" Guid="{somethingHere}"> <File Id="filOnlineSupport.url" Source="$(var.ResourcesDir)\Online Support.url" KeyPath="yes"/> </Component> </DirectoryRef> 没有选择它并且不会在该路径中安装它。

我应该研究哪些方面?

以下是我看到的Bundle中的内容:

$file = "file-path-to-json-ld";
$string = file_get_contents($file); // pulls the file
$json = json_decode($string, true); //creates a searchable array

var_dump($json); // just to see what elements and values are in the decoded array

$json['element-name-in-json-ld'] = "new-value-for-element";  //change any value you like

$updatedString = json_encode($json, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);  //re-encode backing into json

file_put_contents($file, $updatedString);  // put file back

0 个答案:

没有答案
相关问题