Help - Search - Members - Calendar
Full Version: Opera 9.21 Unattended Install
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Echo_Platoon
I am writing this just for information for people who want to know this. I was doing an unattended install of Opera 9.21 but found that the base unattended install doesn't create any shortcuts whatsoever. I tried using the MSI PROPERTY of DESKTOPSHORTCUT=1 but that didn't work. After looking through forums and not finding an answer about no shortcuts being created during unattended install, I decided to open Opera's MSI installer file in Orca. In Orca, I found under the CustomAction table about what was the right MSI PROPERTY for creating shortcuts. Below are the MSI PROPERTIES for creating shortcuts for an unattended install of Opera:

Desktop Shortcut: CREATE_DESKTOP_ICON
Quick Launch Shortcut: CREATE_QUICKLAUNCH_ICON
Start Menu Shortcut: CREATE_STARTMENU_ICONS

If you set any of these equal to 1, then the shortcut will be created.

If you want the shortcuts to show up on all users' profiles, then use the following MSI PROPERTY: ALLUSERS=1

The switches to use for unattended install are /passive and /qn

Example command line install:

"Opera installer.msi" /passive /qn CREATE_DESKTOP_ICON=1 CREATE_QUICKLAUNCH_ICON=1 CREATE_STARTMENU_ICONS=1 ALLUSERS=1

This will do an unattended install of Opera and create Desktop, Quick Launch, and Start Menu shortcuts in all users' profiles.
radix
Thanks .
Not bad for the first post.
I made one like this:
Put msistub.exe and Opera.msi in a folder and create a 7-Zip archive.

This is config.txt:

;!@Install@!UTF-8!
RunProgram="msistub Opera.msi /passive /qn CREATE_DESKTOP_ICON=1 CREATE_QUICKLAUNCH_ICON=1 CREATE_STARTMENU_ICONS=1 ALLUSERS=1"
;!@InstallEnd@!

and build installer with 7zS.sfx, config.txt and Opera.7z , than I changed installer icon with Resource Hacker (I extracted the icon from Opera.exe previous installed, with AT File Mole).
Echo_Platoon
At the time I posted this, I didn't get a chance to build the switchless installer. I am creating it now, actually. I use the 7-zip method as well when making switchless installers.

Edit: I just finished making my switchless installer. It works beautifully. thumbup.gif
Echo_Platoon
radix, did you use what I posted when making your switchless installer? Just wondering.
radix
QUOTE (Echo_Platoon @ May 30 2007, 08:28 PM) *
radix, did you use what I posted when making your switchless installer? Just wondering.

Yes, in my new silent installer.
My old silent installer has just /passive switch.
Thx.
Echo_Platoon
QUOTE (radix @ May 30 2007, 03:09 PM) *
QUOTE (Echo_Platoon @ May 30 2007, 08:28 PM) *
radix, did you use what I posted when making your switchless installer? Just wondering.

Yes, in my new silent installer.
My old silent installer has just /passive switch.
Thx.


No problem. I'm glad I could help.
Martin H
Firstly, i apologise in advance for posting to this somewhat old thread, but since the subject is exactly the same, then i thought that there where no point in starting a new thread.

I have just changed from using Firefox to Opera, and i started by using the classic installer(wise) in my 7z switchless installer, since it was a little smaller in size than the msi installer. However, since i always preffer to have individual user profiles disabled in the apps i use, then i thought about maybe the msi installer possibly had a switch for that, since msi installers freqently have many switches available, so i opened the msi installer in orca and saw there indeed where a switch for that. So if anyone would like to disable user profile support in Opera i.e. having the profile folder in '%programfiles%\Opera\' instead of in '%appdata%\Opera\', then use the following switch :

MULTI_USER_SETTING=0

Anyway, before i opened the msi installer in orca, then i had searched alot and couldn't find any info about such a switch existing, so that's why i decided to post it here smile.gif
jinkazama
Hi, someone can help me with language setting, i've read setup.ini in language section:

Location=Opera_installer.msi
[Languages]
count=23
default=402

I need an italian installation in multilanguage setup, i've changed default value in setup.ini but how can i say to unattended installer to use this indication?
Thank you
Martin H
Here is the captured reg keys that Opera sets when you choose 'OK' to make it the default browser :
CODE

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Opera.Image]
@="Image"

[HKEY_CURRENT_USER\Software\Classes\Opera.HTML]
@="HTML Document"

[HKEY_CURRENT_USER\Software\Classes\Opera.HTML\DefaultIcon]
@="C:\\Program Files\\Opera\\Opera.exe,1"

[HKEY_USERS\S-1-5-21-796845957-1563985344-1060284298-1000_Classes\Opera.Image]
@="Image"

[HKEY_USERS\S-1-5-21-796845957-1563985344-1060284298-1000_Classes\Opera.HTML]
@="HTML Document"

