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 8359923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:18:22+00:00 2026-06-09T11:18:22+00:00

I developed a firefox plugin that store some data in plugin folder. How can

  • 0

I developed a firefox plugin that store some data in plugin folder. How can I add a backup button, so when user click on it, a save dialog displayed and the folder be packed in a zip file and be stored in user’s desired location?

  • 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-06-09T11:18:23+00:00Added an answer on June 9, 2026 at 11:18 am

    As it is, the Add-on SDK doesn’t have any modules to write ZIP files. However, with chrome authority you can access the nsIZipWriter interface of the underlying platform. For example:

    var {Cc, Ci, Cu} = require("chrome");
    var {FileUtils} = Cu.import("resource://gre/modules/FileUtils.jsm");
    
    var zipFile = FileUtils.getFile("ProfD", ["test.zip"], false);
    var savedFile = new FileUtils.File("C:\\foo.exe");
    var zipWriter = Cc["@mozilla.org/zipwriter;1"].createInstance(Ci.nsIZipWriter);
    zipWriter.open(zipFile, FileUtils.MODE_WRONLY | FileUtils.MODE_CREATE);
    zipWriter.addEntryFile("foo.exe", zipWriter.COMPRESSION_BEST, savedFile, false);
    zipWriter.close();
    

    This will create a test.zip file in the user’s profile directory and write c:\foo.exe into it. See also FileUtils documentation.

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

Sidebar

Related Questions

I developed some javascript enhanced pages that run fine on recent Firefox and Safari.
I use a Firefox plugin that can refresh the browser window every X seconds.
I've developed a testing unit with Selenium 2 in Java that uses Firefox engine.
For reasons that only the developers can understand, Firefox will create and open .url
This is FF plugin http://www.pixelperfectplugin.com/ Pixel Perfect is a Firefox/Firebug extension that allows web
I've developed a plugin that makes characters jump and bounce when moused over in
I have a FireFox browser plugin that is devloped in C++, that connects to
i've developed a firefox addon with a simple button on the status bar. Now
The IE Developer Toolbar is a plugin that can dock or separate from the
I have developed npruntime based plugin for firefox/chrome and its working fine with ff3.6/chrome

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.