Guest User

How to get Application Data folder/Word template folder in Vista

a guest
Feb 26th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. C:Documents and Settings<user>Application DataMicrosoftTemplates
  2.  
  3. <Property Id="APPDIR" Secure="yes">
  4. <RegistrySearch Id="RegSearch_AppData"
  5. Type="directory"
  6. Key="SoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders"
  7. Name="AppData"
  8. Root="HKCU" />
  9. </Property>
  10.  
  11. <CustomAction Id="ActionWordTemplateFolderAssign"
  12. Property="TEMPLATEFOLDER"
  13. Value="[APPDIR]MicrosoftTemplates" />
  14.  
  15. <InstallExecuteSequence>
  16. <Custom Action="ActionWordTemplateFolderAssign" Sequence="1" />
  17. </InstallExecuteSequence>
  18.  
  19. [AppDataFolder]MicrosoftTemplates
  20.  
  21. <Property Id="USERTEMPLATES">
  22. <RegistrySearch Id="SearchUserTemplates"
  23. Root="HKCU"
  24. Key="SoftwareMicrosoftOffice11.0CommonGeneral"
  25. Name="UserTemplates"
  26. Type="raw" />
  27. </Property>
  28.  
  29. <DirectoryRef Id="TARGETDIR">
  30. <Directory Id="TemplateFolder" Name="Templates"/>
  31. </DirectoryRef>
Add Comment
Please, Sign In to add comment