private bool BuildResolvedSettings(DeployManifest manifest)
 {
     if (this.Product != null)
     {
         manifest.Product = this.Product;
     }
     else if (string.IsNullOrEmpty(manifest.Product))
     {
         manifest.Product = Path.GetFileNameWithoutExtension(manifest.AssemblyIdentity.Name);
     }
     if (this.Publisher != null)
     {
         manifest.Publisher = this.Publisher;
     }
     else if (string.IsNullOrEmpty(manifest.Publisher))
     {
         string registeredOrganization = Util.GetRegisteredOrganization();
         if (!string.IsNullOrEmpty(registeredOrganization))
         {
             manifest.Publisher = registeredOrganization;
         }
         else
         {
             manifest.Publisher = manifest.Product;
         }
     }
     return true;
 }
        private bool BuildDeployManifest(DeployManifest manifest)
        {
            if (manifest.EntryPoint == null)
            {
                Log.LogErrorWithCodeFromResources("GenerateManifest.NoEntryPoint");
                return false;
            }

            if (SupportUrl != null)
                manifest.SupportUrl = SupportUrl;

            if (DeploymentUrl != null)
                manifest.DeploymentUrl = DeploymentUrl;

            if (_install.HasValue)
                manifest.Install = (bool)_install;

            if (_updateEnabled.HasValue)
                manifest.UpdateEnabled = (bool)_updateEnabled;

            if (_updateInterval.HasValue)
                manifest.UpdateInterval = (int)_updateInterval;

            if (_updateMode.HasValue)
                manifest.UpdateMode = (UpdateMode)_updateMode;

            if (_updateUnit.HasValue)
                manifest.UpdateUnit = (UpdateUnit)_updateUnit;

            if (MinimumRequiredVersion != null)
                manifest.MinimumRequiredVersion = MinimumRequiredVersion;

            if (manifest.Install) // Ignore DisallowUrlActivation flag for online-only apps
                if (_disallowUrlActivation.HasValue)
                    manifest.DisallowUrlActivation = (bool)_disallowUrlActivation;

            if (_mapFileExtensions.HasValue)
                manifest.MapFileExtensions = (bool)_mapFileExtensions;

            if (_trustUrlParameters.HasValue)
                manifest.TrustUrlParameters = (bool)_trustUrlParameters;

            if (_createDesktopShortcut.HasValue)
                manifest.CreateDesktopShortcut = CreateDesktopShortcut;

            if (SuiteName != null)
                manifest.SuiteName = SuiteName;

            if (ErrorReportUrl != null)
                manifest.ErrorReportUrl = ErrorReportUrl;

            return true;
        }
 private bool BuildDeployManifest(DeployManifest manifest)
 {
     if (manifest.EntryPoint == null)
     {
         base.Log.LogErrorWithCodeFromResources("GenerateManifest.NoEntryPoint", new object[0]);
         return false;
     }
     if (this.SupportUrl != null)
     {
         manifest.SupportUrl = this.SupportUrl;
     }
     if (this.DeploymentUrl != null)
     {
         manifest.DeploymentUrl = this.DeploymentUrl;
     }
     if (this.install.HasValue)
     {
         manifest.Install = this.install.Value;
     }
     if (this.updateEnabled.HasValue)
     {
         manifest.UpdateEnabled = this.updateEnabled.Value;
     }
     if (this.updateInterval.HasValue)
     {
         manifest.UpdateInterval = this.updateInterval.Value;
     }
     if (this.updateMode.HasValue)
     {
         manifest.UpdateMode = this.updateMode.Value;
     }
     if (this.updateUnit.HasValue)
     {
         manifest.UpdateUnit = this.updateUnit.Value;
     }
     if (this.MinimumRequiredVersion != null)
     {
         manifest.MinimumRequiredVersion = this.MinimumRequiredVersion;
     }
     if (manifest.Install && this.disallowUrlActivation.HasValue)
     {
         manifest.DisallowUrlActivation = this.disallowUrlActivation.Value;
     }
     if (this.mapFileExtensions.HasValue)
     {
         manifest.MapFileExtensions = this.mapFileExtensions.Value;
     }
     if (this.trustUrlParameters.HasValue)
     {
         manifest.TrustUrlParameters = this.trustUrlParameters.Value;
     }
     if (this.createDesktopShortcut.HasValue)
     {
         manifest.CreateDesktopShortcut = this.CreateDesktopShortcut;
     }
     if (this.SuiteName != null)
     {
         manifest.SuiteName = this.SuiteName;
     }
     if (this.ErrorReportUrl != null)
     {
         manifest.ErrorReportUrl = this.ErrorReportUrl;
     }
     return true;
 }
        private bool BuildResolvedSettings(DeployManifest manifest)
        {
            // Note: if changing the logic in this function, please update the logic in 
            //  GenerateApplicationManifest.BuildResolvedSettings as well.
            if (Product != null)
                manifest.Product = Product;
            else if (String.IsNullOrEmpty(manifest.Product))
                manifest.Product = Path.GetFileNameWithoutExtension(manifest.AssemblyIdentity.Name);
            Debug.Assert(!String.IsNullOrEmpty(manifest.Product));

            if (Publisher != null)
            {
                manifest.Publisher = Publisher;
            }
            else if (String.IsNullOrEmpty(manifest.Publisher))
            {
                string org = Util.GetRegisteredOrganization();
                if (!String.IsNullOrEmpty(org))
                    manifest.Publisher = org;
                else
                    manifest.Publisher = manifest.Product;
            }
            Debug.Assert(!String.IsNullOrEmpty(manifest.Publisher));

            return true;
        }