المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : need to access the value of property "SETUPEXEDIR"



C# Programming
03-30-2009, 02:51 PM
Below is the code which get called during generation of installer
I wanted to retrieve the value of property of SETUPEXEDIR in a string..
Unable to do so.. please help

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.IO;
using System.Reflection;
using System.Windows.Forms;

namespace ABC.CustomInstallation
{
[RunInstaller(true)]
public partial class CustomInstallation : Installer
{
public CustomInstallation()
{
InitializeComponent();
}
public override void Install(System.Collections.IDictionary stateSaver)
{
\\-- Here i want to check the SETUPEXEDIR value----\\
if some validation skip next 2 lines...
ConfigurationForm frmConfig = new ConfigurationForm();
frmConfig.ShowDialog();
base.Install(stateSaver);
}
}
}