【问题标题】:Getting Location path Wix installation获取位置路径 Wix 安装
【发布时间】:2013-06-17 08:57:46
【问题描述】:

如果我想访问 mylocation.txt 文件,如何获取位置路径,该文件当前位于 E:drive 中。

[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?基本上我想要的是从这个文本文件中获取组合框的值,一旦安装正在进行中。

【问题讨论】:

    标签: wix wix3.5 wix3.6 wix3.7


    【解决方案1】:

    Mylocation.txt 附加为自定义操作项目中的资源文件。从此discussion获取更多详细信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-12
      • 1970-01-01
      相关资源
      最近更新 更多