Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix 播放应用程序的MSI许可证文件_Wix_Sbt Native Packager - Fatal编程技术网

Wix 播放应用程序的MSI许可证文件

Wix 播放应用程序的MSI许可证文件,wix,sbt-native-packager,Wix,Sbt Native Packager,我有一个正在尝试为其创建MSI的播放应用程序 文档显示我可以像这样设置安装程序对话框的许可证文本; 安装期间显示为产品许可证的(可选)rtf文件。默认为src/windows/License.rtf 我已将其添加到build.sbt文件中作为 wixProductLicense:=“LICENSE//myLicense.rtf” (我试过使用单斜杠和反斜杠-没有变化) 我的play应用程序看起来像 APPROOT |-app |-LICENSE |- myLicense.rtf build

我有一个正在尝试为其创建MSI的播放应用程序

文档显示我可以像这样设置安装程序对话框的许可证文本; 安装期间显示为产品许可证的(可选)rtf文件。默认为src/windows/License.rtf

我已将其添加到build.sbt文件中作为

wixProductLicense:=“LICENSE//myLicense.rtf”

(我试过使用单斜杠和反斜杠-没有变化)

我的play应用程序看起来像

APPROOT
|-app
|-LICENSE
   |- myLicense.rtf
build.sbt
但我得到以下错误

error: type mismatch;  found   : String("LICENSE\\myLicense.rtf") 
required: Option[sbt.File]
(which expands to)  Option[java.io.File]
         wixProductLicense := "LICENSE\\myLicense.rtf",
我也试过了

wixProductLicense:=Some(“LICENSE\myLicense.rtf”)

但是得到同样的错误

默认播放应用程序中没有SRC文件夹/目录

创建路径/文件; /src/windows/License.rtf


当然解决了这个问题-但是我希望避免这个“额外”路径/文件。

错误消息说您使用了错误的类型。您试图将
选项[File]
设置为字符串或字符串的选项,这是一个类型错误

试一试

干杯, 木基

wixProductLicense := Some(baseDirectory.value / "LICENSE" / "myLicense.rtf")