Sign in to follow this  
Followers 0
Fran

Aut2Exe Error in Expression after compilation

4 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

Nope... if I change that it doesn't create the exe at all.

Share this post


Link to post
Share on other sites

:) again... it's monday!

The problem was with one of the variables I was updating in the script before compiling it.

Case closed, problem solved.

F

Share this post


Link to post
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
Sign in to follow this  
Followers 0