Vista/Win7系统,如何删除NSIS脚本生成的快捷方式?
来源:互联网 发布:ubuntu 如何看分区 编辑:程序博客网 时间:2024/05/08 10:07
Windows Vista and Windows 7 automatically identify installer executables, including NSIS installers, and ask the user permission to run them with elevated privileges. Automatic detection, however, comes with the price of automatic backward compatibility tricks. One of which is automatic relocation of shortcuts created in the Start Menu to the All Users' Start Menu.
To workaround this, use the new RequestExecutionLevel command or create the shortcuts in All Users' folders in the first place, using SetShellVarContext.
OutFile vista.exeName Vista RequestExecutionLevel user Section CreateDirectory "$SMPROGRAMS\Vista Test" CreateShortcut "$SMPROGRAMS\Vista Test\hello.lnk" $WINDIR\notepad.exe WriteUninstaller $EXEDIR\uninst.exeSectionEnd Section uninstall Delete "$SMPROGRAMS\Vista Test\hello.lnk" RMDir "$SMPROGRAMS\Vista Test"SectionEnd
OutFile vista.exeName Vista RequestExecutionLevel admin #NOTE: You still need to check user rights with UserInfo! Function .onInit#TODO: call UserInfo plugin to make sure user is adminFunctionEnd Section SetShellVarContext all CreateDirectory "$SMPROGRAMS\Vista Test" CreateShortcut "$SMPROGRAMS\Vista Test\hello.lnk" $WINDIR\notepad.exe WriteUninstaller $EXEDIR\uninst.exeSectionEnd Section uninstall SetShellVarContext all Delete "$SMPROGRAMS\Vista Test\hello.lnk" RMDir "$SMPROGRAMS\Vista Test"SectionEnd
- Vista/Win7系统,如何删除NSIS脚本生成的快捷方式?
- NSIS 如何删除VISTA系统开始菜单的快捷方式
- Win7、Vista下如何正确删除快捷方式箭头图标
- NSIS 打包 win7 中无法删除快捷方式
- NSIS 打包 win7 中无法删除快捷方式
- NSIS 打包 win7 中无法删除快捷方式
- 使用 NSIS打包的应用程序,在Vista中无法正确删除开始菜单快捷方式的问题解决方案
- NSIS 删除开始菜单中快捷方式的方法(学习八)
- win7系统桌面快捷方式箭头删除
- vista系统的开始菜单快捷方式在哪?
- 删除Win7快捷方式的小箭头
- 如何删除快捷方式的箭头
- 如何删除快捷方式的箭头
- NSIS 生成快捷方式 (学习 一)
- Win7 系统 去掉桌面快捷方式的箭头
- NSIS不能删除其打包的程序桌面快捷方式的解决方式
- 如何自动修复XP/VISTA/WIN7系统引导的工具(NTBootAutofix 2.02)
- [NSIS] NSIS下创建快捷方式应注意的事儿
- Android--(15),networking
- Paper Work--codeForces 250A
- https://wiki.archlinux.org/index.php/LVM_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29
- 硅谷三巨头设豪华版“诺贝尔奖”
- js中文转码
- Vista/Win7系统,如何删除NSIS脚本生成的快捷方式?
- 关于makefile的一点思考
- MHDD磁盘坏道扫描工具使用方法图解教程
- Increase and Decrease--codeForces 246B
- 一键可消除锁屏密码 手机安全机制亟待完善
- 浅谈Linux磁盘存储管理
- Zirco-browser:超越海豚的开源浏览器
- 曾瑛C#视频教程目录
- ios提取ipa安装文件里面的资源图片