百度空间 | 百度首页 
 
查看文章
 
vista下nsis卸载程序无法卸载干净的解决方案
2009-08-11 15:32
NSIS Vista 权限问题解决方案 使用这个命令:RequestExecutionLevel 可取的值有:none|user|highest|admin 例:RequestExecutionLevel admin 以下是详细说明: 指定在 Windows Vista 下安装程序需要的执行级别。设定的级别值将被内嵌到安装/卸载程序的 XML Manfest 中,告诉 Vista(或以后其他合适版本的 Windows)安装程序需要什么样的权限级... Shortcuts removal fails on Windows Vista Windows Vista automatically identifies installer executables, including NSIS installers, and asks 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 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.exe Name Vista RequestExecutionLevel admin Section CreateShortcut "$SMPROGRAMS\Vista Test\hello.lnk" $WINDIR\notepad.exe WriteUninstaller $EXEDIR\uninst.exe SectionEnd Section uninstall Delete "$SMPROGRAMS\Vista Test\hello.lnk" RMDir "$SMPROGRAMS\Vista Test" SectionEnd OutFile vista.exe Name Vista Section SetShellVarContext all CreateShortcut "$SMPROGRAMS\Vista Test\hello.lnk" $WINDIR\notepad.exe WriteUninstaller $EXEDIR\uninst.exe SectionEnd Section uninstall SetShellVarContext all Delete "$SMPROGRAMS\Vista Test\hello.lnk" RMDir "$SMPROGRAMS\Vista Test" SectionEnd 参考 http://www.cnblogs.com/happmaoo/archive/2009/03/17/1414501.html http://nsis.sourceforge.net/Shortcuts_removal_fails_on_Windows_Vista

类别:技术 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu