windows mobile 6.5 CAB 签名和 wceload /silent 问题
我生成了个人证书文件 *.cer,用它签署了我的 CAB 文件,并在 Windows Mobile 6.5 上安装了此证书。我想在设备上静默安装此 CAB。我打电话 “wceload.exe /silent MyCab.CAB”。问题是 /silent 开关不起作用 - 我收到提示确认 CAB 的安装,而我期望 /silent 开关本身会确认所有提示。此外,如果我的 CAB 之前已经安装过,我希望避免出现“先前版本的...已安装...”对话框。有没有办法在 Windows Mobile 上做到这一点?我尝试将注册表项 HKLM/Software/Apps/My App/Instl 设置为 0,但它不起作用。 任何帮助表示赞赏。
问候
I generated a personal certificate file *.cer, signed my CAB file with it, installed this certificate on Windows Mobile 6.5. I want to silently install this CAB on the device. I call
"wceload.exe /silent MyCab.CAB". The problem is that the /silent switch is not working - I get prompted for ack the installation of CAB while I'm expecting the /silent switch will ack all prompts itself. Additionally I'd like to avoid the dialog "The previous version of ... is installed..." if my CAB has been already installed before. Is there a way to do it on Windows Mobile? I tried setting the registry key HKLM/Software/Apps/My App/Instl to 0 but it is not working.
Any help is appreciated.
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
自安装证书以来,在运行
wceload
之前,您是否尝试过热启动?您可以尝试使用
/silent
参数将/noui
添加到命令行,尽管这应该适用于旧版应用程序。 http://msdn.microsoft.com/en-us/library/bb158700.aspx但是,您可能需要受信任的证书。您可以通过将
[HKLM]\Security\Policies\Policies
从 [DWORD] 0 更改为 [DWORD] 1 来禁用此要求。另请参阅:
have you tried warm-booting since the certificate was installed, and before you run
wceload
?You could try adding
/noui
to your command-line with the/silent
parameter, though that's supposed to be for legacy applications. http://msdn.microsoft.com/en-us/library/bb158700.aspxBut, you might be needing a Trusted Certificate. You can disable this requirement by changing
[HKLM]\Security\Policies\Policies
from [DWORD] 0 to [DWORD] 1.see also:
我的 CAB 未签名,但以下方法适用于我在 WM 6.5 上完全静默安装(没有任何 UI - 我在安装过程中显示忙碌的光标)。安装是在现有安装之上以编程方式执行的(使用 Process 类的 C#)。
我有点惊讶,因为这里的文档:[http://msdn.microsoft.com/en-us/library/bb158700.aspx] 说:
我想它应该说“可能会也可能不会忽略这些选项”;)
下面是完整的 C# 代码:
My CAB isn't signed, yet the following method works for me on WM 6.5 to install totally silently (no UI whatsoever - I show a busy cursor during the install). The install is performed programmatically (c# using the Process class) over the top of the existing install.
I was a bit surprised as the doc here: [http://msdn.microsoft.com/en-us/library/bb158700.aspx] says:
I guess it should say 'may or may not ignore these options' ;)
Full C# code below: