Discussion Locked

Web Site Download Problem

0 helpful
22 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have developed a Web Site for our Help Desk to work on for day to day operations. I have shortcuts pointing to programs saved on each individual computer utilizing this web site, but the site itself is saved on a shared drive on the network. Everytime I click a hyperlink to start a program it asks me if I want to download it disk or run from current location, then it asks me if I want to save and run the program and that an Authenticode signature is not found (let's use User Manager for example). How do I completely bypass these two dialog boxes completely and just have the programs execute when I click the link? I only have HTML code, javascript, vbscript, etc...to work with. No executable programs.

22 replies

by bill_h

PLEASE NOTE: This solution requires changes to the system registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs (see appropriate help topics in RegEdit.Exe or RegEdt32.Exe.)

The first step is to make a copy of the program with a different extension. I'll use User Manager for an example. Navigate to the folder containing UsrMgr.Exe. Right-click on the file and select "Copy". Now right-click anywhere in the folder and select "Paste". This will create a file named "Copy of usrmgr.exe". Right-click on this file, select "Rename", and change the name to "usrmgr.ex2". A message will be displayed concerning the change to the extension; click on "Yes".

At this point, the system does not know what to do with a ".ex2" file; if you double-click on "usrmgr.ex2", a dialog box ("Open With...") will be displayed. This is where the registry changes come in.

Add a key named "ex2file" to HKEY_CLASSES_ROOT. Change the "Default" value to "Application". Add a new value named "EditFlags" of type REG_BINARY with a value of 00 00 00 00.

Add a key named "shell" to "ex2file".

Add a key named "open" to "ex2file\shell".
Add a new value named "EditFlags" of type REG_BINARY with a value of 00 00 00 00.

Add a key named "command" to "ex2file\shell\open". Change the "Default" value to "%1 " (include the quotes).

Add a key named "runas" to "ex2file\shell".
Add a new value named "Extended" of type REG_SZ; no value is needed.

Add a key named "command" to "ex2file\shell\runas". Change the "Default" value to "%1 " (include the quotes).

Add a key named ".ex2" to HKEY_CLASSES_ROOT. Change the "Default" value to "ex2file".

I'm running out of room...see the following comment for the rest of the solution.

by bill_h

Make sure to change the link on the web page to point to the *renamed* program. Now when you click the link, the first dialog box (Open/Save) will display. Select "Open this file...", clear the "Always ask before opening this type of file", and click on "OK". The "User Manager" application will then open. Subsequent clicks on the link (from the same workstation) will cause the app to open immediately, without the Open/Save dialog box.

This change will need to be made on *all* workstations, and for all applications you wish to link to. This doesn't harm the original app in any way.

One shortcut to making the registry changes on multiple workstations is to use a ".reg" file; this will enter the changes automatically, and avoid thetedium and possible errors of manual entry.

If you have any questions or problems implementing the above solution, or need more info regarding a ".reg", drop me an e-mail...

by stefanw

I have confronted a similar situation. I wanted to have an auto-loading cd that contains installs, batch files, executables that i could run at each client with just the cd. My solution was to create a VB ActiveX dll, that upon auto-run of the cd, gets installed onto the computer and registered via regsvr32 into the registry. The only thing this dll does, is calls the shell function with whatever command I pass into it. Then, with Javascript in a web page, I create an activeX object, and call the dll function with the command I would like to execute. You will get a warning message about running an active x dll, but that can be eliminated by getting it signed appropriately. Here is an example of the javascript that calls my activeX dll:

var obj;
obj = new ActiveXObject("ITAutoW.System");

obj.RunCommand(cmd)

The RunCommand function just executes a shell command in visual basic, thereby executing whatever command I like.

by the_crow_returns

Cannot use Active X, trying to do this as if it were a shortcut on the desktop simply using HTML, DHTML or a JavaScript or VBScript that's not attached to anything.

by rsv

Hi,
Check the href/URL of the hyperlink/shortcut you must access the website from the webserver (your local webserver). Try to change the href/URL of the hyperlink/shortcut, it should be like this "http://yourwebservername/directoryname/filename". For example I have a website in my computer, My webserver name is "rsv" and website is in the folder named "asp", so I created a shortcut on the Desktop, the URL of this shortcuts is "http://rsv/asp/index.htm", when I click this shortcut I dont get any messageboxes.

Try this, maybe this fixes your problem.

by the_crow_returns

That won't work, I'm trying to avoid cluttering the desktop by making all of these links available through an HTML interface so they are always there instead of accidentally getting deleted or having to go to many different locations to access resources.

by kmerrillt

Is the users browser set to open associated files of this type? If not try changing it so that files of that form will open with whatever browser you're using.

by the_crow_returns

Yes the browser can open these files, but since they are executables it sees them as a download, when the programs are already on the users' machines linked through the HTML interface. All users are using IE 5.0 or better.

by james_randy

If you are still tackling this problem, perhaps you should consider calling your local super-hero.

by mike (from canada)

When you download the program, make sure the checkmark is cleared from "Always ask before opening this type of file". for the other one, I recommend going into the internet options and make sure your security settings are set to the lowest possible.check the advanced tab and make sure any check box beside the sentences with a prompt, or message are cleared. No restart should be required. You will have to repeat the first step to every file type you use.

by tjc

Because of the security of how Websites work you will get those message sicne HTML doesn't run as a standard program. You will have to write a program, a menu program to do what you want with no HTML at all. Or the programs that you want to run see if you can get activex programs in place that would reside on each computer since what you want to do is outside of what html was designed todo.

by tjc

Looking back over my wording and what you state in your question. The short answer is NO you can't do what you want since it is beyond the scope of HTML. It is ment for transfer of programs from one comptuer to the next so getting rid of the questions that you are prompted can't be done.

by estebandelatorre

When you download the program, make sure the checkmark is cleared from "Always ask before opening this type of file". for the other one, I recommend going into the internet options and make sure your security settings are set to the lowest possible.
Because of the security of how Websites work you will get those message sicne HTML doesn't run as a standard program. You will have to write a program, a menu program to do what you want with no HTML at all.
The first step is to make a copy of theprogram with a different extension. I'll use User Manager for an example. Navigate to the folder containing UsrMgr.Exe. Right-click on the file and select "Copy". Now right-click anywhere in the folder and select "Paste". This will create a file named "Copy of usrmgr.exe". Right-click on this file, select "Rename", and change the name to "usrmgr.ex2". A message will be displayed concerning the change to the extension; click on "Yes".

Hope It Helps!!

This discussion is closed to new replies.