Ratha Grimes

I am trying to create a CAB file for a smart device installer. I started out using the visual studio project type "Smart Device CAB Project" and from there started editing the .inf file by hand to try to get my scenario to work.

I need to install files that have percent (%) characters in their names. If the filenames are inserted without change into the .inf file, cabwiz.exe generates errors like:

Error: Line 100 - unsupported DirID 20
Error: Line 112 - unsupported DirID 3
Error: Line 139 - unsupported DirID 3
Error: File c:\docume~1\rathag\locals~1\temp\wiz955.inf contains DirIDs, which are not supported

I tried doubling the percent signs to escape them, but this resulted in cabwiz thinking I was using replacement values:

Warning: Found macro "%3a%", which may be missing a substitution string in the source INF file
Warning: Found macro "%2fimabetap.msn-tst.com%", which may be missing a substitution string in the source INF file
Warning: Found macro "%2foffline%", which may be missing a substitution string in the source INF file
Error: CAB file "C:\[path]\CabFile.CAB" could not be created

Since carets (^) can be used to do some escaping in batch files, I tried that here also, with no success. I also tried three and four percent sequences.

Is there any way to create an installer that will place files with percent signs in their names

Thanks!
Ratha



Re: Smart Devices General Creating a CAB file that will install files with % characters in their names

AndrewBadera

strings with pairs of % characters in them are generally recognized as environmental variables or macro variables under WinNT ... why do your filenames need to contain % signs



Re: Smart Devices General Creating a CAB file that will install files with % characters in their names

Ratha Grimes

"strings with pairs of % characters in them are generally recognized as environmental variables or macro variables under WinNT"

True, but I was hoping that there would be a reasonable escape sequence, as opposed to certain valid filename characters not being allowed in an installer scenario.

" ... why do your filenames need to contain % signs "

My application has a cache that uses URL-encoding on the filenames. I wanted to prepopulate the cache on initial install. It is not really an option to change the caching scheme, although I could push back if this is going to be a problem with windows installers in general. Setting up a special set of files for my immediate purposes with %-free filenames would also be disproportionately difficult due to the parameters of the situation.