智能设备CAB可以在安装时将文件夹添加到设备 [英] Can Smart Device CAB add folders to device upon installation
问题描述
我使用Visual Basic(VS 2008)为Windows Mobile 6.1构建了一个应用程序。我构建了一个智能设备CAB项目来在设备上部署应用程序。
我的应用程序使用两个文件夹/ My Documents / XYZImages /和/ My Documents / XYZText /来存储应用程序使用的文件。在我的测试设备中,我一直在手动添加这些文件夹。
有没有办法让CAB文件在安装时在目标设备上创建这些文件夹(如果它们尚不存在?) / p>
谢谢,
John
jmy
On Fri,2011年1月14日23:51:39 +0000,Giantocr73写道:
我为Windows Mobile构建了一个应用程序6.1使用Visual Basic(VS 2008)。我构建了智能设备CAB项目以在设备上部署应用程序。
我的应用程序使用两个文件夹我的文档/ XYZImages 和我的Documents / XYZText 用于存储应用程序使用的文件。在我的测试设备中,我一直在手动添加这些文件夹。
有没有办法让CAB文件在安装时在目标设备上创建这些文件夹,如果它们没有已经存在?
CAB可以包含"设置" dll,它将在安装过程中运行,几乎可以支付b $ b b。不幸的是,我很确定你需要用C / C ++编写它们,而不是VB。
如果你正在运行安装程序,它可以使用RAPI来操作文件和文件夹附加的
设备。有关详细信息,请查找CeRAPIInit和相关功能。我从未使用过VB
RAPI,但我知道其他人有。
您的应用程序可以在第一次启动时创建文件夹。
谢谢你,b
John
I built an application for Windows Mobile 6.1 using Visual Basic(VS 2008). I built a Smart Device CAB project to deploy the application on devices.
My application uses two folders /My Documents/XYZImages/ and /My Documents/XYZText/ to store files used by the application. In my test devices I have been adding these folders manually.
Is there any way to have the CAB file create these folders on the target device at installation if they do not already exist?
Thank you,
John
jmy
On Fri, 14 Jan 2011 23:51:39 +0000, Giantocr73 wrote:
I built an application for Windows Mobile 6.1 using Visual Basic(VS 2008). I built a Smart Device CAB project to deploy the application on devices.
My application uses two folders My Documents/XYZImages and My Documents/XYZText to store files used by the application. In my test devices I have been adding these folders manually.
Is there any way to have the CAB file create these folders on the target device at installation if they do not already exist?The CAB can include a "setup" dll, which will run during installation and can do almost
anything. Unfortunately, I'm pretty sure you need to write them in C/C++, not VB.If you're running a setup program, it can use RAPI to manipulate files and folders on the
attached device. For more info, look up CeRAPIInit and related functions. I've never used
RAPI with VB, but I know others have.Your application could create the folders when it starts the first time.
Thank you,
John
这篇关于智能设备CAB可以在安装时将文件夹添加到设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!