Windows Mobile cab 文件完成后启动主要可执行文件

发布于 2024-08-28 17:49:10 字数 424 浏览 14 评论 0原文

我正在开发一个 WinMo 应用程序,我们在 Web 服务器上托管 cab 文件,以便更轻松地部署到我们的手持设备。

我想制作 CAB 文件,以便当用户下载并运行它时,它会安装,然后自动启动该程序。

我发现这个问题 ,但这似乎是关于 ActiveX 浏览器插件等的出租车。

有人对如何在安装后将 WinMo CAB 自动安装为主输出文件有任何想法或说明吗?我正在使用 Visual Studio 2008 中的智能设备 CAB 安装项目构建 CAB 文件。这些设备是 WinMo 6.1。

提前致谢...

I am developing a WinMo app, where we are hosting the cab files on our web server, to make deployment to our handhelds easier.

I would like to make the CAB file though, so that when they user downloads and runs it, it installs, and then automatically launches the program.

I found this Q, but that seems to be about cabs for ActiveX browser addins or such.

Anyone have any idea or instructions on how to go about making a WinMo CAB autoinstall the primary output file after installation? I am building the CAB file using the Smart Device CAB Setup project in Visual Studio 2008. The devices are WinMo 6.1.

Thanks in advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

2024-09-04 17:49:10

我目前正在开发 Windows Mobile 6.1 手持设备。我有同样的问题需要解决,幸运的是我能够解决这个问题。请仔细遵循这些准则。

       * You had to have create an XML script if you have multiple CAB files
       * If you have a single CAB file than place your cab file in CABFOLDER on your
         mobile unit and run AUTOCAB.EXE that can be found somewhere in your mobile unit
       * If you want to work with XML script than follow this XML

enter code here

 '<AutoConfig>
 <Files>



<File Src="http://10.0.0.102/Softwares/XMLMultiFileDownload.zip"
    Dest="\SD Card\XMLMulti12eDownload.zip"
    FileId="620.121.0">
</File>

<File Src="http://10.0.0.102/Softwares/hello.zip"
    Dest="\SD Card\29Sep.zip"
    FileId="530.0.04">
</File>

<File Src="http://10.0.0.102/Softwares/IBI.CAB" 
    Dest="\CabFiles\IBI.CAB"
    FileId="130.331.151.1521"
StartIn="\CabFiles"     
Run="\CabFiles\autocab.exe"
    CmdLine="-FILE="\CabFiles\IBI.CAB" -FORCE -SHOW=2 -CHKRST=1">
Wait="true"
</File>  

<File Src="http://10.0.0.102/Softwares/DC_Net.CAB" 
          Dest="\Flash File Store\DC_Net.CAB"
          FileId="125.734.03.0390"
          Run="\2577\autocab.exe"
         CmdLine="-FILE="\Flash File Store\DC_Net.CAB" -FORCE -SHOW=2-
      Wait="false"
     >
  </File>

 </Files>
 </AutoConfig>  '

enter code here

注意:该文件必须是标准的XML格式

I am currently working on Windows Mobile 6.1 handheld devices. I had the same issue to be solved and fortunately I was able to solve this issue. Please follow these guidelines carefully.

       * You had to have create an XML script if you have multiple CAB files
       * If you have a single CAB file than place your cab file in CABFOLDER on your
         mobile unit and run AUTOCAB.EXE that can be found somewhere in your mobile unit
       * If you want to work with XML script than follow this XML

enter code here

 '<AutoConfig>
 <Files>



<File Src="http://10.0.0.102/Softwares/XMLMultiFileDownload.zip"
    Dest="\SD Card\XMLMulti12eDownload.zip"
    FileId="620.121.0">
</File>

<File Src="http://10.0.0.102/Softwares/hello.zip"
    Dest="\SD Card\29Sep.zip"
    FileId="530.0.04">
</File>

<File Src="http://10.0.0.102/Softwares/IBI.CAB" 
    Dest="\CabFiles\IBI.CAB"
    FileId="130.331.151.1521"
StartIn="\CabFiles"     
Run="\CabFiles\autocab.exe"
    CmdLine="-FILE="\CabFiles\IBI.CAB" -FORCE -SHOW=2 -CHKRST=1">
Wait="true"
</File>  

<File Src="http://10.0.0.102/Softwares/DC_Net.CAB" 
          Dest="\Flash File Store\DC_Net.CAB"
          FileId="125.734.03.0390"
          Run="\2577\autocab.exe"
         CmdLine="-FILE="\Flash File Store\DC_Net.CAB" -FORCE -SHOW=2-
      Wait="false"
     >
  </File>

 </Files>
 </AutoConfig>  '

enter code here

Note: this file must be a standard XML format

﹏半生如梦愿梦如真 2024-09-04 17:49:10

需要明确的是,您现在所拥有的是 CAB 已正确下载并安装,但您想要的是应用程序在安装完成后执行?如果是这种情况,请添加自定义安装DLL 成功完成后执行(因此在 Install_Exit 中调用 CreateProcess)。

To be clear, what you have now is that the CAB downloads and installs properly, but what you want is for the application to execute after the install completes? If that's the case, then add a custom setup DLL that does the execute on successful completion (so in Install_Exit call CreateProcess).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文