文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Installshield在安装结束时刷新系统

Installshield在安装结束时刷新系统

时间:2010-10-14  来源:BeyondTechnology

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

 

方案一:

#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);

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

相关阅读 更多 +
排行榜 更多 +
我在末日当牛马MOD菜单

我在末日当牛马MOD菜单

冒险解谜 下载
麻辣烫大师中文版免广告

麻辣烫大师中文版免广告

模拟经营 下载
麻辣烫大师无限金币版游戏

麻辣烫大师无限金币版游戏

模拟经营 下载