| | |
| | | component.addOperation("Execute", "@TargetDir@/mbwatch.exe", "start", ""); |
| | | |
| | | } |
| | | |
| | | console.log(systemInfo.kernelType ); |
| | | console.log("wwweeew"); |
| | | if(systemInfo.kernelType === "linux"){ |
| | | this.operationForLinux(); |
| | | |
| | |
| | | var widget = gui.pageWidgetByObjectName("DynamicTargetWidget"); |
| | | if (widget != null) { |
| | | var dir = widget.targetDirectory.text; |
| | | if (installer.fileExists(dir) && installer.fileExists(dir + "/mbc.exe")) { |
| | | var appName = dir; |
| | | if (systemInfo.productType === "windows"){ |
| | | appName += "/mbc.exe" |
| | | }else{ |
| | | appName += "/mbc" |
| | | } |
| | | if (installer.fileExists(dir) && installer.fileExists(appName)) { |
| | | widget.warning.setText("<p style=\"color: red\">检测到程序已安装,继续将会被覆盖。</p>"); |
| | | } else { |
| | | widget.warning.setText(""); |
| | | } |
| | | |
| | | |
| | | installer.setValue("TargetDir", dir); |
| | | widget.complete = true; |
| | |
| | | if (widget != null) |
| | | widget.complete = checked; |
| | | } |
| | | |
| | | |