/bundles/itninjaweb/img/Breadcrumb_cap_w.png
It has been a long day and I'm having some trouble with this section within my script. The *** are just for the forum but do have real information in them.

If FSO.FolderExists(Folder_Path) = true then
Wscript.Quit
Else

WshShell.Run "msiexec /i ""****_***.msi"" /qb UPERFORM_COMPANY_NAME="*****, LLC"
UPERFORM_PRODUCT_ID=Q3GUID-M3QW3X-YVU6KU-P6YQQ7-APYFU-A8U4AF REBOOT=ReallySuppress", 1, True

Any help would be great and the ERROR: Expected end of statement.
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Maybe something like this

Dim Quotes
Quotes = Chr(34)

If FSO.FolderExists(Folder_Path) = true then

Wscript.Quit

Else

WshShell.Run "msiexec /i " & "****_***.msi" & " /qb UPERFORM_COMPANY_NAME=" & Quotes & "*****, LLC" & Quotes & " UPERFORM_PRODUCT_ID=Q3GUID-M3QW3X-YVU6KU-P6YQQ7-APYFU-A8U4AF REBOOT=ReallySuppress", 1, True

End If
Answered 02/24/2009 by: Pudsey
Senior Yellow Belt

Please log in to comment
0
Thanks , I will give it a try...
Answered 02/24/2009 by: RoBolton
Senior Yellow Belt

Please log in to comment
0
You'll find your code easier to maintain if you break lengthy lines like this into even smaller chunks. I use this "technique" for things like command lines, SQL statements, stuff like that. Note the use of this forum's CODE tag, BTW:Dim strCommandLine
Const strQuoteMarks = Chr(34)

strCommandLine = ""
strCommandLine = strCommandLine & "msiexec /i"
strCommandLine = strCommandLine & " "
strCommandLine = strCommandLine & "****_***.msi"
strCommandLine = strCommandLine & "/qb"
strCommandLine = strCommandLine & " "
strCommandLine = strCommandLine & "UPERFORM_COMPANY_NAME=" & strQuoteMarks & "*****, LLC" & strQuoteMarks
strCommandLine = strCommandLine & " "
strCommandLine = strCommandLine & "UPERFORM_PRODUCT_ID=Q3GUID-M3QW3X-YVU6KU-P6YQQ7-APYFU-A8U4AF"
strCommandLine = strCommandLine & " "
strCommandLine = strCommandLine & "REBOOT=ReallySuppress"

WshShell.Run strCommandLine, 1, True
Answered 02/25/2009 by: VBScab
Red Belt

Please log in to comment
0
Thanks VBScab, I'm just learning along the way.
Answered 02/25/2009 by: RoBolton
Senior Yellow Belt

Please log in to comment