I am creating a WiX installer that needs to do an AppSearch for a certain folder. The AppSearch works fine in Windows XP, but in Windows 7, it cannot get past C:\Documents and Settings.
If I put the folder in question inside Documents and Settings, my AppSearch property will be set to C:\Documents and Settings\Folder. If I put the folder one directory deeper (eg. C:\Documents and Settings\username\Folder), the AppSearch fails.
In the log file, the error says:
DEBUG: Error 2363: Could not enumerate subfolders for folder: C:\Documents and Settings\
I also get an error from another AppSearch saying:
DUBUG: Error 2363: Could not enumerate subfolders for folder: D:\System Volume Information\
I tried running my installer perUser and perMachine. The error happens for both. Maybe this has to do with the fact that 'Documents and Settings' in Windows 7 is actually a shortcut to 'Users'.
Does anyone know what's going on here?
Here's my AppSearch:
<Property Id="DataSearch">
<DirectorySearch Id="Search"
Depth="6"
AssignToProperty="yes"
Path="Remindex Local Data"/>
</Property>
Any suggestions would be greatly appreciated.