cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vanyans
Level 3

long file names in registry

Hi Everyone,

I am using InstallShiled 2010 for my basic MSI projects.
There are lots of files to register and I am using extract com at build time for all of them.
In release I specified to use long file names.
That problem is that file pats in registry are in short file format:
e.g. C:\PROGRA~1\COMMON~1
And I need the path to be in long format: e.g. C:\Program Files\Common Files

Any help would be very much appreciated.

Thanks
Labels (1)
0 Kudos
(2) Replies
vanyans
Level 3

I just realized I should have been more specific in my first post.
The problem is that MSI registers the files and writes into registry using short file paths.
We need paths to be in a long format.
And if I register the file manually paths are in a long format.

How can I tell MSI to write paths in a long format to the registry when registering the file?

Thank you!
0 Kudos
TimoZimmermann
Level 5

Com extract at build writes [!Component] in the registry which will be interpreted as a short path.

..."•If a substring of the form [!filekey] is found, it is replaced by the full short path of the file, with the value filekey used as a key into the File table."...

One Solution is to maintain the com information statically. There you can provide personal changes.

Bit if somebody got the problem solved with using com extract at build then please let me know...
0 Kudos