[HKEY_USERS\S-1-5-21-796845957-1563985344-1060284298-1000_Classes\Opera.HTML\DefaultIcon]
@="C:\\Program Files\\Opera\\Opera.exe,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html]
@="Opera.HTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm]
@="Opera.HTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https]
"EditFlags"=hex:02,00,00,00
"URL Protocol"=

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec]
@="\"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec\Application]
@="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command]
@="\"C:\\Program Files\\Opera\\Opera.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http]
"EditFlags"=hex:02,00,00,00
"URL Protocol"=

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\ddeexec]
@="\"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\ddeexec\Application]
@="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command]
@="\"C:\\Program Files\\Opera\\Opera.exe\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec]
@="\"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec\Topic]
@="WWW_OpenURL"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec\Application]
@="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec]
@="\"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec\Topic]
@="WWW_OpenURL"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec\Application]
@="Opera"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet]
@="Opera.exe"
radix
QUOTE (Martin H @ Dec 23 2007, 10:40 PM) *
Here is the captured reg keys that Opera sets when you choose 'OK' to make it the default browser :

Only this key and value data it matters.
HKCR\HTTP\shell\open\command\

Cheers.
Martin H
Yes, i know smile.gif

However, personally then i preffer to include the exact reg entries which Opera itself adds while settings itself up as the default browser smile.gif
Martin H
Instructions for making a pre-configured Opera v9.25 silent switchless installer, that's setup as the default browser :

Download Opera v9.25 msi installer.
Download the flash player plugin for Opera/Firefox.
Extract the flash player installer with 7-Zip and copy the file 'NPSWF32.dll' into a folder called 'temp' and delete all the other files.
Start the Opera installer and when you are presented with the welcome screen, then go into %temp% and copy the opera msi installer into your 'temp' folder and then continue with the install, and disable the option for having seperate user profiles.
Configure Opera as you please and then close it.
Go into '%programfiles%\Opera\' and copy these two folders into a folder named 'profile' and which you place into the 'temp' folder: 'profile' and 'mail'.
Go into 'temp\profile\profile\' and delete the folder 'cache4'(it's Opera's webpage cache).
Download msistub.exe and place it into 'temp'.
Copy paste the following into a regfile called 'setup.reg' and place it into the 'temp' folder :
CODE
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Opera.Image]
@="Image"

[HKEY_CURRENT_USER\Software\Classes\Opera.HTML]
@="HTML Document"

[HKEY_CURRENT_USER\Software\Classes\Opera.HTML\DefaultIcon]
@="C:\\Program Files\\Opera\\Opera.exe,1"

[HKEY_USERS\S-1-5-21-1957994488-1580818891-1708537768-1000_Classes\Opera.Image]
@="Image"

[HKEY_USERS\S-1-5-21-1957994488-1580818891-1708537768-1000_Classes\Opera.HTML]
@="HTML Document"

[HKEY_USERS\S-1-5-21-1957994488-1580818891-1708537768-1000_Classes\Opera.HTML\DefaultIcon]
@="C:\\Program Files\\Opera\\Opera.exe,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet]
@="Opera.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.html]
@="Opera.HTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http]
"EditFlags"=hex:02,00,00,00
"URL Protocol"=

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\ddeexec]
@="\"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\ddeexec\Application]
@="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command]
@="\"C:\\Program Files\\Opera\\Opera.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https]
"EditFlags"=hex:02,00,00,00
"URL Protocol"=

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec]
@="\"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\ddeexec\Application]
@="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command]
@="\"C:\\Program Files\\Opera\\Opera.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.htm]
@="Opera.HTML"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec]
@="\"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec\Topic]
@="WWW_OpenURL"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.Image\shell\open\ddeexec\Application]
@="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec]
@="\"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec\Topic]
@="WWW_OpenURL"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Opera.HTML\shell\open\ddeexec\Application]
@="Opera"

Copy/paste the following into a batchfile called 'setup.cmd' and place into 'temp' :
CODE
msistub.exe "Opera installer.msi" /qn MULTI_USER_SETTING=0 CREATE_STARTMENU_ICONS=1 CREATE_DESKTOP_ICON=1
xcopy profile\*.* "%programfiles%\Opera\" /e /h /k
move NPSWF32.dll "%programfiles%\Opera\program\plugins\"
regedit /s setup.reg

Now make a 7z SFX installer of the contents inside the 'temp folder' and use the modified SFX module to do it, so that you can hide the console window and hide the unpacking window completely without using extra tools(it can also run msi's directly). Copy/paste the following into your utf-8 'config.txt' file :
CODE
;!@Install@!UTF-8!
RunProgram="hidcon:setup.cmd"
GUIMode="2"
;!@InstallEnd@!

Make the 7z SFX installer(i won't tell you how - if you don't know allready, then search for a guide).
Finished smile.gif




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.