Thursday 21 July 2011

How to package google chrome

 The media given is an exe but I downloaded "GoogleChromeStandaloneEnterprise.msi" as setup capture generates many ICE errors.

The product code of previous version of google chrome and this version is same, So used wise script to support upgrade.

 Created "Chrome Settings.msi" for the settings of the package.
- As the product codes are same..If we add the settings files which stores in user profile folder and add active set-up to get the settings for every user, the active setup does not work as it would have ran active setup for previous version of application.
Tried to remove active setup registry from every user if it had ran with other user, but could not achive through VBscript also.

1. Created transform file for GoogleChromeStandaloneEnterprise.msi 
- Added CA_Uninstall1 to uninstall the application.
-Added custome actions  CA_Delete_Folder, CA_Delete_Folder2, CA_Delete_Folder3, CA_Del_Reg2,  and CA_remove2.
- Disabled the custom action " CallUninstaller ".
2. Created Chrome Settings.msi
- Added files to [LocalAppDataFolder]Google\Chrome\
(-The files First Run , service State and Local State under Local Settings\Application Data\Google\Chrome\User Data which contains the settings as per the given document
- Added file "Preferences" to choose Google as “Choose a search engine” under Local Settings\Application Data\Google\Chrome\User Data\Default.)

-Added active setup key
-the application is made to hide ARP entry as it is a settings msi

3. Created  Install Google Chrome.EXE using wise script editor add added
-Commnad to check if previous verion is installed.
-Command to uninstall the previous verion of google chorme.
- Command to execute "Delete profiles.vbs" which deletes folder   "[LocalAppDataFolder]Google\Chrome"  from every user.
(the settings for the application resides in the files from this location)
- Command line to install batch file which installs msi and mst.
(The msi and mst files could not be run directly from wisescript as the characters of file name exceeds 32 character)
-Commnad line to install Chrome settings.msi.
- Commnad to delete GoogleUpdate.exe from C:\ProgramFiles\Google\Update
(Which suppresse to check for update when you click on "About Google Chrome" in "Settings").

4. Created Uninstall Google Chrome.EXE to uninstalla the application and chrome settings application.  

 - The keys HKLM\Software\Google\Update and HKCU\Software\Google keys are not deleted as the sub keys under these keys were not specific to Chrome application and may share with other applications also.

-Repair of the application is not supported.

No comments:

Post a Comment