#检测默认浏览器
#编写:水晶石
#原理:用FindExecutable函数查找htm关联程序路径与名称,然后分析字串中包含的可执行文件名。
!include "LogicLib.nsh"
XPStyle on
ShowInstDetails show
OutFile "NSIStest.exe"
Name "test"
Section "test"
GetTempFileName $0
Rename $0 $temp\browser.htm
System::Call "Shell32::FindExecutable(t'$temp\browser.htm', i0, t .r1)"
System::Call "Shlwapi::StrStr(tr1, t`IEXPLORE.EXE`)t .r0"
${If} $0 !=""
DetailPrint 'IE为默认浏览器'
${Else}
DetailPrint "IE不是默认浏览器"
${EndIf}
Delete `$temp\browser.htm`
SectionEnd
转载自:http://blog.csdn.net/shuijing_0/article/details/8190024
HM NIS Edit 2.0.3 Win32 Error. Code:740.请求的操作需要提升
使用NSIS安装向导,生成脚本后,按F9后,居然提示:HM NIS Edit 2.0.3 Win32 Error. Code:740.请求的操作需要提升
一开始就出错了,还真不顺. 在网上搜索了一下,居然没有找到解决方案。
最后,灵机一动,会不会是权限不够。然后,就用管理员权限打开NSIS Edit ,打开文件进行编辑运行,居然,成功了。
哈哈,太高兴了。留此文,如你也遇到此问题,希望,能对你有所帮助转载自:
http://www.cnblogs.com/doubleyong/p/3756511.html