Jump to content

error parsing function call(not those question asked before)


 Share

Go to solution Solved by BrewManNH,

Recommended Posts

Hello guys,

I am try to install DLP from Symantec and config some setting by autoit, but where it run it, it just pop out the message

Line 5 (File "C:Temp380 - sccm_CLP_DLP12.5DLP1250_x86x64.exe"):

Error: Error parsing function call.

#NoTrayIcon
#RequireAdmin
;#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
;#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
;#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Opt("TrayIconHide", 1)
If (@OSArch="X86") Then 
   ShellExecuteWait("msiexec.exe", "/uninstall {2AF3B399-42A5-42bd-A5E0-72B657110363} /q UNINSTALLPASSWORD="**********"", "", "open")
   ShellExecuteWait("uninstall_agent_1161.bat", "", "", "open")     
   ShellExecuteWait("x86\install_agent_1250.bat","","", "open")
Else
   ShellExecuteWait("msiexec.exe", "/uninstall {2AF3B399-42A5-42bd-A5E0-72B657110363} /q UNINSTALLPASSWORD="**********"", "", "open")
   ShellExecuteWait("uninstall_agent64_1161.bat", "", "", "open")
   ShellExecuteWait("x64\install_agent_1250.bat","","", "open")
EndIf
Exit 0

Here is what the whole script is, I have hidden the password for security reason.

I just can't understand why error occur in a commented line.

I have tried to fix it but the error still exist, just the different of the error line

I have tried to install programs with autoit several times before and this is the first I meet this error.

I have tried to look for it in the forum but they all look different with this.

Can anyone point out what wrong with my coding?

P.S. : Since the program is used to help to distribute program in SCCM, so telling me that install the program directly without using Autoit is meaningless. Also, the bat file is used to input some setting and password that are required while installing. 

Link to comment
Share on other sites

  • Solution

You should surround the strings with single quotes instead of double quotes like you have now.

; this line
ShellExecuteWait("msiexec.exe", "/uninstall {2AF3B399-42A5-42bd-A5E0-72B657110363} /q UNINSTALLPASSWORD="**********"", "", "open")
; should look like this
 ShellExecuteWait("msiexec.exe", '/uninstall {2AF3B399-42A5-42bd-A5E0-72B657110363} /q UNINSTALLPASSWORD="**********"', "", "open")

Also, don't compile the scripts until you know they're working, this one probably wouldn't run from SciTE as written.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...