Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3722762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:01:24+00:00 2026-05-19T06:01:24+00:00

I am working on a Web Installer for one of my projects and need

  • 0

I am working on a Web Installer for one of my projects and need to be able to download the .exe files using ActiveX. I do not want any dialogs prompting the user to do something with the download. After the user approves the ActiveX, I want the files to be downloaded to the proper place, say C:\TEST.

Any ideas?

This is what I have so far:

<?php

$filename = "WebLock.exe";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
?>

<html>
<head>

<title>Test</title>
</head>
<body>
<center><b>Downloading Required Files...</b></center>
<script>
function IEsave(filename, sData) {
    var fso, a;
    fso = new ActiveXObject("Scripting.FileSystemObject");
    file = fso.CreateTextFile(filename, 2, false);
    file.write(<?php echo $contents ?>);
    file.Close();
    return file;
}

alert(IEsave("C:\\WebLock.exe", ""));

</script>
Complete!
</body>
</html>

The only problem is, it doesn’t write the file.


Here is the actual page:

Here is the published page!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T06:01:25+00:00Added an answer on May 19, 2026 at 6:01 am

    You cannot write a file to any location due to IE’s Protected Mode feature, even if you write your own plug-in.

    I had the same problem and my solution was writing files to low integrity location and calling shell’s SHFileOperation for making copy with UAC dialog.

    But If possible, you can try to add your site to trusted list for all of your users.

    Here is related question: IE Protected Mode Problem?!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When working with web-designers in a Spring-MVC and JSP environment, are there any tools
Hi i am working on web service application in android.i need a class that
We've been working on web application where in we need to implement traditional web-apps
I'm currently working on web application using VB in ASP.NET. Right now I have
I've started working on a new web project with some friends... we are using
I have one basic web project using spring in eclispe. I have installed tomcat
I'm working on a WIX 3.6 Installer for a web service. But I've run
I am working on one web application. The project located on my linux box
I have 2 ( core , core-web ) projects such a way that one
Currently I am working on one big web application and to make it work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.