I'll kick this out to the world as I am out of ideas on this at the moment
Does anyone know how to get a CE CAB installer to copy to the root of the object store/file system?
[CEStrings]
AppName="Test"
InstallDir="\"
[SourceDisksFiles]
"file1.txt" = 1
[DestinationDirs]
FilePath0 = 0,"%InstallDir%"
InstallDir="\" gets the CAB's installer to load at the root
... but FilePath0 = 0,"%InstallDir%" literally creates a folder called \%InstallDir%
(with the percentage signs
) on the root
FilePath0 = 0,"\" - hangs
So does changing the \ to
.
..
%SystemDrive%
%Root%
\Windows\..
%24%
(which is the driver CAB macro for SystemDrive root
)
%18% which is one higher than the last valid %17% macro for \Windows\Favourites
%CE%
%CE0%
I cannot see anything in the strings table in wceload.exe that is helpful.
If someone wants to try looking at the macro list on their device, this might tell them - it doesn't work on my CE 2.00.
#include
main()
{
wchar_t b[64];
int i;
char *s[64];
for (i=0; i<65536; i++) {
if (SHGetSpecialFolderPath(0, b, i, 0)) {
wcstombs(s, b, 64);
if (s[0] != '\0')
printf("%d - [%s]\n", i, s);
}
}
}
I cannot find any reference or hack to perform a root copy. It doesn't see to be something that anyone has ever asked about either.