Silent Installer for Chrome

1,614 views
Skip to first unread message

Tejas Shah

unread,
Jun 4, 2010, 6:25:15 PM6/4/10
to Chromium-dev
Hi,

Do we have anyway to install and uninstall chrome silently ? I tried to use mini_installer.exe from here , but it seems like in the end it pops up first use dialog. Instead of handling that dialog through test automation, I want to see if I can find a flag or someway to suppress all the dialog and first auto launch of chrome.

I tried /silent flag with mini_installer.exe but it still pops first use dialog. Is there any option like "no first use dialog" ?

Any pointers to help would be appreciated.

Thanks,
Tejas

Eric Roman

unread,
Jun 4, 2010, 6:53:53 PM6/4/10
to teja...@chromium.org, Chromium-dev
You can suppress the first-run dialog by creating a file named "First Run", in the same directory that contains chrome.exe.
(Or in case you have a system-wide install, you put it in the user data dir.)

I don't think there is an option in the installer for this.

See: src/chrome/browser/first_run.cc for more details.

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Glenn Wilson

unread,
Jun 4, 2010, 6:59:17 PM6/4/10
to ero...@chromium.org, teja...@chromium.org, Chromium-dev
From the right address this time...

Also, on Windows, you can create a file named "master_preferences", (no file extension) right next to chrome.exe and add this as the contents:

{
  "distribution" : {
    "skip_first_run_ui" : true
  }
}

Mark Larson (Google)

unread,
Jun 4, 2010, 7:04:28 PM6/4/10
to gwi...@chromium.org, ero...@chromium.org, teja...@chromium.org, Chromium-dev
You can supply the path to a master preferences file at install time: --installerdata="<your path here>" . I haven't tested that.

See src/chrome/installer/util/master_preferences.h for a good example of a master preferences file.

Scott Violet

unread,
Jun 4, 2010, 7:37:51 PM6/4/10
to teja...@chromium.org, Chromium-dev
--no-first-run ?

-Scott

On Fri, Jun 4, 2010 at 3:25 PM, Tejas Shah <teja...@chromium.org> wrote:

Tejas Shah

unread,
Jun 5, 2010, 2:07:01 AM6/5/10
to Scott Violet, Chromium-dev
Thanks everyone for the response...I tried several flags: '--silent', '/silent', '--no-first-run', 'skip_first_run_ui' etc.. None of them works while installing chrome using mini_installer.exe...I was always getting first launch of chrome related dialogs.

Finally, after speaking to Omaha Test team, I was able to learn that if you pass flag '--do-not-launch-chrome' to mini_installer.exe, it doesn't launch chrome and installation happens silently. After that, one can start chrome with '--no-first-run' and it works like a charm without any dialogs..

I am still looking for some similar flag for uninstall. Currently, uninstall comes with  user dara dir delete confirmation dialog. I want to suppress that. Any ideas for silent uninstall flag ?

Thanks,
Tejas

Robert Shield

unread,
Jun 5, 2010, 11:35:39 AM6/5/10
to teja...@chromium.org, Scott Violet, Chromium-dev
On Sat, Jun 5, 2010 at 2:07 AM, Tejas Shah <teja...@chromium.org> wrote:
Thanks everyone for the response...I tried several flags: '--silent', '/silent', '--no-first-run', 'skip_first_run_ui' etc.. None of them works while installing chrome using mini_installer.exe...I was always getting first launch of chrome related dialogs.

Finally, after speaking to Omaha Test team, I was able to learn that if you pass flag '--do-not-launch-chrome' to mini_installer.exe, it doesn't launch chrome and installation happens silently. After that, one can start chrome with '--no-first-run' and it works like a charm without any dialogs..


Note that in addition to --do-not-launch-chrome, you may want to use --do-not-register-for-update-launch. This second one also suppresses Omaha's launching of Chrome after a successful install (only relevant if you're installing with Omaha).
 
I am still looking for some similar flag for uninstall. Currently, uninstall comes with  user dara dir delete confirmation dialog. I want to suppress that. Any ideas for silent uninstall flag ?

Using 

--uninstall --force-uninstall 

ought to do what you want.

Tejas Shah

unread,
Jun 8, 2010, 6:27:42 PM6/8/10
to Robert Shield, Scott Violet, Chromium-dev
Thanks Robert.. '--force-uninstall ' flag worked..It seems like currently chrome is installed only for current user and after uninstall it leaves behind data dir. Is there a flag to delete data dir at uninstall silently..

How about install chrome for every user on the system instead of just the current/active user?

Thanks,
Tejas

Robert Shield

unread,
Jun 8, 2010, 7:23:05 PM6/8/10
to Tejas Shah, Scott Violet, Chromium-dev
ugh, and now from the correct account for posterity...

On Tue, Jun 8, 2010 at 6:27 PM, Tejas Shah <teja...@chromium.org> wrote:
Thanks Robert.. '--force-uninstall ' flag worked..It seems like currently chrome is installed only for current user and after uninstall it leaves behind data dir. Is there a flag to delete data dir at uninstall silently..


yep:
--delete-profile

 
How about install chrome for every user on the system instead of just the current/active user?


--system-level
Reply all
Reply to author
Forward
0 new messages