Opera

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Opera is a web browser available from http://www.opera.com.

Opera 12.x

The installer can be downloaded directly from http://ftp.opera.com/pub/opera/win/.

This package is for Wpkg.js version 1.21 or higher.

Opera 12 will be installed using 32 bit on 32 bit systems and 64 bit on 64 bit systems. Removing "Opera.lnk" is essential when older installations exist - installer hangs with modal dialog otherwise (Error Code: 72) and creates a Opera (version).lnk file.

After removal, Opera opens standard web browser, so we have to kill it. Adjust pskill/taskkill according to your systems, please.

<?xml version="1.0" encoding="UTF-8"?>
<packages>
  <package id="opera"
	name="Opera"  
	revision="%PKG_VERSION%"
	reboot="false"
	priority="8">

	<check type="uninstall" condition="versiongreaterorequal" path="Opera .+" value="%PKG_VERSION%" />
	<check architecture="x86" type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION%\Opera.exe" value="%PKG_VERSION%" />
	<check architecture="x64" type="file" condition="versiongreaterorequal" path="%PKG_DESTINATION64%\Opera.exe" value="%PKG_VERSION%" />

<!--	Download: http://ftp.opera.com/pub/opera/win/
	silent Switches: ttp://my.opera.com/community/forums/topic.dml?id=841872&t=1336989009&page=1#comment8139732
-->

	<variable name="PKG_VERSION" value="12.00.1467" />
	<variable name="PKG_EXEVERSION" value="1200" />
        <variable name="PKG_SOURCE"           value="%SOFTWARE%\packages\Opera" />
	<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\Opera" />
	<variable name="PKG_DESTINATION64" value="%PROGRAMFILES%\Opera x64" />
	<variable name="PKG_DESTINATIONx8664" value="%PROGRAMFILES(x86)%\Opera" />

	
	<install cmd='%SOFTWARE%\tools\pskill.exe opera.exe'>
	    <exit code='any' />
	</install>

	<install cmd='cmd /c if exist "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Opera.lnk" del /y "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Opera.lnk"' >
	    <exit code='any' />
	</install>
	<install include='remove' />
	<install architecture="x86" cmd='%PKG_SOURCE%\Opera_%PKG_EXEVERSION%_int_Setup.exe /silent /launchopera 0 /desktopshortcut 0 /quicklaunchshortcut 0 /setdefaultbrowser 0 /allusers' timeout='150' > 
	    <exit code='0' />
	</install>
	<install architecture="x64" cmd='%PKG_SOURCE%\Opera_%PKG_EXEVERSION%_int_Setup_x64.exe /silent /launchopera 0 /desktopshortcut 0 /quicklaunchshortcut 0 /setdefaultbrowser 0 /allusers' timeout='150' > 
	    <exit code='0' />
	</install>

	<upgrade include='remove' />
	<upgrade include='install' />
 
<!-- 32 bit Opera on 32 bit System -->
	<remove cmd='cmd /c IF EXIST "%PKG_DESTINATION%\Opera.exe" IF EXIST "%PKG_DESTINATION%\opera_install_log.xml" cmd /c "%PKG_DESTINATION%\Opera.exe" /uninstall /silent ' timeout='150' >
	    <exit code='any' />
	</remove>
<!-- 64 bit Opera on 64 bit System -->
	<remove architecture="x64" cmd='cmd /c IF EXIST "%PKG_DESTINATION64%\Opera.exe"  IF EXIST "%PKG_DESTINATION64%\opera_install_log.xml" cmd /c "%PKG_DESTINATION64%\Opera.exe" /uninstall /silent' timeout='150' >
	    <exit code='any' />
	</remove>
<!-- 32 bit Opera on 64 bit System -->
	<remove architecture="x64" cmd='cmd /c IF EXIST "%PKG_DESTINATIONx8664%\Opera.exe"  IF EXIST "%PKG_DESTINATIONx8664%\opera_install_log.xml" cmd /c "%PKG_DESTINATIONx8664%\Opera.exe" /uninstall /silent' timeout='150' >
	    <exit code='any' />
	</remove>
	<remove cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
	    <exit code='any' />
	</remove>

  </package>
</packages>


Opera 11.x

Starting with version 11.00, Opera use a new in-house installer instead of the classic msi installer. Some information and the new command line silent switches can be found on the Opera Desktop Team blog and in a forum thread

<?xml version="1.0" encoding="UTF-8"?>
<packages>
  <package
     id="opera"
     name="Opera"
     revision="%version%"
     reboot="false"
     priority="0">

    <variable name="version" value="11.60" />

    <variable name="filenameversion" value="1160" />

    <check type="uninstall" condition="exists" path="Opera %version%" />

    <install cmd='%SOFTWARE%\opera\Opera_%filenameversion%_int_Setup.exe /silent /launchopera 0 /desktopshortcut 0 /quicklaunchshortcut 0 /setdefaultbrowser 0 /allusers' />
    
    <upgrade cmd='%SOFTWARE%\opera\Opera_%filenameversion%_int_Setup.exe /silent /launchopera 0 /desktopshortcut 0 /quicklaunchshortcut 0 /setdefaultbrowser 0 /allusers' />

    <remove cmd='"%PROGRAMFILES%\Opera\Opera.exe" /uninstall /silent' />
  </package>
</packages>


Opera 10.x

The update function will be disabled, no desktop icon and no quicklaunch icon will be created.

The MSI installer package for 10.63 can be download from http://ftp.opera.com/pub/opera/win/1063/int/

