开发者

properties attached to UI don't get changed

开发者 https://www.devze.com 2023-02-27 05:55 出处:网络
In my WiX install package I define a property, then define a textbox that uses this property, then pass this property to my custom action. But inside of the custom action I find out that the property

In my WiX install package I define a property, then define a textbox that uses this property, then pass this property to my custom action. But inside of the custom action I find out that the property has it's default value, not the one I've specified in the textbox. How can I fix that?

<Property Id="DataSource" Value="."/>
<Control Id="DataSourceText" Type="Edit" Text="." Height="17" Width="150" X="200" Y="18" Property="DataSource"/>

then later in the code

    <CustomAction Id="SetCu开发者_如何学PythonstomActionDataValue" Return="check" Property="CreateDatabase" Value="DataSource=[DataSource]" />
    <CustomAction Id="CreateDatabase" BinaryKey="Binary1" DllEntry="CreateDatabase" Execute="deferred" Return="ignore"/>
    <InstallExecuteSequence>                
        <Custom Action='SetCustomActionDataValue'  After="InstallFiles"/>
        <Custom Action='CreateDatabase'  After="SetCustomActionDataValue">NOT Installed AND NOT PATCH</Custom>
    </InstallExecuteSequence>


Any properties that you intend to modify in the UI sequence and use in the Execute sequence must be Secure Custom Properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消