2011-05-05 39 views
1

我沒有太多的exp在wix中,所以也許我的問題是愚蠢的,但我找不到答案。 我定義的安全,公共財產:Wix:公共安全屬性不是從gui更新InstallExecuteSequence

<Property Id="REPORTSERVERNAME" Secure="yes"/> 

然後在後面的代碼我有CA的:

<CustomAction Id="Create_Folder_MyReports_Cmd" Property="Create_Folder_MyReports" Value="&quot;rs.exe&quot; -i &quot;[DBINSTALLLOCATION]RSS Scripts\CreateFolder.rss&quot; -s http://[REPORTSERVERNAME]/Reportserver -v parentFolder=&quot;/&quot; -v folderName=&quot;MyReports&quot; -v folderHidden=&quot;FALSE&quot;" Execute="immediate" /> 
<CustomAction Id="Create_Folder_MyReports" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="yes" /> 
<InstallExecuteSequence> 
    <Custom Action="Create_Folder_MyReports_Cmd" Before="Create_Folder_MyReports"></Custom> 
    <Custom Action="Create_Folder_MyReports" Before="InstallFinalize" ></Custom> 
</InstallExecuteSequence> 

,並在對話框中我有一個編輯:

<Control Id="ReportServer" Type="Edit" X="75" Y="72" Width="170" Height="18" Property="REPORTSERVERNAME"/> 

所以在日誌中我有: SecureCustomProperties = REPORTSERVERNAME 和值正在改變,但在CA執行它只是空的。不能真正弄清楚問題。 幫助PLZ,如果你有任何想法。

回答