
How to get Application Data folder/Word template folder in Vista
By: a guest on
Feb 26th, 2012 | syntax:
None | size: 0.94 KB | hits: 20 | expires: Never
C:Documents and Settings<user>Application DataMicrosoftTemplates
<Property Id="APPDIR" Secure="yes">
<RegistrySearch Id="RegSearch_AppData"
Type="directory"
Key="SoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders"
Name="AppData"
Root="HKCU" />
</Property>
<CustomAction Id="ActionWordTemplateFolderAssign"
Property="TEMPLATEFOLDER"
Value="[APPDIR]MicrosoftTemplates" />
<InstallExecuteSequence>
<Custom Action="ActionWordTemplateFolderAssign" Sequence="1" />
</InstallExecuteSequence>
[AppDataFolder]MicrosoftTemplates
<Property Id="USERTEMPLATES">
<RegistrySearch Id="SearchUserTemplates"
Root="HKCU"
Key="SoftwareMicrosoftOffice11.0CommonGeneral"
Name="UserTemplates"
Type="raw" />
</Property>
<DirectoryRef Id="TARGETDIR">
<Directory Id="TemplateFolder" Name="Templates"/>
</DirectoryRef>