Echo_Platoon Posted May 28, 2007 Share Posted May 28, 2007 (edited) 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_ICONQuick Launch Shortcut: CREATE_QUICKLAUNCH_ICONStart Menu Shortcut: CREATE_STARTMENU_ICONSIf 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=1The switches to use for unattended install are /passive and /qnExample command line install:"Opera installer.msi" /passive /qn CREATE_DESKTOP_ICON=1 CREATE_QUICKLAUNCH_ICON=1 CREATE_STARTMENU_ICONS=1 ALLUSERS=1This will do an unattended install of Opera and create Desktop, Quick Launch, and Start Menu shortcuts in all users' profiles. Edited May 28, 2007 by Echo_Platoon Link to comment Share on other sites More sharing options...
radix Posted May 29, 2007 Share Posted May 29, 2007 (edited) 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). Edited May 29, 2007 by radix Link to comment Share on other sites More sharing options...
Echo_Platoon Posted May 30, 2007 Author Share Posted May 30, 2007 (edited) 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. Edited May 30, 2007 by Echo_Platoon Link to comment Share on other sites More sharing options...
Echo_Platoon Posted May 30, 2007 Author Share Posted May 30, 2007 radix, did you use what I posted when making your switchless installer? Just wondering. Link to comment Share on other sites More sharing options...
radix Posted May 30, 2007 Share Posted May 30, 2007 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. Link to comment Share on other sites More sharing options...
Echo_Platoon Posted May 31, 2007 Author Share Posted May 31, 2007 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. Link to comment Share on other sites More sharing options...
Martin H Posted December 18, 2007 Share Posted December 18, 2007 (edited) 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=0Anyway, 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 Edited December 18, 2007 by Martin H Link to comment Share on other sites More sharing options...
jinkazama Posted December 19, 2007 Share Posted December 19, 2007 Hi, someone can help me with language setting, i've read setup.ini in language section:Location=Opera_installer.msi[Languages]count=23default=402I 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 Link to comment Share on other sites More sharing options...
Martin H Posted December 23, 2007 Share Posted December 23, 2007 Here is the captured reg keys that Opera sets when you choose 'OK' to make it the default browser :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" Link to comment Share on other sites More sharing options...
radix Posted December 23, 2007 Share Posted December 23, 2007 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. Link to comment Share on other sites More sharing options...
Martin H Posted December 23, 2007 Share Posted December 23, 2007 Yes, i know However, personally then i preffer to include the exact reg entries which Opera itself adds while settings itself up as the default browser Link to comment Share on other sites More sharing options...
Martin H Posted January 3, 2008 Share Posted January 3, 2008 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 :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' :msistub.exe "Opera installer.msi" /qn MULTI_USER_SETTING=0 CREATE_STARTMENU_ICONS=1 CREATE_DESKTOP_ICON=1xcopy profile\*.* "%programfiles%\Opera\" /e /h /kmove NPSWF32.dll "%programfiles%\Opera\program\plugins\"regedit /s setup.regNow 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 :;!@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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now