Jump to content

Recommended Posts

Posted (edited)

Trying to run this autoit script. It's supposed to automatically remove Adobe Acrobat Standard in silent mode. However, getting a "error parsing function call". Forgive me for this is my first actually script created by myself.

Thanks.

ProgressOn("Adobe Reader Fix")

 For $i = 0 To 100
    ProgressSet($i)

Next

Sleep 1000

Local $sUserName = "username"
Local $sPassword = "password"

ProgressSet(20, "Uninstalling Adobe Reader")
; Uninstalling Adobe Reader XI in silent mode
RunAsWait($sUserName, @ComputerName, $sPassword, 0, "MsiExec.exe /x{AC76BA86-1033-FFFF-BA7E-000000000006} /q", "", @SW_SHOWDEFAULT)

; End Progress Bar
 ProgressSet(100, "Done!", "Complete")

 Sleep(3000)

 ProgressOff()

Exit

 

Edited by oakie
Posted

Read again the help of ProgressOn().

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

So many errors in your code, please take time to read and learn.  Asking for help in your current situation means you are too lazy to make some effort.  Your code is full of badly written code that Scite tells you about... 

Posted

First of all : I agree with the statements made by @jchd and @Nine

Apart from the syntax errors here are a few hints :

The help for RunAsWait clearly states "Runs an external program under the context of a different user and pauses script execution until the program finishes." .  The progressbar using ProgressOn ... ProgressOff is therefore only a dummy and does not show the progress within the external program (so you can omit this part completely). I'm not 100% sure, but I guess MSIExec has its own progress bar (try /passive). Since I am currently sitting at my private computer, I don't want to check this out ;).

Here's what my crystal ball says (not tested) :

Local $sUserName = "username"
Local $sPassword = "password"
; Uninstalling Adobe Reader XI in silent mode
RunAsWait($sUserName, @ComputerName, $sPassword, 0, "msiexec.exe /passive /x {AC76BA86-1033-FFFF-BA7E-000000000006}", "", @SW_SHOWDEFAULT)

- Check the workingdir parameter in the RunAsWait function.

- Have a look at the parameters of MSIExec.

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

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
  • Recently Browsing   0 members

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