• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    How to pre-configure Opera from a batch file

    Opera for Windows
    5
    9
    1733
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • spacemansam
      spacemansam last edited by

      I wrote a batch file to automatically install and configure the standard apps on a new build. I can install Opera with a Chocolatey command, but I would also like to pre-configure certain settings which every new user would get. I found a very old (ca. 2001) post about using an opera.ini file, but the current version does not appear to have this file, and the documentation that I found makes no mention of many of the settings that can now be made from the GUI.

      Reply Quote 0
        donq 1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by

        https://www.reddit.com/r/operabrowser/wiki/opera/installer_commands

        Reply Quote 0
          spacemansam 1 Reply Last reply
        • spacemansam
          spacemansam @burnout426 last edited by

          @burnout426 Thanks, but that's not what I asked for. I am already using some of those switches.

          What I need is the ability to configure Opera from a batch file, either before, during or immediately after installation, to set the following, among others:
          Set "show bookmark bar" ON
          Set "block ads" ON
          Set Block trackers" ON
          Set VPN ON
          Set "Ask where to save each download" ON

          In addition, I want to preinstall some add-ons, including:
          "I don't care about cookies"
          "Google translate"

          These all need to be set when Opera is installed, before it is launched for the first time, so they will be the default settings and add-ons for every new user.

          Reply Quote 0
            leocg zalex108 burnout426 3 Replies Last reply
          • leocg
            leocg Moderator Volunteer @spacemansam last edited by

            @spacemansam I don't think it's possible.

            Reply Quote 0
              1 Reply Last reply
            • spacemansam
              spacemansam last edited by

              I found out how to do it in Firefox and Google Chrome.
              Maybe someone else out there knows how?

              Reply Quote 0
                leocg 1 Reply Last reply
              • zalex108
                zalex108 @spacemansam last edited by

                @spacemansam

                Hi,

                AceStream auto installs it's Extension when a "New" Browser is launched.
                It locates the CRX locally.
                Then the Browser updates to the newer version.

                You may check it to find out how is made all that magic xD

                For some Settings, check out the Help to find out what and where are the important files.

                Some of them can be used on other users/computers, try modifying a Profile and Copy/Paste the settings.
                It would need to be applied after first Opera restart.

                --
                "Off Topic Tip"
                Follow the Signature's Backup | Reset link.
                Take the opportunity to start a Backup plan and even create a Template Profile.


                Windows 7 (x64)
                Opera Back up | Reset

                "You cannot know the meaning of your life until you are connected to the power that created you". · Shri Mataji Nirmala Devi

                Reply Quote 0
                  1 Reply Last reply
                • leocg
                  leocg Moderator Volunteer @spacemansam last edited by

                  @spacemansam I guess Opera doesn't support it.

                  Reply Quote 0
                    1 Reply Last reply
                  • burnout426
                    burnout426 Volunteer @spacemansam last edited by

                    @spacemansam Sorry, my bad.

                    You can try editing the pref_default_overrides in the installation directory to see if it will override some preferences. After enabling an option and closing Opera, you'd have to look in the "Preferences" file in the Opera profile folder though to see what node(s) the preference is under and what name and type of node it is and what type its value is. JSONedit will help with that.

                    If that works, you'd have to figure out how to edit the override file with a batch file. It's JSON, so...

                    If that doesn't work, you'd have to add/modify the settings to each Opera profile.

                    Besides that, I don't know. Opera doesn't support policies from the registry like Chrome and Vivaldi do.

                    As for extensions, I'm not sure what you can do there besides placing unpacked versions in the "extensions" folder in each Oepra profile folder. You'd install the extensions in Chrome, close Chrome, and use the unpacked folders from the extensions folder in the Chrome profile. But, even if this works, they extensions would problem be off by default or the user would have to click "install" for each on the opera://extensions page. I don't think you'll get that far though as installed extensions have to be approved by the user and are protected by Opera with keys. You'd have to go through some hoops to get it to work. You might have more luck with standalone installations of Opera though as they're a little lax when it comes to extension protection.

                    Reply Quote 0
                      1 Reply Last reply
                    • donq
                      donq @spacemansam last edited by

                      @spacemansam
                      Maybe it would be simpler just to install Opera and copy properly configured profile folder over? Possible you have to set few registry keys - but most information (settings and extensions etc) is contained in profile folder.

                      Reply Quote 0
                        1 Reply Last reply
                      • Locked by  leocg leocg 
                      • First post
                        Last post

                      Computer browsers

                      • Opera for Windows
                      • Opera for Mac
                      • Opera for Linux
                      • Opera beta version
                      • Opera USB

                      Mobile browsers

                      • Opera for Android
                      • Opera Mini
                      • Opera Touch
                      • Opera for basic phones

                      • Add-ons
                      • Opera account
                      • Wallpapers
                      • Opera Ads

                      • Help & support
                      • Opera blogs
                      • Opera forums
                      • Dev.Opera

                      • Security
                      • Privacy
                      • Cookies Policy
                      • EULA
                      • Terms of Service

                      • About Opera
                      • Press info
                      • Jobs
                      • Investors
                      • Become a partner
                      • Contact us

                      Follow Opera

                      • Opera - Facebook
                      • Opera - Twitter
                      • Opera - YouTube
                      • Opera - LinkedIn
                      • Opera - Instagram

                      © Opera Software 1995-