You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Installing extension from setup file.
I need to install my extension from a setup.exe file. It also installs extension for other browsers by means of writing into register for Chrome and placing files to specific places in the file system for Firefox.How can I do the same thing for Opera? I don't want user to see any additional questions from browser during the installation.
Try making a copy of Opera's program and settings folder (C:\program files\Opera, C:\Users\user\AppData\[local and roaming]\Opera ), then install an extension through the browser and make a diff of the backed-up folders (with something like WinMerge or KDiff) to see what's changed.
I think all settings are stored in files, although some stuff may live in the registry...
I think all settings are stored in files, although some stuff may live in the registry...
To my knowledge, nothing about extensions is stored in the registry.
The .oex itself gets placed in %LocalAppData%\Opera\Opera\widgets and then the widgets.dat file (an XML file in the same folder) gets updated with a new section which gives the extension a unique ID. A folder with the same name as the ID gets created in the same location, which stores all the extension's data.
I would try adding the .oex file and updating widgets.dat first. Opera might automatically generate the extension's data folder once it realizes it doesn't exist.
The .oex itself gets placed in %LocalAppData%\Opera\Opera\widgets and then the widgets.dat file (an XML file in the same folder) gets updated with a new section which gives the extension a unique ID. A folder with the same name as the ID gets created in the same location, which stores all the extension's data.
I would try adding the .oex file and updating widgets.dat first. Opera might automatically generate the extension's data folder once it realizes it doesn't exist.
Opera 12.15 - Win 8 Pro x64 All my Opera tools -Tab Vault: Save tabs for later -AutoStack: tabs opened from a stack stay there
Remember to prompt the user if they want the extension or not. Some may not take to kindly to it if you force-install stuff they feel they haven’t authorized. Also, the files referenced here cannot be edited while Opera is running. The changes would just be overwritten.
The best option is probably to open a page in Opera explaining what the extension is and display a big fat ‘install extension’ button.
The best option is probably to open a page in Opera explaining what the extension is and display a big fat ‘install extension’ button.
I won't say it's not possible. One example of extension installation from exe is the "All browsers" Adlesse extension installer - http://adlesse.com/download. You might want to use Process Monitor to find out what the installer does (where does it place the files) and then try to do it yourself with your extension.
Windows 7 SP1 x86 edition and Windows XP Service Pack 3.
If you need any help from me with regards to Opera, please make a comment on any of my blog posts.
Support Opera wishes
If you need any help from me with regards to Opera, please make a comment on any of my blog posts.
Support Opera wishes
Forums » Dev.Opera » Opera Extensions Development Discussions