如果我想访问mylocation.txt文件,如何获取位置路径,此文件当前位于E:驱动器中。
[CustomAction]
public static ActionResult FillList(Session xiSession)
{
//Can i get store mylocation.txt into application root instead of E location
string path = "Mylocation.txt";
// Open the file to read from.
string[] readText = File.ReadAllLines(path);
foreach (string s in readText)
{
//Console.WriteLine(s);
FillComboBox(xiSession, s, s);
}
xiSession["COUNTRIES"] = "--Select Location--";
return ActionResult.Success;
}
我可以将商店mylocation.txt存入应用程序根目录而不是E位置。如何调用mylocation.txt?基本上我想要的是在安装过程中从此文本文件中获取combox的值。