标签:des blog http os io 文件 ar cti
原文: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
标签:des blog http os io 文件 ar cti
原文地址:http://www.cnblogs.com/lonelyxmas/p/3922844.html