如题。
我的安装包里包含
+-安装包
 |-setup.exe
 |-setup.ini
 |-MySetup.msi
 |-aa.txt我想根据aa.txt中不同的内容,对不同的用户提示不同的信息。
可是得不到aa.txt的路径,就是安装程序的路径。

解决方案 »

  1.   

    what language are you using in the custom action? if you are using .NET, have you tried System.Environment.CurrentDirectory ? if it is not what you want, take the advice from Phil Wilson [MVP Windows Installer]  here:http://www.dotnet247.com/247reference/msgs/39/198874.aspxorhttp://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=O0CPsMd5DHA.2056%40TK2MSFTNGP10.phx.gbl
      

  2.   

    System.Reflection.Assembly  Asm;Asm= System.Reflection.Assembly.GetExecutingAssembly();System.IO.FileInfo FileInfo = new System.IO.FileInfo(Asm.Location);
      

  3.   

    按照楼上前两位做的,居然路径会在windows/system32下了。怎么回事?