Visual Studio Installer: How to Target Windows Public Documents Folder?

前端 未结 2 1349
陌清茗
陌清茗 2021-02-15 17:53

I am creating a desktop app that needs to install an SDF file to the SpecialFolder.CommonDocuments folder (C:\\Users\\Public\\documents in Win 7). In a

2条回答
  •  遇见更好的自我
    2021-02-15 18:48

    The answer of David Veeneman is great! Helped a lot. A little correction:

    Right-click 'File System on Target Machine' and select 'Add Special Folder > Custom Folder' from the context menu. A new item will appear (see 1 above). Rename the item Common Documents. In the properties pane (See 2 above), set the 'Property' property to

    [COMDOCFOLDER]

    Those square brackets are necessary, otherwise you'll receive exception while executing the installer.

提交回复
热议问题