创建带有图标的url

XPStyle on
OutFile "nsisTest.exe"
Name "Test"
Section "Test"
WriteINIStr "$exedirShortcut.URL" "InternetShortcut" "URL" "http://www.yhxs3344.net"
WriteINIStr "$exedirShortcut.URL" "InternetShortcut" "IconFile" "default.ico" ;icon.ico为图标文件,需要带完整路径
WriteINIStr "$exedirShortcut.URL" "InternetShortcut" "IconIndex" "0"
SectionEnd
Function .onInit
System::Call 'shell32.dll::SHChangeNotify(l, l, i, i) v (0x08000000, 0, 0, 0)'
FunctionEnd
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容