Announcement

Collapse
No announcement yet.

Parsing Error in 9.5.0.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parsing Error in 9.5.0.0

    Hi,

    I've discovered a parsing error in Setup Factory which affects the editor, when double clicking a specifically formatted action, the action is not correctly parsed, and the Actions Parameter Dialog fails to show the parameters correctly.

    Included below is a sample script, both lines are valid LUA, however the first line does not parse correctly:

    Code:
    -- Double clicking the line below does not correctly parse the parameters into the Action Paramaters Dialog
    result = File.Run("setx.exe", "-m MYVAR \"C:\\THISPATH\\\"", "", SW_MINIMIZE, true);
    
    -- Double clicking the line below Works as expected, and the values are parsed into the Action Paramaters Dialog
    result = File.Run("setx.exe", "-m MYVAR \"C:\\THISPATH\"", "", SW_MINIMIZE, true);

  • #2
    While I see that this syntax is indeed correct, I don't expect that there will be a workaround for this situation. To avoid problems with multiple nested quotes, I suggest that you use brackets or single quotes as the delimiter instead. It may also make your code more readable:

    Code:
    result = File.Run("setx.exe", [[-m MYVAR "C:\\THISPATH\\"]], "", SW_MINIMIZE, true), "");
    
    or
    
    result = File.Run("setx.exe", '-m MYVAR "C:\\THISPATH\\"', "", SW_MINIMIZE, true), "");
    Ulrich

    Comment

    Working...
    X