How to run app after installing from cab?

C

chris-s

Hi,

Any ideas or tips on how I can get my application to automatically run after
installing it from it's cab file?

In this particular scenario the app is automatically downloading an update
of itself, the cab file will have been automatically downloaded to the
device into the cabfiles folder on the storage card and then either
warm-rebooted by code or the 'autocab' exe run, again by code, not sure
which method I will use yet.

My problem is getting the app to startup again once the cab file install has
been run.

Cheers,

Chris
 
A

Aaron Ruckman [MSFT]

For PPC devices, all you need to do is copy a shortcut into the
\storage\windows\startup directory, since you are already using the storage
card, or just \windows\startup then whenever the device is warm or soft
rebooted the program will automatically start up.

-----------------------------------------
Aaron Ruckman
Builder
.NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

chris-s

Hi Aaron,

Thanks for the reply, but, we thought of that, but will this not cause a
problem since the cab file installation process will be started on reboot,
only to find that the app has been started and so it will be unable to
complete the installation since it cannot overwrite the executable?

Chris
 
J

Jesse Vaught [MSFT]

Have you added a custom 'setup.dll' as described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_evtuv/ht
ml/etgrfsetupdllfilesfordevices.asp to your cab? You can add CreateProcess
code to the Install_Exit function that would launch your application.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
 
C

chris-s

Nope, didn't know about that, but I do now, thanks, I'll take a look.

Cheers,

Chris.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top