eternityseeker Posted July 15, 2009 Share Posted July 15, 2009 I have a problem using Autoit, i created a file.au3 script with file.exe (which is the program i wanted to make an auto installation for it) in the same Folder then i compile the script. After Compiling a program.exe is crated, the problem is i can only open the program.exe (compiled file) only in that folder, when i copy that compiled program to another folder alone without the other 2 files it doesn't work. how can i create only one EXE to do all the jobs for me? any help is much appreciated, thanks Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 15, 2009 Share Posted July 15, 2009 Have a look at FileInstall. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Developers Jos Posted July 15, 2009 Developers Share Posted July 15, 2009 I have a problem using Autoit, i created a file.au3 script with file.exe (which is the program i wanted to make an auto installation for it) in the same Folder then i compile the script. After Compiling a program.exe is crated, the problem is i can only open the program.exe (compiled file) only in that folder, when i copy that compiled program to another folder alone without the other 2 files it doesn't work.how can i create only one EXE to do all the jobs for me?any help is much appreciated, thanksMust be somewhere between line 15 and 20 ...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...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 AutoItSetOption("TrayIconHide" ,1) Run("UniversalTermsrvPatch-x86.exe") WinWaitActive("Universal Termsrv.dll Patch") Send("!P") Send("{ENTER}") WinWaitActive("UniversalTermsrvPatch-x86") Send("{ENTER}") WinWaitActive("Universal Termsrv.dll Patch") Send("!N") WinClose("Universal Termsrv.dll Patch") --------------------------------------------- That was the script i wrote i had other ones wich worked fine for me i wish you could tell me if there's something wrong with it, Also, is it possible to run the exe i created with autoit in the background, i noticed that if i clicked on another window before the install of the program is complete it will stop, here's the script wich is working fine with ccleaner but i can't manage to make run in the background it stops if i click on other window: AutoItSetOption("TrayIconHide" ,1) Run("ccsetup221.exe") WinWaitActive("Installer Language", "Please select a language", "&OK") Send("{ENTER}") WinWaitActive("CCleaner v2.21 Setup", "&Next") Send("!N") WinWaitActive("CCleaner v2.21 Setup", "&Back") Send("!A") WinWaitActive("CCleaner v2.21 Setup", "&Next") Send("!N") WinWaitActive("CCleaner v2.21 Setup", "&Install") Send("{TAB 4}") Send("{SPACE}") Send("{TAB}") Send("{SPACE}") Send("!I") WinWaitActive("CCleaner v2.21 Setup", "&Finish") Send("!F") ----------------------- Thanks again Link to comment Share on other sites More sharing options...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 By the way what did you mean by file Install?? i didn't get that one Link to comment Share on other sites More sharing options...
Developers Jos Posted July 15, 2009 Developers Share Posted July 15, 2009 You run a program. Is that program in the same directory as the compiled script? 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...
Zedna Posted July 15, 2009 Share Posted July 15, 2009 By the way what did you mean by file Install?? i didn't get that oneFileInstall() is native Autoit's function.Definitely look at it. It's exactly what you need. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
lordicast Posted July 15, 2009 Share Posted July 15, 2009 Maybe you have to specify where that .exe is ? AutoItSetOption("TrayIconHide" ,1) Run("C:\Program Files\Your Program DIR\ccsetup221.exe");<---------- Take a look here. WinWaitActive("Installer Language", "Please select a language", "&OK") Send("{ENTER}") WinWaitActive("CCleaner v2.21 Setup", "&Next") Send("!N") WinWaitActive("CCleaner v2.21 Setup", "&Back") Send("!A") WinWaitActive("CCleaner v2.21 Setup", "&Next") Send("!N") WinWaitActive("CCleaner v2.21 Setup", "&Install") Send("{TAB 4}") Send("{SPACE}") Send("{TAB}") Send("{SPACE}") Send("!I") WinWaitActive("CCleaner v2.21 Setup", "&Finish") Send("!F") [Cheeky]Comment[/Cheeky] Link to comment Share on other sites More sharing options...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 thaaaaaaaaaaaaaaaaaanks toooooo many thanks Jos it definitely worked for me i was trying all day to make it work now if i may, i have another question is it possible to make that program run from a script or a patch or whatever but in the background, i mean if i want to install it from the domain to the users without letting them see the program that i'm installing. is that possible thanks again.. i tried this script but it doesn't work can you tell me where i'm wrong? Dim MyShell Dim shell_cmd shell_cmd = "\\SBS2003\Clients\Setup\Multiple Sessions.exe" set MyShell = CreateObject("WScript.Shell") MyShell ------------------------------------------- Link to comment Share on other sites More sharing options...
Developers Jos Posted July 15, 2009 Developers Share Posted July 15, 2009 To do a silent install you normally use that option for the programs installer. Did you check if this installer has that option available. Its normally something like /S or /s 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...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 i liked that plethora test thanks everybody Link to comment Share on other sites More sharing options...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 no it doesn't have any prameters Link to comment Share on other sites More sharing options...
Yashied Posted July 15, 2009 Share Posted July 15, 2009 You rushed? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Developers Jos Posted July 15, 2009 Developers Share Posted July 15, 2009 no it doesn't have any prameters The ccleaner installer does not have the /S parameter option? 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...
lordicast Posted July 15, 2009 Share Posted July 15, 2009 (edited) If you dont know how I suggest you use a program to find switches in your exe. Sometimes its /VERYSILENT. Sidenote/ Are links to programs allowed here? Edited July 15, 2009 by lordicast [Cheeky]Comment[/Cheeky] Link to comment Share on other sites More sharing options...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 i mean the other program i don't have any problems with installing CCleaner, however after i compile the script for ccleaner i check for the parameters and it doesn't work i mean before i compile ccleaner it has the /s parameter but after i compile, it has no parameter Link to comment Share on other sites More sharing options...
eternityseeker Posted July 15, 2009 Author Share Posted July 15, 2009 is there a way to run it the exe from a loog on script?? Link to comment Share on other sites More sharing options...
eternityseeker Posted July 16, 2009 Author Share Posted July 16, 2009 i have a question please, when i make a program with autoit, the program only works when the installing window is active, i mean if i click somewhere else on the desktop the installation stops, how can i make auto it focus on one window and ignore my other clicks to install program while i'm doing something else, i don't want anything to interrupt the installation, is that possible? thanks Link to comment Share on other sites More sharing options...
Zedna Posted July 16, 2009 Share Posted July 16, 2009 i have a question please, when i make a program with autoit, the program only works when the installing window is active, i mean if i click somewhere else on the desktop the installation stops, how can i make auto it focus on one window and ignore my other clicks to install program while i'm doing something else, i don't want anything to interrupt the installation, is that possible?thanksLook at this FAQ #21http://www.autoitscript.com/forum/index.php?showtopic=37289&view=findpost&p=571221 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
eternityseeker Posted July 16, 2009 Author Share Posted July 16, 2009 thanks zedna, i'm gonna check it out now 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