Silent install of the firefox addon - firefox-addon

I am trying to install a firefox xpi silently through an msi installer. I am doing so by the following method:
Unzip my xpi in some temp dir and copy all the contents of that to the %APPDATA%\Mozilla\Firefox\Profiles\xxxx.default\extensions\<uniqueid-for-my-addon>
I expected the addon to be available the next time my firefox opens, but I am not able to get it. Can someone tell me if there is more to be done for a silent install of firefox addons?
Kapil

You want to add your add-on via the windows registry.

The key is the name of the folder you are placing inside the extensions folder, it has to be called as the extension id (which is defined inside the install.rdf file).
Also note that this will not be a completely silent install, the addon install dialog will warn the user the next time Firefox is started with that profile that a new extension has been installed.

Related

IT Hit WebDAV Sample App not running with tomcat

I have downloaded the sample app [ITHitWebDAVServerLibJava.tar.gz] trying to understand how this IT Hit Webdav work.
I started the demo app with Tomcat 8, running on JDK 1.8. From the tomcat console / log, it seems everything just fine, however when I access the main page, it doesn't list out the sample folders & files as how it suppose to (referring to the online demo).
screen : main page is render without listing out the folders & files
I downloaded the sample app and unzip it, without changing the folder structure of it. I have just edited the WEB-INF\web.xml so that it point to the correct trial license file. Please advise if I have missed out some configuration? Should I move out certain files from the WEB-INF folder? Is there any step by step setup guide this demo?
screen : unzipped sample app folder without changing the folder structure
Also, I have downloaded the trial version of AJAX library as well [ITHitWebDAVAJAXLibraryTrial.tar.gz], please advise how should I put this library into the main sample app? As in I should put this library files under which folder of the main sample app?
Please advise.
The default HTML page supplied with IT Hit WebDAV Server Library for Java sample servers use IT Hit WebDAV Ajax Library to list and browse WebDAV server content as well as to open documents for editing.
You can install IT Hit WebDAV Ajax Library from NPM using NPM command-line tool.
Install the Node.js, it installs NPM command-line tool.
Navigate to '\sample_folder\WEB-INF\wwwroot\' folder.
Execute:
npm install webdav.client
This will download IT Hit WebDAV Ajax Library library into the wwwroot folder.

Install ruby using rbenv's downloaded file

I need to install ruby 2.0.0-p645 and I use rbenv. I tried downloading it by running
rbenv install 2.0.0-p645
But the internet in my college keeps dropping every few minutes, so the transfer was always closing with some 11MB remaining.
To counter that, I saw the url from where rbenv was downloading, and used wget to download the source file that rbenv was downloading. (using wget -c for resuming every time the connection closed).
Now I have the file, is there a way to install that ruby version now?
The file's link on cloudfront that I have on my machine.
Yes. Put the downloaded file into ~/.rbenv/cache. You might need to create the directory first. Then run your rbenv install command again. Here is the link to the documentation for this: https://github.com/rbenv/ruby-build#package-download-caching
To summarize, for future reference:
Download the file using wget
Create a cache folder in ~/.rbenv/ if it doesn't exist already.
Rename the downloaded file to ruby-x.y.z-pabc.tar.gz. Extract it and move it to ~/.rbenv/cache/
Run rbenv install x.y.z-pabc
For me, the following steps work.
1 Download the file using `wget/curl or any other way`
2. Create a `cache` folder in `~/.rbenv/` if it doesn't exist already.
3. Move the downloaded file to `~/.rbenv/cache/`
4. Run `rbenv install x.y.z` (ex. rbenv install 2.7.1`)
The difference from the above answer was,
- do not need to change file name
- do not need to extract
- if file rename to something random (ex. x.y.z-pabc) it show ruby-build: definition not found: x.y.z-pabc
Hope this can help someone.

Can DMG installer support Scripts?

I want to create MAC installer and would like to know which type of installer suitable for my requirements?
My Requirements are
I have bash script which does following operation
Get Hardware ID and some details specific to the hardware
Construct XML
Generate PLIST
Download an DMG file from internet (Using curl)
Mount DMG
Launch .app inside the DMG.
Can you please suggest me whether I can go the DMG or use PackageMaker to create .PKG file?
Thanks
Bala
I am not aware of anyways to trigger a script on mounting a DMG. But here you have a solution by creating a PKG with pre-install/post install scripts.
Your bash script can be added as pre-install or post-install script of the PKG. It doesn't really matter whether you are adding it as pre/post install scripts, since your PKG is just going to execute the scripts and not doing any file copy etc.
If needed you can embed the PKG in a DMG, so that it becomes a mount disk. Also DMG can show the license files if needed.

Choose bower install directory

This is a follow-up to this question. I'm using bower 0.7.1, and still cannot get the components to be installed anywhere else than in the components folder.
I tried adding the following line to my component.json, as per this PR:
"componentsDirectory": "public/components"
But it will still install in ./components.
I tried to create a .bowerrc file next to component.json:
{
"directory" : "public/components"
}
But I get this error when running bower install:
Error: Unable to parse local .bowerrc file: Unexpected token }
Any idea?
Actually the .bowerrc file does work, this was an issue with my IDE not saving the file properly:
{
"directory" : "public/components"
}
I'm still wondering why componentsDirectory still doesn't work in component.json, though.
While you can happily use Bower to manage the dependencies of your own personal projects, primarily the component.json is a description of your project for other people. If you share a component through the Bower registry the component.json goes with it to describe the dependencies. That is why your own local preferences like where to install components don't belong in there.
Another way to change installation directory temporarily is using --config option in command line:
bower install jquery --config.directory=/path/to/your/components
If you are creating this file in Notepad++, make sure the Encoding is set to "Encode in UTF-8 without BOM" and save as file type "Any".

How do I code my Add-on so that Firefox knows where to check for updates?

I am developing an Add-on and I am having trouble finding documentation that explains how to let Firefox know where to look for updates. If I post an .xpi on my website and the user downloads and installs that .xpi, does Firefox know to check that URL for changes? or do I have to put something in package.json?
Are you using the online builder or the SDK command-line tool? You can only specify the update url using the cfx tool:
https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/cfx
When building your add-on, you would run cfx xpi with the following arguments:
cfx xpi --update-link https://example.com/addon/latest
--update-url https://example.com/addon/update_rdf
If you have already built your add-on using builder, a hackier option would be to download the xpi, unzip it, manually edit install.rdf and then re-zip it. See MDN for documentation on install.rdf syntax:
https://developer.mozilla.org/en/Install_Manifests

Resources