Jump to content

Aut2Exe Error in Expression after compilation


Fran
 Share

Recommended Posts

Hi there,

I have a script that needs to compile another script... I've done this before without any problems. But this time, even though it compiles it, when I run the final exe it gives me the error "Error in Expression". When I compile the script normally (from within Scite) it works fine.

The code I use to compile my script.

$installappDir = @WorkingDir & '\RapidStudio Install Downloader'
$Source_File = $installappDir & "\InstallDownloader.au3"
$Target_File = @ScriptDir & "\_tmp\" & "InstallDownloader_" & $labcode[$i] & ".exe"
$Icon_File = @WorkingDir & "\_resources\images\App_installer.ico"
$command1 = '"' & @WorkingDir & '\_resources\Aut2Exe\Aut2exe.exe"' & " /in " & '"' & $Source_File & '"' & " /out " & '"' & $Target_File & '"' & " /icon " & '"' & $Icon_File & '"'
RunWait(@ComSpec & " /c " & '"' & $command1 & '"')
Edited by Fran
Link to comment
Share on other sites

Hi Fran,

Maybe you want to the RunWait() to:

RunWait(@ComSpec & " /c " & "'" & $command1 & "'")

If I run your original code with a ConsoleWrite instead of RunWait it gives me sth like:

C:\WINDOWS\system32\cmd.exe /c ""C:\Programme\AutoIt3\Example...

Regards,

Hannes

:)

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
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...