Comment obtenir le chemin de localisation si je veux accéder au fichier mylocation.txt, ce fichier se trouve actuellement dans le lecteur E :.Obtenir l'emplacement Installation du chemin Wix
[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;
}
Puis-je obtenir en magasin mylocation.txt racine de l'application au lieu de E location.And comment mylocation.txt peut être appelé? En fait ce que je veux est d'obtenir les valeurs de combox de ce fichier texte, une fois l'installation en cours.
Merci pour la réponse. – reapen