469,356 Members | 2,677 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Automatic install

I have a basic web site where people can download my programs.

To make it easier for them is it possible that I could add some
javascript that would allow them to automatically install/run the
program for them maybe with appropriate options/warnings etc

Sme example code would be most appreciated

Many thanks

Mike

--

Jan 16 '07 #1
6 1884
dd
You can just have a hyperlink to the installer program.
When they click on it, the browser will automatically
handle the security warnings. It might show a bar at the
top of the screen warning the users this is "a program",
or it might just open the open/save dialog. What some
sites do is take screenshots of the IE6/7 warning bar
and/or other warning dialogs and instruct the user the
appropriate action.

If it's an ActiveX control you're offering, then you can
just dynamically embed it into a DIV as long as you
have the URL specified for the installer.

If none of this fits your needs, why not go to sites like
download.com and look how they do it.

~dd

Jan 16 '07 #2
VK
Mike Saunders wrote:
I have a basic web site where people can download my programs.

To make it easier for them is it possible that I could add some
javascript that would allow them to automatically install/run the
program for them maybe with appropriate options/warnings etc
For .exe file download it will be dialog with Open/Save options without
any extra work. - Unless for executable security settings disable Open
options leaving Save only, which is out of any of your control.

Or did you mean to launch files from from local drive after being
downloaded?

Jan 16 '07 #3
VK wrote:
Mike Saunders wrote:
I have a basic web site where people can download my programs.

To make it easier for them is it possible that I could add some
javascript that would allow them to automatically install/run the
program for them maybe with appropriate options/warnings etc

For .exe file download it will be dialog with Open/Save options
without any extra work. - Unless for executable security settings
disable Open options leaving Save only, which is out of any of your
control.

Or did you mean to launch files from from local drive after being
downloaded?
Wow such quick responses

With browser security not making it easy to open programs remotely I
would like them to be downloaded (default say to the TEMP folder)
before then being opened

--

Jan 16 '07 #4
Mike Saunders said the following on 1/16/2007 8:55 AM:
VK wrote:
>Mike Saunders wrote:
>>I have a basic web site where people can download my programs.

To make it easier for them is it possible that I could add some
javascript that would allow them to automatically install/run the
program for them maybe with appropriate options/warnings etc
For .exe file download it will be dialog with Open/Save options
without any extra work. - Unless for executable security settings
disable Open options leaving Save only, which is out of any of your
control.

Or did you mean to launch files from from local drive after being
downloaded?

Wow such quick responses

With browser security not making it easy to open programs remotely I
would like them to be downloaded (default say to the TEMP folder)
before then being opened
User gets a download dialog, they choose to save it or not. Where that
file gets saved is up to the user though. You can't specify where to
save it to.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 16 '07 #5
Randy Webb wrote:
Mike Saunders said the following on 1/16/2007 8:55 AM:
VK wrote:
Mike Saunders wrote:
I have a basic web site where people can download my programs.

To make it easier for them is it possible that I could add some
javascript that would allow them to automatically install/run
the program for them maybe with appropriate options/warnings etc
For .exe file download it will be dialog with Open/Save options
without any extra work. - Unless for executable security settings
disable Open options leaving Save only, which is out of any of
your control.
>

User gets a download dialog, they choose to save it or not. Where
that file gets saved is up to the user though. You can't specify
where to save it to.

Fair enough but can I enable the user to easily run the downloaded
program without him having to navigate to the downloaded location This
seems to be a problem for many users Maybe a script on the site

Thanks
--

Jan 16 '07 #6
Mike Saunders said the following on 1/16/2007 12:45 PM:
Randy Webb wrote:
>Mike Saunders said the following on 1/16/2007 8:55 AM:
>>VK wrote:

Mike Saunders wrote:
I have a basic web site where people can download my programs.
>
To make it easier for them is it possible that I could add some
javascript that would allow them to automatically install/run
the program for them maybe with appropriate options/warnings etc
For .exe file download it will be dialog with Open/Save options
without any extra work. - Unless for executable security settings
disable Open options leaving Save only, which is out of any of
your control.
User gets a download dialog, they choose to save it or not. Where
that file gets saved is up to the user though. You can't specify
where to save it to.


Fair enough but can I enable the user to easily run the downloaded
program without him having to navigate to the downloaded location This
seems to be a problem for many users Maybe a script on the site
When I download files in IE7 (.exe files) I get prompted to
Run>Save>Cancel the download. I can Run it from the server(not saved
locally), I can save it for later installation or I can cancel the
download. If I save it locally, in order for you to tell me where to go
to execute it you would have to know where I saved it to and you can't
know that. The best you could do would be to have some type of "Help"
link that can explain how to find the file (Start>Search>Filename) or
instructions on how to save it to the desktop so they can find it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 16 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Olaf Baeyens | last post: by
1 post views Thread by Jakob Olsen | last post: by
reply views Thread by =?Utf-8?B?VG9kZA==?= | last post: by
3 posts views Thread by shimon | last post: by
4 posts views Thread by =?Utf-8?B?Zmx5ZXJk?= | last post: by
1 post views Thread by =?Utf-8?B?LUdFUC4=?= | last post: by
2 posts views Thread by =?Utf-8?B?RG91Zw==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.