2012-03-12 102 views
4

我正在嘗試通過將Type設置爲dword來創建一個DWORD註冊表項。我得到:可以使用wix創建DWORD註冊表項嗎?

error CNDL0021 : The RegistryValue/@Type attribute's value, 'dword', is not 
       one of the legal options: 'binary', 'expandable', 'integer', 
       'multiString', or 'string'. 

這些應該使用哪些?

+0

我真的建議使用Visual Studio編輯WiX文件,語法突出顯示和智能感知集成將在您編譯之前顯示爲無效。你甚至會提出一個下拉列表顯示有效值:) – saschabeaumont 2012-03-14 04:59:39

+0

@saschabeaumont這是否適用於VS2005? – fredley 2012-03-14 09:05:37

+0

是的,它確實:)從內存中我認爲你需要爲VS2005集成安裝的WiX「Votive」插件(並且WiX安裝程序應該會提示你這個問題) – saschabeaumont 2012-03-16 05:25:58

回答

8

綜觀文檔爲RegistryValue使這明顯:

整數
該值被解釋並且爲整數(REG_DWORD)存儲。

+0

現在,爲了獲得更多樂趣,請嘗試創建一個QWord。 :o – 2012-03-12 13:17:36

相關問題