现象:

   调用SdFeatureDialog时,当改变安装目录时,出现安装程序为0K

原因:

       因为SdFeatureDialog 程序大小是在TRAGETDIR基础上计算的。

       所以如果调用SdFeatureDialog:

    //TARGETDIR is currently set to C:\Temp
    svDir = TARGETDIR;
    nResult = SdFeatureDialog(szTitle, szMsg, svDir, "");

   TARGETDIR = svDir;

   

解决方案:

   使用变量TARGETDIR替换字符串变量

   nResult = SdFeatureDialog(szTitle, szMsg, TARGETDIR, "");




原文:http://flexerasoftware.force.com/articles/en_US/PROBLEM/Q111379