2010-10-05 78 views
0

我有複選框並添加了對話框。安裝項目自定義操作閱讀複選框

我需要能夠從自定義操作中讀取框的狀態。我也需要我擁有的路徑,但我無法找到如何閱讀複選框的狀態。

這怎麼辦?

public override void Commit(IDictionary savedState) 
{ 
    base.Commit(savedState); 
    String TargetDirectory = Path.GetDirectoryName(Context.Parameters["AssemblyPath"]); 
    MessageBox.Show(TargetDirectory); 
    // Code needed to read the checkboxes! 
} 

回答

0

找到了! 在自定義動作添加 /工具= 「[XYZ]」/ MyInfo的= 「[ABC]」

其中XYZ和ABC是CheckboxNProperty

然後讀取它們在由此

以上的自定義動作

MessageBox.Show(Context.Parameters [「XYZ」]);

相關問題