dsteph Posted November 7, 2011 Posted November 7, 2011 Hello All!I followed the tutorial here: http://www.autoitscript.com/autoit3/docs/tutorials/winzip/winzip.htmand I was able to get a working script for a very simple setup file. When I right click and execute the script it run without issue. However, when I compile the script to exe and run it, it just hangs. The install does not look like it is firing off and the AutoIT icon just sits there in the system tray. Here is the script I created:Run("runtime40_setup.exe") WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", "will install Gupta Runtime") Send ("!n") WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", "Click Next to install to this folder") Send ("!n") WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", " ready to begin installation") Send ("!i") WinWaitActive("Gupta Runtime 4.0 - InstallShield Wizard", "has successfully installed") Send ("!f")Any ideas as to why when it gets compiled it doesn't seem to work?Thanks in advance for your help!- Dustin
sleepydvdr Posted November 7, 2011 Posted November 7, 2011 It looks like you go to run the exe and it is stopping at WinWaitActive. Therefore, either you have the installer spelled incorrectly or your script is not in the same directory as the installer. #include <ByteMe.au3>
Zedna Posted November 7, 2011 Posted November 7, 2011 Try this Run(@ScriptDir & "runtime40_setup.exe") Is runtime40_setup in the same directory as your compiled EXE? Resources UDF ResourcesEx UDF AutoIt Forum Search
dsteph Posted November 7, 2011 Author Posted November 7, 2011 Well imagine that. I didn't know the exe needed to be in the same directory as the setup file. For some reason I thought it wrapped the setup file into the exe file. My autoit learning experience is already off to a good start! Thanks a ton for the help. I can tell this community is going to be a great resource. - Dustin
sleepydvdr Posted November 7, 2011 Posted November 7, 2011 You can wrap the installer into your exe with FileInstall. #include <ByteMe.au3>
kaotkbliss Posted November 7, 2011 Posted November 7, 2011 You can wrap toyr install inside your AutoIt exe using FileInstall() The first parameter for FileInstall is the Location of the on your HD (before compiling the script so autoit knows where to get the file from to add it to your exe) the 2nd prameter is where do you want the file to install to when a user runs your script 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
dsteph Posted November 8, 2011 Author Posted November 8, 2011 Awesome! Thanks again for the tips...this is great stuff. - Dustin
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