| View previous topic :: View next topic |
| Author |
Message |
Gym_Crazy
Joined: 11 Apr 2006 Posts: 7
|
Posted: Tue Apr 11, 2006 2:24 am Post subject: Installing AutoHotKey itself, silently |
|
|
Hello
We want to use AutoHotKey on a bunch of user's laptops to run other scripts now and in the future, but first we need to get AutoHotKey installed onto their laptops.
Any advice how this can be done in the background and in an automated way so the user's don't get popups etc?
Also how can we silently, without user interaction, uninstall AutoHotKey if we need to?
TIA
Paul Hanson |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Tue Apr 11, 2006 2:53 am Post subject: |
|
|
The following does a silent install (/S must be capitalized):
AutoHotkey104306_Install.exe /S
You can also specify a custom target folder:
AutoHotkey104306_Install.exe /S /D=C:\Program Files\Foo
Silent UNinstall: Currently, this might not be possible due to the way the installer is configured. I will look into it further. |
|
| Back to top |
|
 |
Gym_Crazy
Joined: 11 Apr 2006 Posts: 7
|
Posted: Tue Apr 11, 2006 3:53 am Post subject: |
|
|
Thank you.
That is a great start.
If it can be uninstalled silently then that will be great. Someone in my circle of nerdsd suggested using msiexec -x <parameters> but I am not sure AutoHotKey uses msiexec to do the installation in the first place.
Regards
Paul |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Apr 11, 2006 8:51 am Post subject: |
|
|
Of course, you can also make your own personal install with an AutoHotkey compiled script, using FileInstall... It shouldn't be so hard, mostly put some files in a directory, perhaps setting some registry keys, etc. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Wed Apr 12, 2006 6:15 pm Post subject: |
|
|
The ability to silently uninstall AutoHotkey has been added to today's v1.0.43.07. The instructions for how to do so have been added to the Scripts page:
To silently uninstall AutoHotkey, pass the parameter /S to the uninstaller. For example:
"C:\Program Files\AutoHotkey\uninst.exe" /S
To silently install AutoHotkey into the default directory (which is the same directory displayed by non-silent mode), pass the parameter /S to the installer (/S must be capitalized). For example:
AutoHotkey104307_Install.exe /S
A directory other than the default may be specified via the /D parameter (in the absence of /S, this changes the default directory displayed by the installer). For example:
AutoHotkey104307_Install.exe /S /D=C:\Program Files\AutoHotkey
Thanks for suggesting it. |
|
| Back to top |
|
 |
Gym_Crazy
Joined: 11 Apr 2006 Posts: 7
|
Posted: Tue Apr 18, 2006 2:06 am Post subject: A million thanks! |
|
|
| You folks are remarkable. What service. This will help me a lot. |
|
| Back to top |
|
 |
0inprogram
Joined: 06 Dec 2007 Posts: 21 Location: chennai
|
Posted: Mon Dec 17, 2007 1:43 pm Post subject: |
|
|
i m a newbie....
how should i pass the parameters to the exe file...where should i type tht thing
using the command line while compiling??? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Mon Dec 17, 2007 5:38 pm Post subject: |
|
|
please restate your question. Are you trying to silently install manually, or via an AHK script? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
0inprogram
Joined: 06 Dec 2007 Posts: 21 Location: chennai
|
Posted: Tue Dec 18, 2007 5:43 am Post subject: |
|
|
| i wan 2 install via ahk script |
|
| Back to top |
|
 |
Thracx
Joined: 12 Mar 2007 Posts: 10 Location: Northern VA
|
Posted: Mon May 05, 2008 3:25 pm Post subject: |
|
|
| Chris wrote: | The following does a silent install (/S must be capitalized):
AutoHotkey104306_Install.exe /S
You can also specify a custom target folder:
AutoHotkey104306_Install.exe /S /D=C:\Program Files\Foo |
This is great... but how can we customize which components are installed when doing a silent install from the cmdLine? I assume /S simply uses the 'default' options from the install wizard, which is 'Main Program' and 'Script Compiler'... but not 'Enable drag & drop onto scripts'
I'd like to be able to have all three options selected, although it should probably be made to have options to install or not install any combination of the 'components' listed in the installer wizard. If this is possible, please let me know how (and update the documentation), but I suspect that it's not possible right now... so can we get this feature in a future version? Thanks! _________________ -Thracx
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen |
|
| Back to top |
|
 |
|