myk3 Posted February 15, 2013 Share Posted February 15, 2013 (edited) I was running into memory allocation errors when attempting to compile a au3 to exe. After trying everything I could think of I uninstalled and re-installed AutoIT, but this time I didn't install the full version of ScITE. This time the au3 compiled without issues. I then installed the full version of ScITE and it failed again. Why would this occur? Is there anything I can do to still use the full version? Here is an example of the script in question. expandcollapse popup#RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon= #AutoIt3Wrapper_Outfile= #AutoIt3Wrapper_UseUpx=y #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <Constants.au3> #include <File.au3> #include <toast.au3> Global $line, $array, $disc if not FileExists('d:\') Then MsgBox(0,'Error!','System not Supported, Rollup for only. ') exit EndIf If FileExists ("D:\Software\HOTFIX\JAN13_Rollup\") Then MsgBox(0,"Error!","This security update has already been applied to this system") Exit EndIf $VER = FileGetVersion("D:\Common\AdhocQuery.dll") if not StringInStr($ver,"13.01.07") then MsgBox(0,"Error!","This applies to only!") Exit EndIf BlockInput(1) $disc = StringTrimRight(@ScriptName,4) $OSarchitecture = @OSArch FileInstall("updating.bmp", @TempDir & "\updating.bmp" , 1) SplashImageOn("", @TempDir & "\updating.bmp", @DesktopWidth, @DesktopHeight, "", "", 1) _Toast_Show(64,$disc & " ...","Unpacking and Preparing the System for Update") DirRemove("D:\Software\HOTFIX\",1) DirRemove("d:\temp1\", 1) DirRemove("d:\temp2\", 1) sleep(2000) DirCreate("d:\temp1\") DirCreate("d:\temp2\") if @OSVersion = "WIN_7" and @OSArch = "X86" Then ; _Toast_Show(64,$disc & " ...","Unpacking Updates") FileInstall(".\GPs\1E2E\Screensaver\Screensaver.zip","D:\temp1\GP.zip",1) FileInstall(".\Oracle\16042647.zip","D:\16042647.zip",1);.07 DBOracle Patch DirCreate("D:\16042647") RunWait("cmd /c D:\Common\7z.exe x -aoa -oD:\16042647 D:\16042647.zip") FileDelete("D:\16042647.zip") _GroupPolicy() FileInstall(".\Win7x86\Win7x86.zip", "d:\temp1\KBs.zip", 1) _Toast_hide() _KBs() _CommonPatches() ;~ _win7x86() _office() elseif @OSVersion = "WIN_7" and @OSArch = "X64" Then ; _Toast_Show(64,$disc & " ...","Unpacking Updates") FileInstall(".\GPs\IEClient\Screensaver\Screensaver.zip","D:\temp1\GP.zip",1) _GroupPolicy() FileInstall(".\Win7x64\Win7x64.zip", "d:\temp1\KBs.zip", 1) _Toast_hide() _KBs() _CommonPatches() ;~ _win7x64() _office() ;~ ElseIf @OSVersion = "WIN_2008" Then ; ;~ _Toast_Show(64,$disc & " ...","Unpacking Updates") ;~ FileInstall(".\SVR2008\SVR2008.zip", "d:\temp1\KBs.zip", 1) ;~ _Toast_hide() ;~ _KBs() ;~ _CommonPatches() ;~ _svr2008() ElseIf @OSVersion = "WIN_2008R2" Then ; _Toast_Show(64,$disc & " ...","Unpacking Updates") if FileExists(("c:\app\sams.admin\product\11.2.0\dbhome_1\network\admin\listener.ora")) Then ;DB FileInstall(".\GPs\DB\Screensaver\Screensaver.zip","D:\temp1\GP.zip",1) FileInstall(".\Oracle\IEDBSVR\16042648.zip","D:\16042648.zip",1);.07 DBOracle Patch DirCreate("D:\16042648") RunWait("cmd /c D:\Common\7z.exe x -aoa -oD:\16042648 D:\16042648.zip") FileDelete("D:\16042648.zip") Else;APP FileInstall(".\GPs\APP\Screensaver\Screensaver.zip","D:\temp1\GP.zip",1) endif ;~ _GroupPolicy() FileInstall(".\Win2008R2\Win2008R2.zip", "d:\temp1\KBs.zip", 1) _Toast_hide() _KBs() _CommonPatches() ;~ _svr2008r2() EndIf ;disable JAVA phone home. if $OSarchitecture = "X64" Then RegWrite("HKLM64\SOFTWARE\JavaSoft\Java Update\Policy","EnableJavaUpdate","REG_DWORD","0") If $OSarchitecture = "X86" Then RegWrite("HKLM\SOFTWARE\JavaSoft\Java Update\Policy","EnableJavaUpdate","REG_DWORD","0") DirMove("d:\temp2", "D:\Software\HOTFIX\JAN13_Rollup") FileDelete(@TempDir & "\updating.bmp") DirRemove("d:\temp1\",1) DirRemove("d:\temp2\",1) Shutdown(6) Exit func _KBs() _Toast_Show(64,$disc & " ...","Extracting KBs") RunWait(@comspec & " /c D:\Common\7z.exe x -aoa -od:\temp2\ d:\temp1\KBs.zip") filedelete("d:\temp1\KBs.zip") $Array = _FileListToArray("d:\temp2\","*.msu") _Toast_hide() $size = UBound($Array) - 1 For $i = 1 To $size _Toast_Show(64,$disc & " ...","Installing " & $Array[$i]) RunWait("c:\windows\system32\wusa.exe d:\temp2\" & $Array[$i] & " /quiet /norestart") _Toast_hide() Next EndFunc Func _CommonPatches() ;function for common items _Toast_Show(64,$disc & " ...","Set permissions on event logs") if @osarch = "x64" then DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) runwait(@ComSpec & " /c c:\windows\system32\takeown /F %SystemRoot%\SYSTEM32\WINEVT\LOGS\Application.evtx /A") runwait(@ComSpec & " /c c:\windows\system32\icacls.exe %SystemRoot%\SYSTEM32\WINEVT\LOGS\Application.evtx /grant Sams.Auditors:(f)") runwait(@ComSpec & " /c c:\windows\system32\takeown /F %SystemRoot%\SYSTEM32\WINEVT\LOGS\Security.evtx /A") runwait(@ComSpec & " /c c:\windows\system32\icacls.exe %SystemRoot%\SYSTEM32\WINEVT\LOGS\Security.evtx /grant Sams.Auditors:(f)") runwait(@ComSpec & " /c c:\windows\system32\takeown /F %SystemRoot%\SYSTEM32\WINEVT\LOGS\system.evtx /A") runwait(@ComSpec & " /c c:\windows\system32\icacls.exe %SystemRoot%\SYSTEM32\WINEVT\LOGS\system.evtx /grant Sams.Auditors:(f)") if @osarch = "x64" then DllCall("kernel32.dll", "int", "Wow64EnableWow64FsRedirection", "int", 1) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing install_flash_player_11_active_x.exe") RunWait("d:\Temp2\install_flash_player_11_active_x.exe -install","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing AdbeRdr11001_en_US.exe") RunWait("d:\Temp2\AdbeRdr11001_en_US.exe /sall /rs","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing rvkroots.exe") RunWait("d:\Temp2\rvkroots.exe /Q","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing jre-7u13-windows-" & $OSarchitecture & ".exe") if $OSarchitecture = "X64" Then RunWait("d:\Temp2\jre-7u13-windows-x64.exe /s","",@SW_HIDE) if $OSarchitecture = "X86" Then RunWait("d:\Temp2\jre-7u13-windows-i586.exe /s","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing IE9-Windows7-" & $OSarchitecture & "-enu.exe") RunWait("d:\Temp2\IE9-Windows7-" & $OSarchitecture & "-enu.exe /quiet /norestart","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","NDP40-KB2737019-" & $OSarchitecture & ".exe") RunWait("d:\Temp2\NDP40-KB2737019-" & $OSarchitecture & ".exe /q /norestart","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing msxml4-KB2758694-enu.exe") RunWait("d:\Temp2\msxml4-KB2758694-enu.exe /quiet /norestart","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing NDP40-KB2742595-" & $OSarchitecture & ".exe") RunWait("d:\Temp2\NDP40-KB2742595-" & $OSarchitecture & ".exe /q /norestart","",@SW_HIDE) _Toast_hide() _Toast_Show(64,$disc & " ...","Installing NDP40-KB2736428-" & $OSarchitecture & ".exe") RunWait("d:\Temp2\NDP40-KB2736428-" & $OSarchitecture & ".exe /q /norestart","",@SW_HIDE) _Toast_hide() Endfunc func _office() ;function for Office items, only used on Win7x86 and Win7x64 FileInstall(".\Office\Office.zip", "d:\temp1\Office.zip", 1) _Toast_Show(64,$disc & " ...","Extracting KBs") DirCreate("d:\temp2\Office\") RunWait(@comspec & " /c D:\Common\7z.exe x -aoa -od:\temp2\Office\ d:\temp1\Office.zip") filedelete("d:\temp1\Office.zip") $Array1 = _FileListToArray("d:\temp2\Office\","*.exe") _Toast_hide() $size = UBound($Array1) - 1 For $i = 1 To $size _Toast_Show(64,$disc & " ...","Installing " & $Array1[$i]) runWait("d:\temp2\Office\" & $Array1[$i] & " /quiet /norestart") _Toast_hide() Next EndFunc func _GroupPolicy() RunWait("cmd /c D:\Common\7z.exe x -aoa -od:\temp1\GP D:\temp1\GP.zip") DirCopy("d:\temp1\GP","C:\Windows\System32\GroupPolicy",1) FileDelete("D:\temp1\GP.zip") endfunc ;~ func _win7x86() ;function for Win7x86 specific items ;~ EndFunc ;~ func _win7x64() ;function for Win7x64 specific items ;~ EndFunc ;~ func _svr2008() ;function for SVR2008 specific items ;~ EndFunc ;~ func _svr2008r2() ;function for SVR2008R2 specific items ;~ EndFunc Edited February 15, 2013 by myk3 Link to comment Share on other sites More sharing options...
Trong Posted February 15, 2013 Share Posted February 15, 2013 Please put your errors on here! Or upload your full code (including file install and All include file) Regards, Link to comment Share on other sites More sharing options...
Trong Posted February 15, 2013 Share Posted February 15, 2013 The full version will check your code before the compile! Regards, Link to comment Share on other sites More sharing options...
iamtheky Posted February 15, 2013 Share Posted February 15, 2013 (edited) Full code is uploaded, and the memory allocation error is the standard "error allocating memory" dialog box. The compiled exe is 1.5GB much of it from the fileinstall lines as the zips are anywhere from 300-500mb each, so naturally despite Trongs wishes, those will not be uploaded. It is not a matter of the code needing checking, it compiles with the built in version (2.28) and runs spectacularly, but will not compile with the full Scite install (3.20). Edited February 15, 2013 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Trong Posted February 15, 2013 Share Posted February 15, 2013 (edited) oh! Sorry! So just to put up error (some text or screenshots)! So the file is too large and OS difference test can not be correct! Edited February 15, 2013 by Trong Regards, Link to comment Share on other sites More sharing options...
Trong Posted February 15, 2013 Share Posted February 15, 2013 (edited) Sorry I was wrong!With your problem is simply to use the correct version of AutoIt of your code!Or upgrade your code to match the new version of AutoIt!See here for recent script-breaking changes. Edited February 15, 2013 by Trong Regards, Link to comment Share on other sites More sharing options...
iamtheky Posted February 15, 2013 Share Posted February 15, 2013 (edited) Trong, it is not a problem with AutoIt nor the script as provided (since it compiles and runs successfully). If someone with intimate knowledge of Scite could please let us know why we see this different behavior in compilation between the built-in Scite and full Scite package, and if there are any directives that make the latter behave like the former, we would be much obliged. Edited February 15, 2013 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
myk3 Posted February 15, 2013 Author Share Posted February 15, 2013 For reference, this is being compiled on a system with 16GB RAM, with 14GB free at the time on compilation. Link to comment Share on other sites More sharing options...
Trong Posted February 15, 2013 Share Posted February 15, 2013 Something that I will must to find out!. You try change setting of AutoIt3Wrapper and try again! Why do you need to compile it with the full version? ExecutionLevel level ? "asInvoker" = Default (can skip it) UPX? Compressed with UPX can compress after compiling!(can skip it) Regards, Link to comment Share on other sites More sharing options...
jchd Posted February 15, 2013 Share Posted February 15, 2013 Don't you hit the Windows barrier of max allocatable memory for a single process? 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 hereRegExp tutorial: enough to get startedPCRE 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) Link to comment Share on other sites More sharing options...
Trong Posted February 15, 2013 Share Posted February 15, 2013 But the only problem is: compiler with ScITE full version! -> Errors compiler with ScITE Lite version! -> OKSo the difference between ScITE full version and the Lite version? Regards, Link to comment Share on other sites More sharing options...
iamtheky Posted February 18, 2013 Share Posted February 18, 2013 Don't you hit the Windows barrier of max allocatable memory for a single process?I do not believe so, the error thrown is definitely from Scite and we are compiling on a beastly alienware with 16GB of ram (and have created packages with substantially larger payload). Can anyone answer as to the differences between the two versions of Scite when it comes to compilation? ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Developers Jos Posted February 18, 2013 Developers Share Posted February 18, 2013 (edited) The only difference between the lite and full versions is that the full version runs autoit3wrapper where the lite version runs aut2exe directly. What step of the autoit3wrapper process do you get the error? Jos Edited February 18, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
myk3 Posted November 13, 2013 Author Share Posted November 13, 2013 (edited) The only difference between the lite and full versions is that the full version runs autoit3wrapper where the lite version runs aut2exe directly. What step of the autoit3wrapper process do you get the error? Jos I know this is several months old.. I run into the same problem every few months.. I can either re install the lite version of ScITE or run the Script to EXE converter and it will compile fine, but not in the "full" ScITE version.. Edited November 13, 2013 by myk3 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 13, 2013 Developers Share Posted November 13, 2013 (edited) This screen capture is a little hard to read so please just Cut&Paste ALL the info from the SciTE Output pane into a quote or text box to provide the needed information. You can de the same for any Error window or provide that as an image. It looks like AUT2EXE is giving the error in the whole process. Jos Edited November 13, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
myk3 Posted November 13, 2013 Author Share Posted November 13, 2013 This screen capture is a little hard to read so please just Cut&Paste ALL the info from the SciTE Output pane into a quote or text box to provide the needed information. You can de the same for any Error window or provide that as an image. It looks like AUT2EXE is giving the error in the whole process. Jos >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "C:\Images\Security Discs\Oct2013SecDisc\IAVA_Updates_OCT13_SecDisc.au3" +>10:57:09 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000409 OS:WIN_7/ CPU:X64 OS:X64) >Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3 +>10:57:10 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe /in "C:\Images\Security Discs\Oct2013SecDisc\IAVA_Updates_OCT13_SecDisc.au3" /out "C:\Users\IMAGESVR\AppData\Local\Temp\~AU3ffhuinh.exe" /nopack /icon "C:\Images\Security Discs\Oct2013SecDisc\App.ico" /comp 2 +>11:02:19 Aut2exe.exe ended.rc:0 >11:02:19 Performing the Program Resource Update steps: Link to comment Share on other sites More sharing options...
Developers Jos Posted November 13, 2013 Developers Share Posted November 13, 2013 Ok, so it looks like AutoIt3Wrapper is giving issues for you. Could you try the current Beta version of AutoIt3Wrapper available here to see if that solves the issue? Just download and replace the current version in AutoIt3SciTEAutoIt3Wrapper directory. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
myk3 Posted November 13, 2013 Author Share Posted November 13, 2013 (edited) Ok, so it looks like AutoIt3Wrapper is giving issues for you. Could you try the current Beta version of AutoIt3Wrapper available here to see if that solves the issue? Just download and replace the current version in AutoIt3SciTEAutoIt3Wrapper directory. Jos Same thing.. The odd thing is if I use the normal ScITE or the script to exe converter everything works fine.. >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /in "C:\Images\Security Discs\Oct2013SecDisc\IAVA_Updates_OCT13_SecDisc.au3" +>11:19:41 Starting AutoIt3Wrapper v.2.1.2.29 SciTE v.3.3.0.0 ; Keyboard:00000409 OS:WIN_7/ CPU:X64 OS:X64 Environment(Language:0409 Keyboard:00000409 OS:WIN_7/ CPU:X64 OS:X64) >Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3 +>11:19:42 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe /in "C:\Images\Security Discs\Oct2013SecDisc\IAVA_Updates_OCT13_SecDisc.au3" /out "C:\Users\IMAGESVR\~AU3hnximhq.exe" /nopack /icon "C:\Images\Security Discs\Oct2013SecDisc\App.ico" /comp 2 +>11:24:55 Aut2exe.exe ended.C:\Users\IMAGESVR\~AU3hnximhq.exe. rc:0 >11:24:55 Performing the Program Resource Update steps: ^where can I see this reference ? "+>11:24:55 Aut2exe.exe ended.C:UsersIMAGESVR~AU3hnximhq.exe. rc:0" I am no longer using that system, and I don't see that in the script anywhere.. Edited November 13, 2013 by myk3 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 13, 2013 Developers Share Posted November 13, 2013 (edited) ^where can I see this reference ? "+>11:24:55 Aut2exe.exe ended.C:UsersIMAGESVR~AU3hnximhq.exe. rc:0" I am no longer using that system, and I don't see that in the script anywhere.. I do not understand your statement about "no longer using that system". AutoIt3Wrapper tell aut2exe to create a Temp exe file in your UserData directory. That is what this is: C:UsersIMAGESVR~AU3hnximhq.exe Maybe you need to disable you AV to test and see if that is giving you this issue. Jos Edited November 13, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
myk3 Posted November 13, 2013 Author Share Posted November 13, 2013 I do not understand your statement about "no longer using that system". AutoIt3Wrapper tell aut2exe to create a Temp exe file in your UserData directory. That is what this is: C:UsersIMAGESVR~AU3hnximhq.exe Maybe you need to disable you AV to test and see if that is giving you this issue. Jos nm.. I was confused for a second.. Any other ideas why this version of ScITE isn't 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