简体   繁体   English

在Windows Mobile应用程序的桌面安装过程中输入许可证密钥

[英]Enter license key during desktop installation of Windows Mobile app

I've got a CAB file with the Windows Mobile application and the MSI package which installs that CAB on Windows Mobile Device (using a custom installer). 我有一个带有Windows Mobile应用程序和MSI软件包的CAB文件,该软件包将CAB安装在Windows Mobile设备上(使用自定义安装程序)。

Now i'm trying to add ability to enter license key for that Windows Mobile app using desktop installation package. 现在,我正在尝试使用桌面安装包来增加为该Windows Mobile应用输入许可证密钥的功能。

I've added "Customer Information" dialog to MSI so i can enter the key. 我已将“客户信息”对话框添加到MSI,以便我可以输入密钥。 So what i need to do next is get that license key from my custom installer, do some validation, store that key na file and copy the file to the mobile device into installation directory. 因此,我接下来要做的是从我的自定义安装程序中获取该许可证密钥,进行一些验证,存储该密钥na文件,并将该文件复制到移动设备的安装目录中。

So, the questions are: 因此,问题是:

  • How can i retrieve the license key i've entered during installation from my custom installer? 如何从自定义安装程序检索安装过程中输入的许可证密钥?
  • How can i programmatically copy file created by custom installer to PDA into installation directory via active sync during installtion? 在安装过程中如何通过主动同步将自定义安装程序创建的文件以编程方式复制到PDA到安装目录中?

UPDATE: 更新:

I found a way to retrieve the info entered during installation using MsiGetProductInfo ( c# wrapper ) 我找到了一种使用MsiGetProductInfoc#wrapper )来检索在安装过程中输入的信息的方法

Take a look at the Remote API (RAPI). 看一下远程API(RAPI)。 This will provide you with the ability to create/write to files on the PDA from your desktop application or installer. 这将使您能够从桌面应用程序或安装程序在PDA上创建/写入文件。

For a C# solution OpenNETCF's open source wrapper called OpenNETCF.Desktop.Communication would be an excellent starting point. 对于C#解决方案OpenNETCF的所谓开源包装OpenNETCF.Desktop.Communication将是一个很好的起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM