最新消息:

RfshDktp是NSIS刷新桌面图标的插件

nsis 永恒心锁 2040浏览 0评论
/*
RfshDktp是NSIS刷新桌面图标的插件
RfshDktp用于桌面图标需要刷新的情况,也可以直接使用API进行刷新操作.
*/
!AddPluginDir "."
; The name of the installer
Name "Refresh Desktop"
; The file to write
OutFile "rfshdktp.exe"
; The default installation directory
InstallDir "$PROGRAMFILESRefresh Desktop"
;--------------------------------
; Pages
Page directory
Page instfiles
;--------------------------------
; The stuff to install
Section "" ;No components page, name is not important
 ; Set output path to the installation directory.
 SetOutPath $INSTDIR
 ; Put file there
 File "${NSISDIR}makensisw.exe"
 SetShellVarContext all
 CreateShortCut "$DESKTOPMakeNSIS.lnk" "$INSTDIRmakensisw.exe"
 SetShellVarContext current
 CreateShortCut "$DESKTOPMakeNSIS.lnk" "$INSTDIRmakensisw.exe"
 ; seems to be needed to allow the shortcuts to mess up before refreshing them
 Sleep 2000
 ; call the DLL to refresh the desktop
 rfshdktp::refreshDesktop
 ; 直接使用API进行刷新操作
 System::Call 'shell32::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
 ; never could get this to work
 ;SendMessage 65535 26 0 0
SectionEnd ; end the section
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » RfshDktp是NSIS刷新桌面图标的插件

您必须 登录 才能发表评论!