首页 > 其他 > 详细

Installshield在安装结束时刷新系统

时间:2014-08-19 20:27:05      阅读:402      评论:0      收藏:0      [点我收藏+]
原文:Installshield在安装结束时刷新系统

在OnEnd里添加代码,两种解决方案

 

群友kevin的解决方案

#include "ifx.h" 
//Call to Windows used in the "OnEnd" function to refresh the desktop
prototype Shell32.SHChangeNotify(LONG, LONG, POINTER, POINTER);

// -- Add the following to the "OnEnd" function
//Refresh the desktop to display icons (or remove if uninstall)
SHChangeNotify(134217728, 0, NULL, NULL);

 

群友没你不行的解决方案
SHChangeNotify(SHCNE_ASSOCCHANGED,   SHCNF_FLUSHNOWAIT,0,0);

 

此类需求多见于文件关联之类的动作,文件关联后操作系统并不能马上将文件的图标刷新为关联程序的图标,需要手动刷一下

 

Installshield在安装结束时刷新系统,布布扣,bubuko.com

Installshield在安装结束时刷新系统

原文:http://www.cnblogs.com/lonelyxmas/p/3922844.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!