PDA

View Full Version : automated installs


twinair
26th November 2004, 01:28 AM
Hi All,

I need some help with CAb files and such.

I'm working on a "self healing" solution for some customers of ours, so that if their device runs out of battery power, when charged, it will rebuild itself and reconfigure itself, so there is minimal user intervention.

What we do is put all our CAB files in the EXROM, and that's how we get it done.
I have an issue with our encryption software in that it's install CAB can't be run from the EXROM, it needs to be run from the root of the device. But it also has to be paired with a license file.

So what I need to do is build a CAB file, that encompasses the Pointsec install CAB and the license file, that copies itself to the root of the device upon running my CAB and runs them from there.
how do I get these files to execute once i've told them to be copied to the root?

I though i'd also put a shortcut to the install CAB in the \windows\startup folder
but once the install CAB is run, the shortcut remains, and therefore upno soft-reset it throws up errors that the file no longer exists

here is a copy of the INF file i wrote to do this.
bear in mind, i'm new to this, so it may be incorrect.
================================================== ==========================================

[SOURCE FILE]
Name=Pointsec_Shortcut.cab
Path=C:\Documents and Settings\build\My Documents\Pocketpc\corporate soe v1.3a\EXTRACTED\new folder\Pointsec_Shortcut.cab
Type=Original

[Version]
Signature="$Chicago$"
CESignature="$Windows CE$"
Provider="Pointsec"

[CEStrings]
AppName="for Pocket PC 2.3"
InstallDir="\"

[CEDevice]
ProcessorType=0
VersionMin=0.0
VersionMax=0.0
BuildMin=0
BuildMax=0

[SourceDisksNames]
1=,Source1,,"[INSTALLDIR]"
2=,Source2,,"[License]



[SourceDisksFiles]
"Pointsec_for_Pocket_PC 2.3.cab"=1
"InstProf.ppp"=2





[CopyFiles1]
"Pointsec_for_Pocket_PC 2.3.cab",,,0x20000003

[CopyFiles2]
"InstProf.ppp",,,0x20000003



[CEShortcuts1]
"Pointsec.lnk",0,"Pointsec_for_Pocket_PC 2.3.cab"



[DestinationDirs]
CopyFiles1=0,"\"
CEShortcuts1=0,"%CE4"




[DefaultInstall]
CEShortcuts=CEShortcuts1
CopyFiles=CopyFiles1
================================================== =========================================

Is there a registry entry, like in win2k/XP where I can get this to "runonce" or anything like that ?

Any help would be greatly appreciated.

edsub
26th November 2004, 01:32 AM
you should put the cab in the ExtROM, and then.

In config.txt:
add lines to copy the cab to the root
add a line to run the cab from the root

Syntax: http://forum.xda-developers.com/viewtopic.php?t=6648&highlight=config+txt+syntax

twinair
26th November 2004, 01:46 AM
cheers edsub,

I wasn't aware of the EXEC command for the config.txt.

that will save me from having to build a CAb file to do this !

for future reference though, is there an execute command you can put into a .inf for theCAB file?
or is that where the setup.dll comes into play ?

edsub
26th November 2004, 02:20 AM
yup, thats the allmighty setup.dll.
problem is with that: If you havent build it, you dont know what it does . . .

twinair
26th November 2004, 02:55 AM
damn, looks like i have to brush up on my C++ skills :D

thanks again !!