Ejemplo n.º 1
0
        /// <summary>
        /// Creates an EngineCleanup object that can be used to clean a machine of all files and regkeys a Burn bundle may have installed.
        /// </summary>
        /// <param name="Layout">Layout to be removed from the machine</param>
        public EngineCleanup(LayoutManager.LayoutManager Layout)
        {
            UpdateIds      = new List <string>();
            m_Layout       = Layout;
            RegistrationId = this.m_Layout.ActualBundleId;

            try
            {
                //// BUGBUG This needs to be replace by the new WiX authoring that supports this.  It doesn't exist yet.
                //foreach (WixTest.Burn.OM.BurnManifestOM.Registration.RegistrationElement.UpdateElement updateElement in m_Layout.BurnManifest.Registration.UpdateElements)
                //{
                //    UpdateIds.Add(updateElement.BundleId);
                //}
            }
            catch
            {
                // don't die if this isn't a Bundle that Updates other bundles.
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates an EngineCleanup object that can be used to clean a machine of all files and regkeys a Burn bundle may have installed.
        /// </summary>
        /// <param name="Layout">Layout to be removed from the machine</param>
        public EngineCleanup(LayoutManager.LayoutManager Layout)
        {
            UpdateIds = new List<string>();
            m_Layout = Layout;
            RegistrationId = this.m_Layout.ActualBundleId;

            try
            {
                //// BUGBUG This needs to be replace by the new WiX authoring that supports this.  It doesn't exist yet.
                //foreach (WixTest.Burn.OM.BurnManifestOM.Registration.RegistrationElement.UpdateElement updateElement in m_Layout.BurnManifest.Registration.UpdateElements)
                //{
                //    UpdateIds.Add(updateElement.BundleId);
                //}
            }
            catch
            {
                // don't die if this isn't a Bundle that Updates other bundles.
            }
        }