当前位置: 首页 > news >正文

网站建设具备知识技能网站的建设与维护的职责

网站建设具备知识技能,网站的建设与维护的职责,企业营销型展厅设计价目表,广东手机网站建设哪家好1. 第一部分#xff1a;Sample Code 这部分转自#xff1a;http://blog.csdn.net/hhygcy/archive/2009/05/04/4147870.aspx 最近这个东西很多被问及#xff0c;软件动态升级的时候可能可以用到#xff0c;在这里做一下记录。 就知道的方法有2个#xff0c; 一个是通过Sh…1. 第一部分Sample Code 这部分转自http://blog.csdn.net/hhygcy/archive/2009/05/04/4147870.aspx 最近这个东西很多被问及软件动态升级的时候可能可以用到在这里做一下记录。 就知道的方法有2个 一个是通过ShellExecuteEx直接运行对应的CAB文件。一个是调用CreateProcess用wceload来调用这个CAB。 两个方法都可以下面是写的测试程序中的代码 view plaincopy to clipboardprint?case ID_HELP_INSTALL1:       {           // Specify an action for the application to perform, flags and other parameters            SHELLEXECUTEINFO info;           info.cbSize sizeof(info);           info.fMask SEE_MASK_FLAG_NO_UI;           info.hwnd NULL;            info.lpVerb _T(open);           info.lpFile _T(//Program Files//RunCAB//SampleCAB1.CAB);           info.lpParameters _T(); info.lpDirectory _T();           info.nShow SW_SHOW;           info.hInstApp g_hInst;           // Call to perform an action           ShellExecuteEx(info);           break;       }   case ID_HELP_INSTALL2:       {              LPTSTR szCmdline _tcsdup(               TEXT(///Program Files//RunCAB//SampleCAB2.CAB/));           CreateProcess(_T(wceload.exe),szCmdline,NULL,NULL,FALSE,INHERIT_CALLER_PRIORITY,NULL,NULL,NULL,NULL);           break;       }      case ID_HELP_INSTALL1:     {      // Specify an action for the application to perform, flags and other parameters       SHELLEXECUTEINFO info;      info.cbSize sizeof(info);      info.fMask SEE_MASK_FLAG_NO_UI;      info.hwnd NULL;       info.lpVerb _T(open);      info.lpFile _T(//Program Files//RunCAB//SampleCAB1.CAB);      info.lpParameters _T(); info.lpDirectory _T();      info.nShow SW_SHOW;      info.hInstApp g_hInst;      // Call to perform an action      ShellExecuteEx(info);      break;     }    case ID_HELP_INSTALL2:     {       LPTSTR szCmdline _tcsdup(       TEXT(///Program Files//RunCAB//SampleCAB2.CAB/));      CreateProcess(_T(wceload.exe),szCmdline,NULL,NULL,FALSE,INHERIT_CALLER_PRIORITY,NULL,NULL,NULL,NULL);      break;     } 这个测试程序用不同的menuitem做了不同的尝试 上述的两个实现都是可以工作的。需要注意的事情是上面的CreateProcess需要把含有空格路径参数用引号括起来。 2. 详细的相关资料 http://msdn.microsoft.com/en-us/library/bb158700.aspx The Wceload tool (Wceload.exe), which is an XML-based CAB installer application, runs on your target device. You typically use this tool to install a .cab or .cpf file to a location that you select on the target device. Most .cab files are configured to enable the user to select the destination volume where the .cab file will be installed, either /Device or /Storage Card. However, you can choose to suppress the destination volume selection prompt and install the .cab file to a default location, specified in the .inf file used to create the .cab file. Typically, you do not directly call Wceload. Instead, Wceload is called programmatically by other programs to install .cab files. For example, if you use File Explorer to view and open a .cab file, Shell automatically invokes Wceload for installation of the .cab file. For information about creating a .cab file, see CAB Files for Delivering Windows Mobile Applications. Wceload implements security mechanisms and performs installation tasks for .cab and .cpf files on Windows Mobile powered devices. Wceload installs .cab and .cpf files using the following process: Wceload receives a .cab or .cpf file through one of the delivery mechanisms. While ActiveSync can send multiple .cab or .cpf files in one batch, each file is processed in turn. If the file is signed, Wceload attempts to verify the included certificate against certificates placed in the SPC Store.If the .cab file is unsigned, the security role to be used for the installation is determined by the SECPOLICY_UNSIGNEDCABS and SECPOLICY_UNSIGNEDPROMPT security policies. After the certificate verification process occurs, Wceload opens the .cab file for allowed installations and extracts the included _setup.xml file, which is passed to the Configuration Manager for processing. For information about creating cab files, see CAB Wizard. Syntax Copy Code wceload.exe [ /delete number | /noui ] [ /confignotify | /nodelete | /safe | /silent | /verifyconfig] cab file location  Parameters /confignotify Generates a configuration result notification that is placed in the Text Message store on the device. /nodelete Specifies that the .cab file is not removed after installation. Note: If you do not specify /nodelete or /delete 0 when running Wceload, the .cab file is deleted even if the installation is not successful. /delete number Specifies how Wceload removes the cab file after installation. Note: If you do not specify /nodelete or /delete 0 when running Wceload, the .cab file is deleted even if the installation is not successful. Value Description 0 Does not remove the .cab file after the contents are installed. 1 Removes the .cab file after the contents are installed. This is the default value. /noui Specifies that the user will not be prompted for any input during the installation. By default, prompts are answered with Yes. However, if the .cab file is unsigned, any security-related prompts will default to No for security reasons, and the installation might fail. This is the same as /silent for legacy compatibility reasons. /safe Specifies that the .cab file cannot contain executable files. Also; if the .cab file is unsigned; it can only use restricted permissions, ensuring that it will not be able to write to protected files and registry keys. /silent Suppresses dialog boxes during the installation, and all Yes/No prompts default to Yes, unless the .cab file is not signed. However, if the .cab file is unsigned, any security-related prompts will default to No for security reasons, and the installation might fail. This is the same as /noui for legacy compatibility reasons. /verifyconfig Specifies that the Wceload tool must verify whether the file passed in is a .cpf file. If the file is not a .cpf file, the installation fails. cab file location Specifies the location of the cab file to install or remove. Remarks In Windows Mobile Version 5.0 and later, when using Wceload.exe to reinstall a .cab file, Wceload.exe uninstalls the previously installed version of the .cab file before installing the new version. During the uninstallation portion of this process, Wceload.exe closes any currently running executables that were installed on the target device using a .cab file, based on their filename. Wceload.exe also closes any executables that are the target of a file operation, such as a move or a copy. To close an executable, Wceload.exe sends WM_CLOSE to all top-level windows owned by the process. If the process does not exit in a timely manner after receiving the WM_CLOSE message, then Wceload.exe forcibly closes it by calling TerminateProcess. Wceload.exe does not attempt to close executables that are shipped in the run-time image on the target device. If the .cab file is not signed, and you specify the /silent or /noui options when calling wceload, wceload may ignore these options. The following code example shows how to call Wceload.exe to install a .cab file called MyCabFile.cab, while suppressing all dialog boxes during the installation. After installation, the .cab file is specifically not removed. Example wceload /nodelete /silent /Temp/MyCabFile.cab
http://www.zqtcl.cn/news/824208/

相关文章:

  • 建公司网站设计网站公司做网上夫妻去哪个网站
  • 稷山网站建设wordpress单本小说采集
  • 凡客网站规划与建设ppt网站做跳转教程
  • 怎么看网站空间多大做网站旅游销售
  • 天津做手机网站建设旅游网站的目的
  • 飞机查询网站开发的创新点注册公司流程和费用大概多少钱
  • 高质量的邯郸网站建设厦门网页制作厦门小程序app
  • 建设企业网站企业网上银行官网官方二建证从住房建设厅网站调出流程
  • 网站开发和网站建设网页出现网站维护
  • 推广网站的方法电影网站建设教程
  • 哪些网站可以做相册视频成都企业网站公司
  • wordpress网站统计插件常见的管理信息系统有哪些
  • wordpress多个导航菜单seo引流软件
  • 建立网站需要多少钱怎么样企业邮箱在哪看
  • 网站主要功能2008服务器网站
  • 增城百度做网站多少钱it培训机构排名
  • 网站开发项目规划书四川建设网个人证书查询网址
  • 怎么模板建站微信做单30元一单
  • 兰州建设局网站十堰专业网站建设
  • html5 网站源码网络营销课程思政
  • 建设网站贵吗深圳网站建设推广论坛
  • 做网站需注意事项会员卡管理系统下载
  • 嘉兴高端网站建设公司电子信息工程能进国家电网吗
  • 建网站 广州网站改版 理论
  • 门户网站简称昆明本地网站
  • 网站定位的核心意义离婚协议书模板 完整版
  • 网站首页改版方案长图制作网站
  • 网站的栏目有什么名字保定网络公司网站
  • 南京建设机械网站建设银行网站解除绑定
  • 厚街公司网站建设wordpress发邮件更新