Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
2.0.1, 3.2.0
-
Windows
-
3
-
Qt6 Installer Sprint 9
Description
Attempting to use @TargetDir@ in a windows environment will result in backslashes in the returned string. JavaScript will remove these backslash characters which results in an unusable path for any type of processing. The following code will fail:
Component.prototype.createOperations = function() { component.createOperations(); var res = "@TargetDir@/Qt5.6.0"; // TargetDir = C:\DREAM3D_SDK var replaced = res.replace(/\\/g, "/");// replaced = C:DREAM3D_SDK/Qt5.6.0 component.addOperation("Replace", "@TargetDir@/Qt_HeadlessInstall.js", "DREAM3D_INSTALL_LOCATION", replaced); component.addOperation("Execute", "@TargetDir@/qt-unified-windows-x86-2.0.3-online.exe", "--script", "@TargetDir@/Qt_HeadlessInstall.js"); }