首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

setupfactory 操作 注册表例证

2013-12-04 
setupfactory操作 注册表例子//判断注册表里是否有安装火狐的记录result Registry.DoesKeyExist(HKEY_LO

setupfactory 操作 注册表例子

//判断注册表里是否有安装火狐的记录

result = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "SOFTWARE\\Mozilla\\Firefox");
if(result==true)
then
result1 = Dialog.Message("注意", "你的电脑已经安装火狐是否重新安装?", MB_OKCANCEL, MB_ICONINFORMATION, MB_DEFBUTTON1);
if(result1==1)
then
Shell.Execute(SessionVar.Expand("%AppFolder%\\Firefox-full-latest.exe"), "open", "", "", SW_SHOWNORMAL);

end;
else

result1 = Dialog.Message("注意", "你的电脑没有安装火狐请点击确认安装?", MB_OKCANCEL, MB_ICONINFORMATION, MB_DEFBUTTON1);
if(result1==1)
then
Shell.Execute(SessionVar.Expand("%AppFolder%\\Firefox-full-latest.exe"), "open", "", "", SW_SHOWNORMAL);

end;
end;

热点排行