nsis中 SystemCall shell32ShellExecutei 0 topen texplorerexe t etestexe DNSISLixiexe t$INSTDIR i 0 这句代码有错误吗?
这句代码存在错误。在NSIS中使用System::Call函数时,参数的类型必须与API函数的参数类型匹配。在这个例子中,第一个参数应该是一个HWND类型的句柄,而不是一个整数类型。正确的代码应该是:
System::Call 'shell32::ShellExecute(i 0, t"open", t"explorer.exe", t" /e,test.exe D:\NSIS\Lixi.exe", t"$INSTDIR\\", i 0)'
改成:
System::Call 'shell32::ShellExecute(i 0, t"open", t"explorer.exe", t" /e,test.exe D:\NSIS\Lixi.exe", t"$INSTDIR\\", i 0)'
原文地址: http://www.cveoy.top/t/topic/idNG 著作权归作者所有。请勿转载和采集!