2017-04-25 45 views
1

我用WIX_DIR_COMMON_DOCUMENTS,如OSInfo custom actions描述,安裝文件在Windows 7, 8, and 10一個Public Documents所在的文件夾,我測試過的是,該文件安裝在C:\users\Public\Documents 。我無權訪問XPVista問題:在目標系統XPVista上,如果我使用相同的代碼,WiX安裝程序將安裝該文件嗎? 注意:我使用的是WiX 3.11 RC,但這可能不重要。使用WiX的目標公共文件夾在Windows XP和Vista

回答

1

對於Windows XP,它將是C:\Documents and Settings\All Users\Documents

對於Windows Vista,它應該與Windows 7相同:C:\Users\Public\Documents

您可以使用WiX documentationTechnet查找其他特殊文件夾的位置。

+0

'C:\ Documents and Settings \ All Users \ Documents' - 注意XP路徑是本地化的, G。在德國系統上它將是'C:\ Dokumente und Einstellungen \ All Users \ Dokumente'。 Vista隨着物理路徑不再本地化而改變,Explorer只是*顯示*本地化。 – zett42

相關問題