0
Windowsのタスクバーへのショートカットをピン止めしたいと思っています。スクリプトは正常に動作しますが、自分のマルウェアはマルウェアトロイの木馬として検出されます。マイクロソフトでは動詞を削除しており、これが同じ理由である可能性があります。したがって、プログラムをプログラムで固定/固定解除する代替手段があります。NSIS ScriptにInvokeShellVerbの代替手段はありますか?
OutFile "C:\PinUnpinExe\PinUnpinShortcut.exe"
!include 'StdUtils.nsh'
!include FileFunc.nsh
SilentInstall silent
RequestExecutionLevel user ;no elevation needed
ShowInstDetails hide
var inputParam
Section
${GetParameters} $inputParam
System::Call "kernel32::GetCurrentDirectory(i ${NSIS_MAX_STRLEN}, t .r0)"
${StdUtils.InvokeShellVerb} $0 "$0" "abc.exe" $inputParam
SectionEnd
この行はウイルスとして検出されます。
${StdUtils.InvokeShellVerb} $0 "$0" "abc.exe" $inputParam
他の言語ソリューションでも大丈夫です。