I’m trying to run some commands silently using cmd.exe in a script, but I’m encountering an error related to mismatched or misplaced quotes. Here is the relevant portion of my script:
<code>Filename: "cmd.exe"; Parameters: "/C "{app}ollama.exe create C2F_mistral -f {app}mistral_definition""; Flags: postinstall nowait hidden
Filename: "cmd.exe"; Parameters: "/C "{app}ollama.exe create C2F_phi3 -f {app}phi3_definition""; Flags: postinstall nowait hidden
</code>
<code>Filename: "cmd.exe"; Parameters: "/C "{app}ollama.exe create C2F_mistral -f {app}mistral_definition""; Flags: postinstall nowait hidden
Filename: "cmd.exe"; Parameters: "/C "{app}ollama.exe create C2F_phi3 -f {app}phi3_definition""; Flags: postinstall nowait hidden
</code>
Filename: "cmd.exe"; Parameters: "/C "{app}ollama.exe create C2F_mistral -f {app}mistral_definition""; Flags: postinstall nowait hidden
Filename: "cmd.exe"; Parameters: "/C "{app}ollama.exe create C2F_phi3 -f {app}phi3_definition""; Flags: postinstall nowait hidden
Error Message:
“Line 51: Mismatched or misplaced quotes on parameter “Parameters””
Details:
Objective: I want to run the ollama.exe commands silently without user interaction or visible command windows.
Issue: The script fails with an error about mismatched or misplaced quotes.
Question:
How can I correct the syntax in my script?