Hi,
I want to run C# code during the welcome dialog, Can I do that ?
Code: Select all
[CustomAction]
public static void create_Auth_file()
{
MessageBox.Show("Please attach a debugger to rundll32.exe.", "Attach");
string machine_name = Environment.MachineName.ToString();
string win_drive = Environment.GetEnvironmentVariable("windir", EnvironmentVariableTarget.Machine).Substring(0, 1);
FileStream fs = new FileStream(win_drive + ":\\Auth_" + machine_name +".txt", FileMode.Create, FileAccess.Write);
StreamWriter m_streamWriter = new StreamWriter(fs);
m_streamWriter.Flush();
fs.Close();
}
Code: Select all
public static ActionResult createAuthFile(Session session)
{
return ActionResult.Success;
}
FOLLOW US
Get the latest news in Application Packaging