Sequencing Google Chrome 25

Last September, I wrote a popular blog post about sequencing Google Chrome 21 with Microsoft App-V 4.6. Google has released a couple of new versions of Google Chrome since then.

Reading through the comments of the blog post I find that applying mandatory User Preferences is the most difficult part of the package.

Let’s take a look at how to create a successful Google Chrome 25 App-V package on Windows 7 x64. I used App-V 4.6 SP2 because SP1 has some issues with OSD scripting.

In this blog I am going to describe the steps necessary to make the package work. I only describe the options to make the package work, not the complete steps to create a App-V package.

 

Download Google Chrome from here.

This is an Enterprise edition of the Chrome browser.

 
Start the Microsoft App-V 4.6 Sequencer and walkthrough the wizard.  
If the monitoring phases is started, open a command prompt and start the installation using:

START /WAIT GoogleChromeStandaloneEnterprise.MSI ALLUSERS=TRUE /QB-

 

image
After the installation, remove the folder:

“%ProgramFiles(X86)%\Google\Chrome\Application\*version*\Installer”

 
Enter the command:
REG ADD HKLM\SOFTWARE\Wow6432Node\Google\Update /v AutoUpdateCheckPeriodMinutes /d 0 /t REG_SZ /f

 

When copying and pasting, pay special attention to the quotation marks.

image
Enter the command:
REG ADD “HKLM\System\CurrentControlSet\Control\Session Manager” /v PendingFileRenameOperations /d “” /t REG_MULTI_SZ /f

 

When copying and pasting, pay special attention to the quotation marks.

 
Start Google Chrome.

Change all the preferences that your prefer, like;
– The Default start page
– Proxy settings
– Etc.

 
Close Google Chrome.  
Open the folder:
%LOCALAPPDATA%\Google\Chrome\User Data\Default
 
Copy the file: Preferences to a save place.

This file contains all the settings that were changed.

 
Close the App-V Monitoring phase and save
the package.
 
Copy the Preferences file into the package directory.  
Open the Google Chrome OSD file with a text editor (like Notepad).  
Create a startup script below <DEPENDENCY>

  <SCRIPT EVENT=”LAUNCH” TIMING=”PRE” PROTECT=”TRUE” WAIT=”TRUE” TIMEOUT=”5″>
    <SCRIPTBODY>copy
\\server\\share\\packages\\google\\chrome\\Preferences “%LOCALAPPDATA%\\Google\\Chrome\\User Data\\Default”</SCRIPTBODY>
  </SCRIPT>

 

image
Change the \\server\share\package part of the script.  
Save the OSD file.  
Test the package.  

 

When using this way of applying mandatory settings, every time the user launches the browser the mandatory settings are applied. If you want to preserve the user’s preferences you can create a script that will only copy the file once.

Can’t get the solution to work? Contact me and let me do the trick.

Advertisements
This entry was posted in App-V and tagged , , , , , , , , . Bookmark the permalink.

17 Responses to Sequencing Google Chrome 25

  1. Ronald Bakker says:

    Hi,

    Also works for version 26 and App-V 5. Thanks!

    Cheers!

  2. Jesse says:

    I tried this with App-V 5 and still need to move the version folder up one level to the chrome exe file. Then chrome will run when sequenced but none of the plugins work including flash. Wondering if you can let me know how you were able to get this to work

  3. Peter says:

    Hi,

    Special attention for the Preferences file. Look at the link below,

    Edit the Sync_Promo section and disable opening the default Google Sign in tab!
    http://superuser.com/questions/432822/disabling-sign-in-tab-on-startup

  4. Sean says:

    I have tried the above. While chrome does launch no pages will open, not the settings or the sign in or any other random page. If i RDP into the citrix server as the admin and run the chrome.exe manually it works fine, just not running it as appved through citrix. Im using appv5 SP1 and shared cache. Any advice would be great.
    I have tried moving the location of the exe in the package but that doesn’t help either.
    The chrome version is 27.
    Thanks

  5. ben says:

    Use these switches : –allow-no-sandbox-job –no-default-browser-check –skip-hwid-check

  6. When I try Chrome after packaging I cant download/install the addons from google store.
    I get following error
    “package is invalid could not create directory for unzipping”
    I sequensed Chrome version 29.0.1547.66 if that could be the reason?

  7. RenaatVH says:

    Ronnie Akesson: I have the same exact problem in our environment using version 30.0.
    if you have found any solution, could you share it here ?

    Kind regards

  8. Frans says:

    I have sequences Chrome 30 and other versions with success. All is working fine, but every time the Preferences file in “%LOCALAPPDATA%\Google\Chrome\User Data\Default” gets overwritten with a new one.
    Has anyone a solution for this?

    Kind regards

    • Frans says:

      Frans :
      I have sequences Chrome 30 and other versions with success. All is working fine, but every time the Preferences file in “%LOCALAPPDATA%\Google\Chrome\User Data\Default” gets overwritten with a new one.
      Has anyone a solution for this?
      Kind regards

      I discovered that i had %LOCALAPPDATA% redirected to a network share through Group Policy and then the Preferences file gets overwritten. If %LOCALAPPDATA% is on a local disk it works fine.

  9. Frans says:

    IT Tech Log :
    Hi Frans,
    Did you use App-V 4 or 5?
    Can you download/install the addons from google store?
    Did you use any switch?

    I use App-V 4.6 SP2 and i can download and install addons now. I use the switch –no-sandbox –user-data-dir=”%USERPROFILE%\AppData\Roaming\Google\Chrome\User Data” –disk-cache-dir=”%LocalAppData%\Google\Chrome\User Data”
    I’ve used %USERPROFILE% because i have %AppData% redirected, but i do have roaming profiles.

  10. Frans says:

    And before i forget, i also had to untick “Enforce Security Descriptors” before saving the package.

  11. Renaat says:

    Dear Frans.
    Since you are using the “-no-sandbox” switch I presume you are ok with your users receiving the message that the browser is not secure ? Or did you find a way around this part as well ? I can sequence chrome 30.0 without any problems, yet am unable to install apps unless I provide that switch … yet when I do the browser always shows “… -no-sandbox. Stability and security will suffer.”

    • Frans says:

      Hi Renaat,
      If you need to install apps you need to specify the -no-sandbox parameter if Chrome is virtualized. The yellow security notification bar is hardcoded in Chrome. I’ve accepted the bar for i also need to install chrome apps.

  12. ibroadbent says:

    Thanks for the post, it’s a useful guide.
    You may want to edit step 3 in the table above to include the msiexec command, change
    “START /WAIT GoogleChromeStandaloneEnterprise.MSI …” to
    “START /WAIT msiexec GoogleChromeStandaloneEnterprise.MSI …”

    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s