Jump to content

Recommended Posts

Posted (edited)
_WinAPI_ShowLastError('%1 %1' & @CRLF

Does work but it only shows %1 %1.  It doesn't show what the value of %1.

I also tried:

AutoItError4.thumb.jpg.a2445a074987ad66993d7bf4f702f54b.jpg

 

Edited by Docfxit
Posted (edited)

Not sure what you mean, the error will be shown below the text you've written for example:

#include <WinAPIError.au3>

Run("Error", "", @SW_HIDE)
_WinAPI_ShowLastError("Line Number: " & @ScriptLineNumber & @CRLF & "Install Latest Version Error", True)

Resulting Window

Quote

 

Line Number: 4
Install Latest Version Error

The system cannot find the file specified

 

 

Edited by Subz
Posted
6 minutes ago, Subz said:

The %1 is what is being returned by the product, I would just use something like:

#include <WinAPIError.au3>

Global $g_sExec = "Error.exe"
Run($g_sExec, "", @SW_HIDE)
_WinAPI_ShowLastError($g_sExec & " returned:", True)

 

That gives me this error:

AutoItError6.jpg.4fa7b68142dc6b55628df64d059a7574.jpg

I don't know what file it can't find.

Posted (edited)

I have changed my RunWait to this:

Quote

RunWait('msiexec.exe /i "C:\Dnload\9xAddons\VNC UltraVnc_1_3_81_X64.msi /loadinf=VNCConfig.ini /props=VNCsetup.reg /silent" /quiet    /qb-')
   

Which doesn't give me any errors but the program doesn't install

So something is wrong with my .msi options.

Edited by Docfxit
Posted

Have you tried using quotes around the path:

RunWait('msiexec.exe /i "C:\Dnload\9xAddons\VNC UltraVnc_1_3_81_X64.msi" /loadinf=VNCConfig.ini /props=VNCsetup.reg /silent /qb-')

Posted
3 minutes ago, Subz said:

Have you tried using quotes around the path:

RunWait('msiexec.exe /i "C:\Dnload\9xAddons\VNC UltraVnc_1_3_81_X64.msi" /loadinf=VNCConfig.ini /props=VNCsetup.reg /silent /qb-')

Yes.  I tried that.  I think the msiexec.exe was looking at the /silent switch and didn't think it was valid. The /silent switch is for the ULTRAVNC install.

Posted (edited)

I removed the space in the file name

For some reason the program isn't installing.

RunWait('msiexec.exe /i "C:\Dnload\9xAddons\VNCUltraVnc_1_3_81_X64.msi /loadinf=VNCConfig.ini /props=VNCsetup.reg /silent" /quiet /qn')

 

Edited by Docfxit

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...