Replacing Download Dialog in Internet Explorer

Posted on 2006-03-23
Last Modified: 2012-06-27

I have for long time now, wanted to find a way to replace the Internet Explorer download dialog with my own dialog.

The reason is, that I need to create a system, where the user is only able to download to a specific folder.

Does anyone have any clue on how to accomplish this with .NET? (or VB6)

Thanks in advance,

Question by:Bodekaer
    LVL 6

    Expert Comment


    If you want user's not to be able to change the Default Download Directory

    Start Regedit
    Go to HKEY_USERS \ .DEFAULT \ Software \ Policies \ Microsoft \ Internet Explorer \ Restrictions
    Create a DWORD value called NoSelectDownloadDir
    Give it a value of 1

    Old code, not sure if it will still work


    Author Comment

    How do I then define the default download directory?

    And usually it is still possible to just type "C:\" in the download dialog.
    LVL 6

    Accepted Solution

    The problem you have is that the dialog box is part of the IE program, to add your own you would need to write your own browser (simpler than it first appears as there is a web control in then redeploy it.

    The other alternative is to use something like Resource Hacker to amend the dialog box in whichever DLL in IE that it resides.

    You may be ok then redeploying your hacked resource file to the other machines you want this to work on.  Although you will have problems with even minor releases of IE.

    I had a quick look through gpedit.msc (start run gpedit.msc) because I thought this may be a common requirement in schools and suchlike but couldn't see anything that would accomplish this.  Although there are a number of other security features you may find useful.

    The other thing is even if you do change the dialog box there is still the right click >> save as menu in the actual browser itself.  

    Did you try the NoSelectDownloadDir?

    References :

    Any more details on what the scenario is?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now