You may also add the MSI property UPDATE_LAST_INSTALL=1 to the command line. This property will remove entries for older versions of Opera from the Windows installer.

<package
	id="opera"
	name="opera 10"
	revision="1053"
	reboot="false"
	priority="0">

	<check type="uninstall" condition="exists" path="Opera 10.63" />
 
	<install cmd='msiexec /i %SOFTWARE%\Opera\Opera_1063_int_Setup.msi /qn CREATE_DESKTOP_ICON_REG=0 CREATE_DESKTOP_ICON_REG_USR=0 CREATE_QUICKLAUNCH_ICON_REG=0 CREATE_QUICKLAUNCH_ICON_REG_USR=0 CREATE_STARTMENU_ICONS=1 CREATE_STARTMENU_ICONS_REG_USR=1 ISCHECKFORPRODUCTUPDATES=0 ALLUSERS=1' />

	<install timeout="15" cmd='cmd /C copy %SOFTWARE%\Opera\operaprefs_default.ini %PROGRAMFILES%\Opera /Y' />

	<upgrade cmd='msiexec /i %SOFTWARE%\Opera\Opera_1063_int_Setup.msi /qn CREATE_DESKTOP_ICON_REG=0 CREATE_DESKTOP_ICON_REG_USR=0 CREATE_QUICKLAUNCH_ICON_REG=0 CREATE_QUICKLAUNCH_ICON_REG_USR=0 CREATE_STARTMENU_ICONS=1 CREATE_STARTMENU_ICONS_REG_USR=1 ISCHECKFORPRODUCTUPDATES=0 ALLUSERS=1' />

	<install timeout="15" cmd='cmd /C copy %SOFTWARE%\Opera\operaprefs_default.ini %PROGRAMFILES%\Opera /Y' />

	<remove cmd='msiexec /x {87CC8013-56D1-43E1-A0A5-AD406B4EBA95} /qn' />
  </package>

Uninstall strings

  • 10.63: 87CC8013-56D1-43E1-A0A5-AD406B4EBA95
  • 10.60: 1D2C96C3-A3F3-49E7-B839-95279DED837F
  • 10.53: 1A0D2EFC-C4FC-446A-8BC3-57A54CE5EADD

operaprefs_default.ini

To meet some policies, operaprefs_default.ini is copied to the clients:

[System]
Multi User=1   ; If enabled Opera will use Windows profiles to store individual user settings
 
[User Prefs]:
Home URL=http://yourhomepage
Permanent Homepage=1  ; Removes all UI to change the home page and startup type
Show Default Browser Dialog=0
Level Of Update Automation=-1
Startup Type=2  ; use homepage

After removing Opera, the operaprefs_default.ini will stay in its directory.


Opera 10.0

<package id="opera"
         name="Opera"
         revision="10000.0"
         reboot="false"
         priority="0">

	<check type="logical" condition="or">
	  <check type="file" condition="versionequalto" path="%PROGRAMFILES(x86)%\Opera\Opera.exe" value="10.0.1750.0"  />
	  <check type="file" condition="versionequalto" path="%PROGRAMFILES%\Opera\Opera.exe" value="10.0.1750.0"  />
	</check>

	<install cmd='"%SOFTWARE%\Opera\Opera_1000_int_Setup.exe" /S /v"/qn ALLUSERS=1 CREATE_DESKTOP_ICON=0 CREATE_QUICKLAUNCH_ICON=0 CREATE_STARTMENU_ICONS=1 MULTI_USER_SETTING=1 INSTALLER_LANGUAGE=en"' />

	<upgrade cmd='"%SOFTWARE%\Opera\Opera_1000_int_Setup.exe" /S /v"/qn ALLUSERS=1 CREATE_DESKTOP_ICON=0 CREATE_QUICKLAUNCH_ICON=0 CREATE_STARTMENU_ICONS=1 MULTI_USER_SETTING=1 INSTALLER_LANGUAGE=en"' />

	<remove cmd='MsiExec.exe /X{2085F05D-24C5-4E27-B7B4-A51DE890FFC9} /QN /QUIET /NORESTART' />
</package>


Opera 9.64

Language File=C:\Program Files\Opera\locale\\.lng Language Files Directory=C:\Program Files\Opera\locale\

<?xml version="1.0" encoding="UTF-8"?>
<packages>
  <package
     id="opera"
     name="opera"
     revision="96401"
     reboot="false"
     priority="0">

    <check type="uninstall" condition="exists" path="Opera 9.64" />

    <install cmd='%COMSPEC% /c "start "title" /wait "%SOFTWARE%\opera\Opera_964_int_Setup.exe" /S /V"/qn CREATE_DESKTOP_ICON=0 CREATE_QUICKLAUNCH_ICON=0 CREATE_STARTMENU_ICONS=1 MULTI_USER_SETTING=1 INSTALLER_LANGUAGE=en""' />

    <upgrade cmd='%COMSPEC% /c "start "title" /wait "%SOFTWARE%\opera\Opera_964_int_Setup.exe" /S /V"/qn CREATE_DESKTOP_ICON=0 CREATE_QUICKLAUNCH_ICON=0 CREATE_STARTMENU_ICONS=1 MULTI_USER_SETTING=1 INSTALLER_LANGUAGE=en""' />

    <remove cmd='msiexec /qn /x{E1BBBAC5-2857-4155-82A6-54492CE88620}' />
  </package>
</packages>

To change the browser language, change "INSTALLER_LANGUAGE=en", i.e. to "INSTALLER_LANGUAGE=de" for German.