MohanViswanathan Posted April 9, 2020 Share Posted April 9, 2020 Hi all, I am trying to integrate my autoit script into our release pipeline in Azure DevOps and I am facing several issues while doing so. Since Azure DevOps doesn't have an AutoIt plugin, I am forced to copy over the Aut2exe.exe and the au3 scripts to our repository and running the Aut2exe.exe from a command line task in Azure DevOps. Since the script takes about 1 minute to run, I am using a START /WAIT in the command line script like below START /WAIT "Aut2exe.exe" /in "KitBuilderCMD.au3" /out "Kit.exe" /icon "icon.ico" /comp 4 /pack /x86 /gui The problem I am having is not only is the Kit.exe not getting created but the entire process takes only 1 second to run whereas if run the same command in my local computer, it takes about 90 seconds (which is correct) and the Kit.exe is getting created. I also tried without the START /WAIT and gave the exe path directly as follows: "Aut2exe.exe" /in "KitBuilderCMD.au3" /out "Kit.exe" /icon "icon.ico" /comp 4 /pack /x86 /gui With this approach, the script never completes and hangs. I do see that the packing and been done (/pack) because I am getting the following message in the console. Ultimate Packer for eXecutables Copyright (C) 1996 - 2013 UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013 File size Ratio Format Name -------------------- ------ ----------- ----------- 1020928 -> 538112 52.71% win32/pe aut3EF4.tmp.exe Any idea how to make this work is appreciated. Thanks in advance. Link to comment Share on other sites More sharing options...
argumentum Posted April 10, 2020 Share Posted April 10, 2020 2 hours ago, MohanViswanathan said: I do see that the packing and been done (/pack) because ...then don't /pack it. See if it works and report it's success, or failure. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
argumentum Posted April 10, 2020 Share Posted April 10, 2020 (edited) <double posted> Edited April 10, 2020 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
MohanViswanathan Posted April 13, 2020 Author Share Posted April 13, 2020 Quote ...then don't /pack it. See if it works and report it's success, or failure. I ran without /pack. I also ran it with just /in and /out. Still the same results. The exe is not getting created and the task is hung (Its not stopping). Link to comment Share on other sites More sharing options...
Nine Posted April 14, 2020 Share Posted April 14, 2020 Tested on a Win7 comp that does not have AutoIt installed. Made a temp folder, copied aut2exe.exe and upx.exe along with a few scripts. Needed also the #include in there. Started manually the compile without any problem. Made a small script to run the aut2exe.exe and read the stdout, without any problem. So it must be your Azure DevOps environment that creates the problem. Have you been able to compile just a single line script like MsgBox (0,"","Hello") ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
MohanViswanathan Posted April 14, 2020 Author Share Posted April 14, 2020 (edited) On 4/14/2020 at 6:27 AM, Nine said: So it must be your Azure DevOps environment that creates the problem. Have you been able to compile just a single line script like MsgBox (0,"","Hello") ? Yes. I have pretty much narrowed this down to the Azure DevOps having the problem because I can compile and run the scripts in my local system with no problems. I have even tried to compile and run a script with a simple MsgBox (0,"","Hello"). I am still facing the same problem in azure devops Edited April 15, 2020 by MohanViswanathan Link to comment Share on other sites More sharing options...
agivx3 Posted February 12 Share Posted February 12 DId you ever get this working ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now