Example #1
0
 /// <summary>
 /// Sets a project property.
 /// </summary>
 /// <param name="propertyName">Name of the property to set.</param>
 /// <param name="value">Value of the property.</param>
 public override void SetProperty(string propertyName, string value)
 {
     if (propertyName == WixProjectFileConstants.OutputType)
     {
         WixOutputType outputType = (WixOutputType)Int32.Parse(value, CultureInfo.InvariantCulture);
         if (Enum.IsDefined(typeof(WixOutputType), outputType) && outputType != this.ProjectMgr.OutputType)
         {
             base.SetProperty(propertyName, outputType.ToString());
             this.IsDirty = true;
             this.ProjectMgr.OnOutputTypeChanged();
         }
     }
     else
     {
         base.SetProperty(propertyName, value);
     }
 }
Example #2
0
        void RefreshOutputFileNameTextBox(object sender, EventArgs e)
        {
            WixOutputType outputType = (WixOutputType)(Get <ComboBox>("outputType").SelectedIndex);

            Get <TextBox>("outputFileName").Text = Get <TextBox>("outputName").Text + WixProject.GetInstallerExtension(outputType.ToString());
        }