WordPress.org

Ready to get started?Download WordPress

Forums

Issues when attaching .reg files (8 posts)

  1. marcomancosu
    Member
    Posted 1 year ago #

    Hi,

    I would like to attach a .reg file to a post. Ideally, when the user clicks on the link the download of the file should start automatically (prompting the user to accept it, but I suppose this depends on the browsers security settings. It's what happens to me with Firefox when I download files from Internet).

    I have tried several ways to get this but the only result I could obtain is a link in the post to an internal url (example: /wp-content/uploads/2013/04/menushowdelay5.reg) where the user can visualize the content of the .reg file as text. But it's not what I need.

    Would you please help me to understand what to do?

    Thanks
    my website: http://www.ottimizzazione-pc.it

  2. May I ask why you would need to modify the users computer registry?

  3. marcomancosu
    Member
    Posted 1 year ago #

    Hi Josh,

    The main topic of the website is how to optimize and speed up your computer, and in a few posts changes to the registry are recommended.
    The computer knowledge of the visitors is different so rather than explaining every time how to create a registry key (which could be dangerous if they are not familiar with the registry) I would prefer to let them download a .reg file and merge it - it's easier, it's what I have been requested from some of the visitors and it's common practice for other websites with the same topic, such as http://www.sevenforums.com/.
    There are no harmful intentions behind this.

  4. Fair enough. I just didn't want to help you cripple peoples' computers ;)

    Okay. to get it as a download.. try wrapping the actual file with a link.

    Something like this:

    <a href="http://www.mysite.com/myfile.reg">MenuShowDelay5</a>

    See if that makes it a download link.

  5. marcomancosu
    Member
    Posted 1 year ago #

    Thanks Josh - I can see your point anyway

    I had tried that without success, it opens a page where the content of the reg file is displayed as text but doesn't start any downloading processes. This is the link I had created
    abc

  6. I see...

    Can you make it a .zip file? I know it's an extra step for the end user... but I'm pretty sure .zip files will prompt the download.

  7. marcomancosu
    Member
    Posted 1 year ago #

    Great workaround. That works!

    I'll use that solution, unless somebody else reading this post finds a way to trigger the download of the .reg files.

    Thanks Josh - I'll give a try to your plugin, the column break function looks interesting :)

  8. Thanks :)

    And I'll look around as well to see if there is another way to download the .reg file directly.

Topic Closed

This topic has been closed to new replies.

About this Topic