Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: enterprise/installer/google_update_installer_fragment.wxs.xml

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « enterprise/installer/enterprise_standalone_installer.wxs.xml ('k') | enterprise/installer/test/build.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: enterprise/installer/google_update_installer_fragment.wxs.xml
diff --git a/enterprise/installer/google_update_installer_fragment.wxs.xml b/enterprise/installer/google_update_installer_fragment.wxs.xml
deleted file mode 100644
index 72f019fe8fe9eb07ba7eeb5684edaae8db5e8952..0000000000000000000000000000000000000000
--- a/enterprise/installer/google_update_installer_fragment.wxs.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version='1.0' encoding='windows-1252'?>
-<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
- <?define UpdateKeyPath = 'SOFTWARE\Google\Update' ?>
-
- <!-- This fragment assumes machine install (ALLUSER=1). -->
-
- <Fragment Id='FragmentGoogleUpdate' >
- <!-- Detect whether product is already registered with Google Update. -->
- <Property Id='PRODUCT_REGISTERED_VERSION'>
- <RegistrySearch Id='$(var.ProductNameLegalIdentifier)RegistrationSearch'
- Root='HKLM'
- Key='$(var.UpdateKeyPath)\Clients\$(var.ProductGuid)'
- Name='pv' Type='raw' />
- </Property>
-
- <Binary Id='GoogleUpdateSetup'
- SourceFile='$(var.GoogleUpdateMetainstallerPath)' />
-
- <!-- This fragment needs a component that can be referenced.
- Components must be in Directory[Ref] elements and cannot be empty.
- Thus, we have a registry value write that has no effect.
- To avoid multiple Directory elements with the 'ProgramFilesFolder' Id,
- assume that the product MSI has defined a it and reference it here. -->
- <DirectoryRef Id='ProgramFilesFolder'>
- <Directory Id='GoogleProgramDir' Name='Google'>
- <Directory Id='UpdateDir' Name='Update'>
-
- <Component Id='ComponentGoogleUpdate'
- Guid='6B528A57-0CD8-4b26-85F8-1CA05523B8F1'>
- <!-- Clear the last UI string before running the installer so we know
- that any value present upon rollback is fresh. -->
- <RemoveRegistryValue Key='$(var.UpdateKeyPath)\ClientState\$(var.ProductGuid)'
- Name='LastInstallerResultUIString'
- Root='HKLM' />
- <RemoveRegistryValue Key='$(var.UpdateKeyPath)'
- Name='LastInstallerResultUIString'
- Root='HKLM' />
- <?ifdef UsingGoogleUpdate_1_2_171_OrLater?>
- <RegistryValue Id='NonEmptyComponent' Action='write'
- Root='HKLM'
- Key='$(var.UpdateKeyPath)\ClientState\$(var.ProductGuid)'
- Name='EnterpriseInstall' Type='string' Value='$(var.ProductVersion)' />
- <?else?>
- <RegistryValue Id='NonEmptyComponent' Action='write'
- Root='HKLM'
- Key='$(var.UpdateKeyPath)\ClientState\$(var.ProductGuid)'
- Name='EnterpriseInstall' Type='integer' Value='1' />
- <?endif?>
- </Component>
-
- </Directory>
- </Directory>
- </DirectoryRef>
-
- <CustomAction Id='SetProductTagProperty'
- Property='ProductTag'
- Value='appguid=$(var.ProductGuid)&amp;appname=$(var.ProductName)&amp;needsAdmin=True'
- Execute='immediate'
- Return='check' />
- <CustomAction Id='AppendCustomParamsToProductTagProperty'
- Property='ProductTag'
- Value='[ProductTag]$(var.ProductCustomParams)'
- Execute='immediate'
- Return='check' />
- <CustomAction Id='AppendBrandToProductTagProperty'
- Property='ProductTag'
- Value='[ProductTag]&amp;brand=[BRAND]'
- Execute='immediate'
- Return='check' />
- <CustomAction Id='RollbackGoogleUpdateRegistration'
- BinaryKey='GoogleUpdateSetup'
- Impersonate='no'
- Execute='rollback'
- ExeCommand='/unregisterproduct "[ProductTag]"'
- Return='check' />
- <!-- TODO(omaha): If /registerproduct is deprecated in favor of an
- "install Omaha only" switch, we might need to update this fragment to
- write the pv value to the product's ClientState. Otherwise, Omaha
- might uninstall itself before the product's normal install flow writes
- these values. -->
- <CustomAction Id='InstallGoogleUpdateAndRegister'
- BinaryKey='GoogleUpdateSetup'
- Impersonate='no'
- Execute='deferred'
- ExeCommand='/registerproduct "[ProductTag]" /installsource enterprisemsi'
- Return='check' />
-
- <InstallExecuteSequence>
- <!-- Build tag property. -->
- <Custom Action='SetProductTagProperty'
- Before='AppendCustomParamsToProductTagProperty'>
- (($ComponentGoogleUpdate>2) OR REINSTALL) AND (NOT DISABLE_UPDATES)
- </Custom>
- <Custom Action='AppendCustomParamsToProductTagProperty'
- Before='AppendBrandToProductTagProperty'>
- (($ComponentGoogleUpdate>2) OR REINSTALL) AND (NOT DISABLE_UPDATES)
- </Custom>
- <Custom Action='AppendBrandToProductTagProperty'
- Before='RollbackGoogleUpdateRegistration'>
- (($ComponentGoogleUpdate>2) OR REINSTALL) AND (NOT DISABLE_UPDATES) AND (BRAND &lt;&gt; "")
- </Custom>
-
- <!-- Install Google Update before 'InstallFiles' so that brand, etc. will
- be present when the product is installed. -->
- <Custom Action='RollbackGoogleUpdateRegistration'
- Before='InstallGoogleUpdateAndRegister'
- >
- (($ComponentGoogleUpdate>2) OR REINSTALL) AND (NOT DISABLE_UPDATES) AND (PRODUCT_REGISTERED_VERSION = "")
- </Custom>
- <Custom Action='InstallGoogleUpdateAndRegister'
- Before='InstallFiles'>
- (($ComponentGoogleUpdate>2) OR REINSTALL) AND (NOT DISABLE_UPDATES)
- </Custom>
-
- <!-- Google Update will uninstall itself if the product is the only
- registered product, so no need to have an uninstall operation.
- Uninstall actions would not run when expected anyway if Omaha updates
- the product using a normal MSI installer (without this fragment).
- Information about this installer would be lost. Also, the uninstall
- action might run during the first update.-->
-
- </InstallExecuteSequence>
-
- </Fragment>
-</Wix>
« no previous file with comments | « enterprise/installer/enterprise_standalone_installer.wxs.xml ('k') | enterprise/installer/test/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698