Sign in to follow this  
Followers 0
eternityseeker

Heeeeelp Please!!!!

22 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Must be somewhere between line 15 and 20 ...

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

By the way what did you mean by file Install?? i didn't get that one

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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

-------------------------------------------

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

i liked that plethora test thanks everybody :)

Share this post


Link to post
Share on other sites

no it doesn't have any prameters :)

Share this post


Link to post
Share on other sites

#15 ·  Posted (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 by lordicast

[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

is there a way to run it the exe from a loog on script??

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Look at this FAQ #21

http://www.autoitscript.com/forum/index.php?showtopic=37289&view=findpost&p=571221

Share this post


Link to post
Share on other sites

thanks zedna, i'm gonna check it out now :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0