Jump to content

neevar

Members
  • Posts

    7
  • Joined

  • Last visited

neevar's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Just to add on something... I'm able to just run the script without compiling with the F5 option and everything goes smoothly. But compiling it causes problems. would appreciate any help given.
  2. Hi guys, I'm almost done with my updated required programs installer for my workplace. I faced a roadblock right after combining the fileinstall function to the program. I've zipped up all my program installers into a file called programs.7z (2.47GB) Compiling takes quite some time but it results in failure. Below is the error message i get in the console area in scite editor >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "D:\AutoIT\15_0_DF\RPI_15.0 v 3.au3" +>14:35:46 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0 Keyboard:00000409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64 Environment(Language:0409) +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\admin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\admin\AppData\Local\AutoIt v3\SciTE -> No changes made.. >Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe_x64.exe /in "D:\AutoIT\15_0_DF\RPI_15.0 v 3.au3" /out "C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU3fxumijc.exe" /nopack /comp 0 +>14:43:20 Aut2exe.exe ended.C:\Users\admin\AppData\Local\AutoIt v3\Aut2exe\~AU3fxumijc.exe. rc:0 >14:43:20 Performing the Program Resource Update steps: !>14:43:28 Error: Failed to enumerate RT_MANIFEST resources, using defaults. ...>Setting Program ExecutionLevel Manifest information to requireAdministrator ...>Setting Program Compatibility Manifest information to Windows8.1 UpdateResources other: $result[0] = 0 - LastError:87:The parameter is incorrect. ...>Updating Program Manifest information. !>14:43:28 Error: EndUpdateResource: Returncode = 0 - LastError:87:The parameter is incorrect.rc:2 !>14:43:28 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2 +>14:46:11 AutoIt3Wrapper Finished. >Exit code: 0 Time: 625.6 The compiling is halted with an error message similar to the line "UpdateResources other: $result[0] = 0 - LastError:87:The parameter is incorrect." I have the option to either continue or exit. But clicking continue doesn't help as the final exe file gives me an error: "This is not a valid Win32 application" I took the fileinstall codes out into a new file and tried (to see if something else was causing the problem) and i still get the above error. I went another step and split the files to chunks of 700MB using 7z. I was able to compile the program successful with programs.7z.001 and programs.7z.002. If i remember correctly, i tried adding programs.7z.003 and compiled the program and it was successful. programs.7z.004 causes the application to fail with the above error message. My question is, is there a max file size for an exe file? or perhaps for FileInstall function? below is my code meant for the fileinstall #include <File.au3> Global Const $RPI_WORKINGDIR = _TempFile() ; Generates a temp folder directory name to use later on DirCreate($RPI_WORKINGDIR) ;FileSetAttrib($RPI_WORKINGDIR, '+H') FileInstall('.\7zip\7za.exe', $RPI_WORKINGDIR & '\7za.exe') FileInstall('.\7zip\7za.dll', $RPI_WORKINGDIR & '\7za.dll') FileInstall('.\7zip\7zxa.dll', $RPI_WORKINGDIR & '\7zxa.dll') FileInstall('.\programs.7z', $RPI_WORKINGDIR & '\programs.7z') #cs FileInstall('.\programs.7z.001', $RPI_WORKINGDIR & '\programs.7z.001') FileInstall('.\programs.7z.002', $RPI_WORKINGDIR & '\programs.7z.002') FileInstall('.\programs.7z.003', $RPI_WORKINGDIR & '\programs.7z.003') FileInstall('.\programs.7z.004', $RPI_WORKINGDIR & '\programs.7z.004') #ce MsgBox(1, "Program working", "Program is working. This is just a test message box") Exit Any assistance will be greatly appreciated. also, is there any other method that i can use to hide my installer files or prevent anyone from extracting it? like a container in which only my script can access and use the files and install from there? I hope i make sense... EDIT: Solved it. The max a file size can go is 2GB. when i reduced the files, was able to compile. This has something to do with windows compiling limit and stuff.
  3. After playing around with the codes and finding out a bit more, I was able to shellexecute the line i need from the bat script. I realized there was too much irrelevant scripting in that bat file (which i've already done in my program) So now, there is no need for bat files XD
  4. Hi guys, I'm using ShellExecuteWait to run my installers. There is 2 bat files in the list of installation. 1 is to install NetFX35 and another is to setup some other stuff. When i run the netfx35.bat, it logs as exit code 0. But the script that runs has some other error number. Is there anyway to retrieve the exit code from the command ran? For the other installer programs, i get the correct exit code. But when i run bat files, the exit code 0 actually refers to whether the bat was executed successfully and that's it. It doesn't return the exit code of the program ran in the bat file. Anyone can shed some light?
  5. Hi guys, just an update... I chanced upon this vbs script @ sevenforums and it worked without a problem. Link It does create the restore point, however I see that there is a need to create that registry entry as spoken about in this thread. Not sure if this is the only way to make a restore point or am I better off using WinWaitActive etc to do the clicking and creation of a restore point?
  6. Hi everyone, thanks for the replies! Will test them out on my virtual environment later on to see the output. Also, just a quick question: Is it possible to compile all the installer programs with the autoit script to make it a big .exe file? My current method is to use an automatic extractor that extracts the installer files into a temp location with the script.exe and everything is read from there. Is it possible to like just have a script.exe which does everything? Meaning all the installers are inside this script.exe and thus, remove the possibility of someone copying the installer files from the directory? EDIT: I've also set the files to be deleted from the temp directory after successful installation
  7. Hi everyone. I've used autoit scripting for deploying custom applications to my workplace which awesomely sped up the time taken to set them up. My app is made to create a restore point before anything is installed. This worked in Windows 7 perfectly. However, now that certain number of computer systems are being ported to Windows 8.1, I wrote my app to make sure it works in Windows 8 without any hiccups. Unfortunately, I recently discovered that no restore point is created for Windows 8.1 system. Can someone shed some light on this? Below is my code for the creation of the restore point ; ===== Create Restore Point - START $progress = $progress + $jump; ProgressSet($progress, "Creating Restore Point...", "Preparing"); sleep(1000); $objSystemRestore = ObjGet("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore") $objSystemRestore.createrestorepoint("RPI_Restore_Point", 0, 100); ; ===== Create Restore Point - END
×
×
  • Create New...