AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing AutoHotKey itself, silently

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Gym_Crazy



Joined: 11 Apr 2006
Posts: 7

PostPosted: Tue Apr 11, 2006 2:24 am    Post subject: Installing AutoHotKey itself, silently Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Tue Apr 11, 2006 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Gym_Crazy



Joined: 11 Apr 2006
Posts: 7

PostPosted: Tue Apr 11, 2006 3:53 am    Post subject: Reply with quote

Thank you.

That is a great start.

If it can be uninstalled silently then that will be great. Someone in my circle of nerdsd Smile 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
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue Apr 11, 2006 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Apr 12, 2006 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Gym_Crazy



Joined: 11 Apr 2006
Posts: 7

PostPosted: Tue Apr 18, 2006 2:06 am    Post subject: A million thanks! Reply with quote

You folks are remarkable. What service. This will help me a lot.
Back to top
View user's profile Send private message
0inprogram



Joined: 06 Dec 2007
Posts: 21
Location: chennai

PostPosted: Mon Dec 17, 2007 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Mon Dec 17, 2007 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
0inprogram



Joined: 06 Dec 2007
Posts: 21
Location: chennai

PostPosted: Tue Dec 18, 2007 5:43 am    Post subject: Reply with quote

i wan 2 install via ahk script
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Thracx



Joined: 12 Mar 2007
Posts: 10
Location: Northern VA

PostPosted: Mon May 05, 2008 3:25 pm    Post subject: Reply with quote

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' Sad

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group