【问题标题】:InstallScript : LaunchAppAndWait issues with 32 bit?InstallScript:32 位的 LaunchAppAndWait 问题?
【发布时间】:2013-07-22 10:42:55
【问题描述】:

我已经构建了一个外壳扩展 dll,用于显示 64 位和 32 位的右键单击上下文菜单。我在安装过程中使用 LaunchAppAndWait 函数在 installscript 中注册 dll。

它适用于 64 位机器,但不适用于 32 位机器。

if (SYSINFO.bIsWow64 ) then
    LaunchAppAndWait("", "regsvr32.exe /s " + TARGETDIR ^ "\\bin\\x64\\test.dll"  , LAAW_OPTION_WAIT);  
else
    LaunchAppAndWait("", "regsvr32.exe /s " + TARGETDIR ^ "\\bin\\test.dll"  , LAAW_OPTION_WAIT);  
endif;

有人遇到过这个问题吗?

【问题讨论】:

    标签: windows dll installshield 32-bit installscript


    【解决方案1】:

    找到问题所在。通过为命令行 arg 执行 LongPathToQuote 解决了这个问题。

    dllPath = "/s " +TARGETDIR ^ "\\bin\\win32\\test.dll";
    LongPathToQuote(dllPath,TRUE);
    LaunchAppAndWait("regsvr32.exe", dllPath, LAAW_OPTION_WAIT); 
    

    【讨论】:

      猜你喜欢
      • 2012-03-13
      • 2017-02-03
      • 2011-12-12
      • 1970-01-01
      • 2011-11-04
      • 2011-07-31
      • 1970-01-01
      • 2022-06-17
      • 2011-10-27
      相关资源
      最近更新 更多