473,725 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Run a CAB File in a Pocket PC App

I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data
from the user and invoke a CAB file to install a software
on the device. How do I invoke a CAB file from the VB app?

Thanks
Nov 20 '05 #1
8 4823
i'm interpreting here but i assume an app on your desktop pc will collect
info from the user and then decide what cab files to install on the pocket
pc. i assume this b/c if you copy a cab file to the pocket pc, it will
install it automatically.. .so to have choices on what to install is a mute
point...you'd have already installed all the cabs you moved to the pocket
pc.

anyway, create the cabs for every solution you plan to have as a "choice" to
install. next, create your desktop installer application. place this code to
un/install the selected choice: (asserts that the targetedSoftwar e is a
string representing a directory relative to the installer's path)

imports microsoft.win32
imports system.diagnost ics
imports system.io

private const regPath as string =
"software\micro soft\windows\cu rrentversion\ap p paths\ceappmgr. exe"

private enum installAction
install = 0
uninstall = 1
end enum

private sub installSoftware (byval targetedSoftwar e as string, byval
installAction as installAction)
dim iniFile as string
if installAction = installAction.i nstall then iniFile =
path.combine(sy stem.appdomain. currentdomain.b asedirectory, targetedSoftwar e
& "\setup.ini ")
launchAppManage r(iniFile)
end sub

private sub launchAppManage r(byval iniFile as string)
dim key as registrykey = registry.localm achine.opensubk ey(regPath)
dim appManager as string = cstr(key.getval ue(""))
if appManager is nothing then
dim m as string
m &= "CE Application Manager could not be found." & vbcrlf & vbcrlf
m &= "Please make sure it is correctly installed on this computer."
msgbox(m, msgboxstyle.cri tical, "Error - Client Installation"
return
end if
if iniFile is nothing then
process.start(s tring.format("" "{0}""", appManager))
' uninstall
else
process.start(s tring.format("" "{0}""", appManager),
string.format(" ""{0}""", iniFile)) ' install
endif
end sub

you will also need to create a setup program for each application you want
to install - it will include a setup.ini file that tells the ce app manager
what processors are supported by your application. finally, create a setup
program for your main installer application. it should include the cab files
for all of your solutions that may be optionally installed. do this in a
SEPARATE folder for each solution. you'll then need to create the psuedo
installation directory structure using the same folder names as will be
passed to the installSoftware targetedSoftwar e argument. in each of these
folders should be a link to their respective cab files.

that's pretty robust and on the money...i use this code religiously. i found
a hugely complex routine for installing apps to pocket pc's on msdn. all i
really needed to know was how to launch the app manager with a way for it to
point to the application i wanted to install. i digress. anyway, my textual
step-by-step is more complex in language than in action...this whole thing
shouldn't take a novice more than two hours and a pro less than 10 minutes.
it's quite simple once you know what's going on.

hth,

steve
"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in message
news:2c******** *************** ******@phx.gbl. ..
I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data
from the user and invoke a CAB file to install a software
on the device. How do I invoke a CAB file from the VB app?

Thanks

Nov 20 '05 #2
a final thought...you'd have been better off posting this question in the
microsoft.publi c.pocketpc.deve loper newsgroup. you got lucky here...i'm not
the only ppc developer that lurks about in this ng...but we certainly are in
the single digits. your odds of getting the answer i posted here are about
the same a winning the lottery.

i left out details on some things...i assume you've made setup packages
before...though t i'd save space in the response by omitting them. if you
have more questions, go ahead and continue this thread. otherwise, this
would have benefited more people had it be posted to a more suitable ng.
post new pocket pc questions to the appropriate audience.

hth,

steve
"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in message
news:2c******** *************** ******@phx.gbl. ..
I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data
from the user and invoke a CAB file to install a software
on the device. How do I invoke a CAB file from the VB app?

Thanks

Nov 20 '05 #3
Steve,
How big of a learning curve is involved with PocketPC development for those
of us that have done exclusive desktop development previously?

"steve" <as*@abc.com> wrote in message
news:vo******** ****@corp.super news.com...
a final thought...you'd have been better off posting this question in the
microsoft.publi c.pocketpc.deve loper newsgroup. you got lucky here...i'm not the only ppc developer that lurks about in this ng...but we certainly are in the single digits. your odds of getting the answer i posted here are about
the same a winning the lottery.

i left out details on some things...i assume you've made setup packages
before...though t i'd save space in the response by omitting them. if you
have more questions, go ahead and continue this thread. otherwise, this
would have benefited more people had it be posted to a more suitable ng.
post new pocket pc questions to the appropriate audience.

hth,

steve
"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in message
news:2c******** *************** ******@phx.gbl. ..
I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data
from the user and invoke a CAB file to install a software
on the device. How do I invoke a CAB file from the VB app?

Thanks


Nov 20 '05 #4
Thanks a lot. Actually All I want to do is invoke another
CAB from a Pocket PC app. The POCKET PC App that I'm
developing would get some data from the user and kickoff
another CAB file. I think I can customize the code you
provided to do the same.

Thanks again.
-----Original Message-----
a final thought...you'd have been better off posting this question in themicrosoft.publ ic.pocketpc.dev eloper newsgroup. you got lucky here...i'm notthe only ppc developer that lurks about in this ng...but we certainly are inthe single digits. your odds of getting the answer i posted here are aboutthe same a winning the lottery.

i left out details on some things...i assume you've made setup packagesbefore...thoug ht i'd save space in the response by omitting them. if youhave more questions, go ahead and continue this thread. otherwise, thiswould have benefited more people had it be posted to a more suitable ng.post new pocket pc questions to the appropriate audience.

hth,

steve
"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in messagenews:2c******* *************** *******@phx.gbl ...
I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data from the user and invoke a CAB file to install a software on the device. How do I invoke a CAB file from the VB app?
Thanks

.

Nov 20 '05 #5
using .net, there's virtually no learning curve. the only thing you have to
be aware of is that most of the file i/o, particulary with paths, has been
stripped from the framework...thi s is b/c you can save data to memory cards,
the network, main memory, etc. there are other things missing from the
compact frameworks...li ke thread.abort and some other useful things.

everything else is the same...inherita nce, implementation, threading...you
name it. the largest concerned you will have is conserving your memory and
making a speedy ui. just remember all those tips/tricks you learned back in
vb6- when you were installing on 100 mhz processors w/ 16mb of ram...then
you'll do fine.

hth,

steve
"scorpion53 061" <sc************ @yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Steve,
How big of a learning curve is involved with PocketPC development for those of us that have done exclusive desktop development previously?

"steve" <as*@abc.com> wrote in message
news:vo******** ****@corp.super news.com...
a final thought...you'd have been better off posting this question in the microsoft.publi c.pocketpc.deve loper newsgroup. you got lucky here...i'm not
the only ppc developer that lurks about in this ng...but we certainly are in
the single digits. your odds of getting the answer i posted here are

about the same a winning the lottery.

i left out details on some things...i assume you've made setup packages
before...though t i'd save space in the response by omitting them. if you
have more questions, go ahead and continue this thread. otherwise, this
would have benefited more people had it be posted to a more suitable ng.
post new pocket pc questions to the appropriate audience.

hth,

steve
"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in message news:2c******** *************** ******@phx.gbl. ..
I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data
from the user and invoke a CAB file to install a software
on the device. How do I invoke a CAB file from the VB app?

Thanks



Nov 20 '05 #6
you're welcome.

where's the location of the cab file? on the pocket pc or on the desktop? if
it's going to be on the pocket pc, then you're wasting valuable memory to
house cabs that may/not ever be used not to mention the annoyance of having
to cancel its automatic installation attempt when you move the cab from the
desktop to the pocket pc. if you are pulling the cab from the desktop to the
pocket pc, you are adding a lot of complications.. .and again, wasting
valuable memory by having an application installed on the pocket pc whose
only purpose is to choose what other applications s/b installed.

imo, you should push all applications from the desktop to the
hand-held...anything else, is a waste of effort and memory.

but that's my $0.02 usd.

hth,

steve
<an*******@disc ussions.microso ft.com> wrote in message
news:0c******** *************** *****@phx.gbl.. .
Thanks a lot. Actually All I want to do is invoke another
CAB from a Pocket PC app. The POCKET PC App that I'm
developing would get some data from the user and kickoff
another CAB file. I think I can customize the code you
provided to do the same.

Thanks again.
-----Original Message-----
a final thought...you'd have been better off posting

this question in the
microsoft.publ ic.pocketpc.dev eloper newsgroup. you got

lucky here...i'm not
the only ppc developer that lurks about in this ng...but

we certainly are in
the single digits. your odds of getting the answer i

posted here are about
the same a winning the lottery.

i left out details on some things...i assume you've made

setup packages
before...thoug ht i'd save space in the response by

omitting them. if you
have more questions, go ahead and continue this thread.

otherwise, this
would have benefited more people had it be posted to a

more suitable ng.
post new pocket pc questions to the appropriate audience.

hth,

steve
"Krishnan Margabandhu" <Kr************ ******@target.c om>

wrote in message
news:2c******* *************** *******@phx.gbl ...
I'm writing a Pocket PC app that will run when a device
is first powered on. I want this program to get some data from the user and invoke a CAB file to install a software on the device. How do I invoke a CAB file from the VB app?
Thanks

.

Nov 20 '05 #7
The cab file actually exists on the Intranet. All I need
to do is to install it on the Pocket PC. I want to be
able to do it from the pokcet PC.The Pocket PCs will be
shipped to the filed with my app installed on them. The
user picks the location based on which their access point
will be set. My Question is, how can I execute a remote
CAB file from the pocket PC. My job would be much easier
if I could just do Process.start, but that does not work
on the Compact Framework :-(

-Krishnan
-----Original Message-----
you're welcome.

where's the location of the cab file? on the pocket pc or on the desktop? ifit's going to be on the pocket pc, then you're wasting valuable memory tohouse cabs that may/not ever be used not to mention the annoyance of havingto cancel its automatic installation attempt when you move the cab from thedesktop to the pocket pc. if you are pulling the cab from the desktop to thepocket pc, you are adding a lot of complications.. .and again, wastingvaluable memory by having an application installed on the pocket pc whoseonly purpose is to choose what other applications s/b installed.
imo, you should push all applications from the desktop to thehand-held...anything else, is a waste of effort and memory.
but that's my $0.02 usd.

hth,

steve
<an*******@dis cussions.micros oft.com> wrote in message
news:0c******* *************** ******@phx.gbl. ..
Thanks a lot. Actually All I want to do is invoke another CAB from a Pocket PC app. The POCKET PC App that I'm
developing would get some data from the user and kickoff another CAB file. I think I can customize the code you
provided to do the same.

Thanks again.
>-----Original Message-----
>a final thought...you'd have been better off posting

this question in the
>microsoft.publ ic.pocketpc.dev eloper newsgroup. you got

lucky here...i'm not
>the only ppc developer that lurks about in this ng...but
we certainly are in
>the single digits. your odds of getting the answer i

posted here are about
>the same a winning the lottery.
>
>i left out details on some things...i assume you've
made setup packages
>before...thoug ht i'd save space in the response by

omitting them. if you
>have more questions, go ahead and continue this
thread. otherwise, this
>would have benefited more people had it be posted to a

more suitable ng.
>post new pocket pc questions to the appropriate
audience. >
>hth,
>
>steve
>
>
>"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in message
>news:2c******* *************** *******@phx.gbl ...
>> I'm writing a Pocket PC app that will run when a
device >> is first powered on. I want this program to get some

data
>> from the user and invoke a CAB file to install a

software
>> on the device. How do I invoke a CAB file from the

VB app?
>>
>> Thanks
>
>
>.
>

.

Nov 20 '05 #8
ok then...

it only gets more complex from here so i hope this first method works for
you. why not try installing the cab via pocket ie...you know, codebase blah,
blah, blah. if that works, then you've used an already installed application
to install what you want...and you can still manage the cab versions in one
location - the server. this also allows you to add/remove selectable
applications w/o having to recompile and redistribute you proposed installer
application. give the user a url w/ checkboxes of the available apps to
install...that page posts the app information to an asp page that
dynamically builds the pointers to each cab file, ex.:

<OBJECT style="visibili ty:hidden">
CODEBASE="url/to/your/target.cab#Vers ion=1,0,0,0"
CLASSID="CLSID: WHATEVERCLASSID YOUHAVEFORYOURC ODEBASE"
</OBJECT>

here's a link to help you out w/ a couple of approaches...in case you want
to use a unc in lieu of a url/web page.

http://www.devguy.com/fp/XML/installMSXML4ViaCab.htm

hth,

steve
<an*******@disc ussions.microso ft.com> wrote in message
news:09******** *************** *****@phx.gbl.. .
The cab file actually exists on the Intranet. All I need
to do is to install it on the Pocket PC. I want to be
able to do it from the pokcet PC.The Pocket PCs will be
shipped to the filed with my app installed on them. The
user picks the location based on which their access point
will be set. My Question is, how can I execute a remote
CAB file from the pocket PC. My job would be much easier
if I could just do Process.start, but that does not work
on the Compact Framework :-(

-Krishnan
-----Original Message-----
you're welcome.

where's the location of the cab file? on the pocket pc

or on the desktop? if
it's going to be on the pocket pc, then you're wasting

valuable memory to
house cabs that may/not ever be used not to mention the

annoyance of having
to cancel its automatic installation attempt when you

move the cab from the
desktop to the pocket pc. if you are pulling the cab

from the desktop to the
pocket pc, you are adding a lot of complications.. .and

again, wasting
valuable memory by having an application installed on

the pocket pc whose
only purpose is to choose what other applications s/b

installed.

imo, you should push all applications from the desktop

to the
hand-held...anything else, is a waste of effort and

memory.

but that's my $0.02 usd.

hth,

steve
<an*******@dis cussions.micros oft.com> wrote in message
news:0c******* *************** ******@phx.gbl. ..
Thanks a lot. Actually All I want to do is invoke another CAB from a Pocket PC app. The POCKET PC App that I'm
developing would get some data from the user and kickoff another CAB file. I think I can customize the code you
provided to do the same.

Thanks again.

>-----Original Message-----
>a final thought...you'd have been better off posting
this question in the
>microsoft.publ ic.pocketpc.dev eloper newsgroup. you got
lucky here...i'm not
>the only ppc developer that lurks about in this ng...but we certainly are in
>the single digits. your odds of getting the answer i
posted here are about
>the same a winning the lottery.
>
>i left out details on some things...i assume you've made setup packages
>before...thoug ht i'd save space in the response by
omitting them. if you
>have more questions, go ahead and continue this thread. otherwise, this
>would have benefited more people had it be posted to a
more suitable ng.
>post new pocket pc questions to the appropriate audience. >
>hth,
>
>steve
>
>
>"Krishnan Margabandhu" <Kr************ ******@target.c om> wrote in message
>news:2c******* *************** *******@phx.gbl ...
>> I'm writing a Pocket PC app that will run when a device >> is first powered on. I want this program to get some
data
>> from the user and invoke a CAB file to install a
software
>> on the device. How do I invoke a CAB file from the VB app?
>>
>> Thanks
>
>
>.
>

.

Nov 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2840
by: SA Dev | last post by:
Hi, I just finished writing something to make a help file for a Pocket PC device. The Pocket PC device allows not really showing the .HTM file as a long single file, but instead uses a tag to suppress the file to only display one topic at a time. It then uses bookmarks to jump around the file. I realize that this could be done with multiple HTML files, but I was hoping there was some way to do it in a single file somehow. Does anyone...
1
1028
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables syncronization with remote database using merge replication. I found contradictory results while installing the application. I will mention here all the steps that I done while creating and installing setups. Result: Case 1: worked fine. ...
11
6638
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to transfer data across.On the serve I am using Socket 2 API (recv function to read bytes)and not using ..NET. I use FileStream to open the file on the pocket pc, then associate a BinaryReader object with the stream and call ReadBytes to read all the...
2
3639
by: hijack | last post by:
Thanks for reading this message. I'd like to know the programming for accessing CDB File( MS-Access) in PocketPC. Can I use OLE DB provider of ADO.net ?
10
2014
by: Neil Wallace | last post by:
Guys, I am hopping mad. I am just a hobby programmer making little .net applications for pretty much no-one else but me to use. One application I have written would, to my mind, work best on a handheld PC. Fortunately I have a Pocket PC - an HP jornada bought 4 years ago. Doing my
3
2382
by: AAA | last post by:
Hi, how could I deploy all my CF, SQLCE and my applicaiton .CAB file to pocket pc... I am now only able to run the msi setup file and install my application to my pocket pc, but I need to intall compact framework, opennetcf, and sqlce separentely. I am thinking if there is a way to run a setup file and install all the necessary components and files to pocket pc. I have done a search in google group. actually found 1 artcile talking...
1
999
by: Luis Ramos | last post by:
hello, my friends Can you give me a hand pls?... I made an executable file in vb.net 2003 and i want to run it in a pocket pc with windows mobille 2003. I´ve tranferes the executable file and the dll´s to a empty foldar in the pocket pc. When i try to run the aplication an error ocurs: aplication.exe TypeLoadException
4
3661
by: Robert Iver | last post by:
Hello everyone, I am trying to create an application that utilizes a SQL Mobile database. I have included that database in my main project, and it compiles and debugs just fine. I then created a custom installer project packaged as a class library and made an installer project to wrap the whole thing up into an MSI package. Basically the idea behind doing all this is so the handheld app can be pushed out through group policy.
1
1925
by: shakthi | last post by:
Hi I created an online Mobile application using .net 2.0 on server side and another offline application on mobile client using .net compact framework 2.0. I packaged my offline application to CAB file and installed inside Pocket PC. The CAB file created an exe file of my offline application in the Pocket PC. My offline application downloads a zip file from the server and unzips into a particular folder inside the Pocket PC device and this...
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.