开发者

Enter license key during desktop installation of Windows Mobile app

开发者 https://www.devze.com 2022-12-13 00:49 出处:网络
I\'ve got a CAB file with the Windows Mobile application and the MSI pac开发者_开发百科kage which installs that CAB on Windows Mobile Device (using a custom installer).

I've got a CAB file with the Windows Mobile application and the MSI pac开发者_开发百科kage which installs that CAB on Windows Mobile Device (using a custom installer).

Now i'm trying to add ability to enter license key for that Windows Mobile app using desktop installation package.

I've added "Customer Information" dialog to MSI so i can enter the key. So what i need to do next is get that license key from my custom installer, do some validation, store that key n a file and copy the file to the mobile device into installation directory.

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?

UPDATE:

I found a way to retrieve the info entered during installation using MsiGetProductInfo (c# wrapper)


Take a look at the Remote API (RAPI). This will provide you with the ability to create/write to files on the PDA from your desktop application or installer.

For a C# solution OpenNETCF's open source wrapper called OpenNETCF.Desktop.Communication would be an excellent starting point.

0

精彩评论

暂无评论...
验证码 换一张
取 消