Feature to be installed depending upon user selection using checkbox in wix installer












0















I have created the dialog in wix which has 3 checkbox. user can select either one or all at a time. depending upon the selection of check box the feature needs to be selected and installed.



Suppose I have 3 application (ABC, DEF, GHI) and these are defined in the feature with condition statement.



<Control Id="ABC" Type="CheckBox" X="190" Y="110" Width="50" Height="17" Property="PQR" CheckBoxValue="1" Text="ABC">


similarly for other 2 application also I have the checkbox control.



Now I have 3 features like below.



<Feature Id="abc" Title="ABC" Level="0">
<Condition Level="1"><![CDATA[PQR="1"]]></Condition>
<ComponentRef Id="InstallABC"/>
</Feature>


I don't want to add the PQR as property in product.wxs because I don' want the checkbox to be selected by default.



Is it possible to do it using custom action.



Any answer or suggestions will be grateful.










share|improve this question



























    0















    I have created the dialog in wix which has 3 checkbox. user can select either one or all at a time. depending upon the selection of check box the feature needs to be selected and installed.



    Suppose I have 3 application (ABC, DEF, GHI) and these are defined in the feature with condition statement.



    <Control Id="ABC" Type="CheckBox" X="190" Y="110" Width="50" Height="17" Property="PQR" CheckBoxValue="1" Text="ABC">


    similarly for other 2 application also I have the checkbox control.



    Now I have 3 features like below.



    <Feature Id="abc" Title="ABC" Level="0">
    <Condition Level="1"><![CDATA[PQR="1"]]></Condition>
    <ComponentRef Id="InstallABC"/>
    </Feature>


    I don't want to add the PQR as property in product.wxs because I don' want the checkbox to be selected by default.



    Is it possible to do it using custom action.



    Any answer or suggestions will be grateful.










    share|improve this question

























      0












      0








      0








      I have created the dialog in wix which has 3 checkbox. user can select either one or all at a time. depending upon the selection of check box the feature needs to be selected and installed.



      Suppose I have 3 application (ABC, DEF, GHI) and these are defined in the feature with condition statement.



      <Control Id="ABC" Type="CheckBox" X="190" Y="110" Width="50" Height="17" Property="PQR" CheckBoxValue="1" Text="ABC">


      similarly for other 2 application also I have the checkbox control.



      Now I have 3 features like below.



      <Feature Id="abc" Title="ABC" Level="0">
      <Condition Level="1"><![CDATA[PQR="1"]]></Condition>
      <ComponentRef Id="InstallABC"/>
      </Feature>


      I don't want to add the PQR as property in product.wxs because I don' want the checkbox to be selected by default.



      Is it possible to do it using custom action.



      Any answer or suggestions will be grateful.










      share|improve this question














      I have created the dialog in wix which has 3 checkbox. user can select either one or all at a time. depending upon the selection of check box the feature needs to be selected and installed.



      Suppose I have 3 application (ABC, DEF, GHI) and these are defined in the feature with condition statement.



      <Control Id="ABC" Type="CheckBox" X="190" Y="110" Width="50" Height="17" Property="PQR" CheckBoxValue="1" Text="ABC">


      similarly for other 2 application also I have the checkbox control.



      Now I have 3 features like below.



      <Feature Id="abc" Title="ABC" Level="0">
      <Condition Level="1"><![CDATA[PQR="1"]]></Condition>
      <ComponentRef Id="InstallABC"/>
      </Feature>


      I don't want to add the PQR as property in product.wxs because I don' want the checkbox to be selected by default.



      Is it possible to do it using custom action.



      Any answer or suggestions will be grateful.







      checkbox wix windows-installer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 27 '18 at 11:55









      KUMAR VAIBHAW SINGHKUMAR VAIBHAW SINGH

      76




      76
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You need to publish the feature as AddLocal and explicitly you need to call Remove All before adding AddLocal.
          On Next button you need to write these code.



          <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
          <Publish Event="Remove" Value="ALL" Order="1">1</Publish>
          <Publish Event="AddLocal" Value="Feature1">CheckBox1="1"</Publish>
          <Publish Event="AddLocal" Value="Feature2">CheckBox2="1"</Publish>
          </Control>


          Next the feature will look like this.



          <Feature Id="Feature1" Title="ABC">
          <ComponentRef Id="InstallABC"/>
          </Feature>



          Note:- Feature should not have the Level Element, Also Don't add any Property for your CheckBox explicitly anywhere like Product.wxs.







          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53499122%2ffeature-to-be-installed-depending-upon-user-selection-using-checkbox-in-wix-inst%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You need to publish the feature as AddLocal and explicitly you need to call Remove All before adding AddLocal.
            On Next button you need to write these code.



            <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
            <Publish Event="Remove" Value="ALL" Order="1">1</Publish>
            <Publish Event="AddLocal" Value="Feature1">CheckBox1="1"</Publish>
            <Publish Event="AddLocal" Value="Feature2">CheckBox2="1"</Publish>
            </Control>


            Next the feature will look like this.



            <Feature Id="Feature1" Title="ABC">
            <ComponentRef Id="InstallABC"/>
            </Feature>



            Note:- Feature should not have the Level Element, Also Don't add any Property for your CheckBox explicitly anywhere like Product.wxs.







            share|improve this answer




























              0














              You need to publish the feature as AddLocal and explicitly you need to call Remove All before adding AddLocal.
              On Next button you need to write these code.



              <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
              <Publish Event="Remove" Value="ALL" Order="1">1</Publish>
              <Publish Event="AddLocal" Value="Feature1">CheckBox1="1"</Publish>
              <Publish Event="AddLocal" Value="Feature2">CheckBox2="1"</Publish>
              </Control>


              Next the feature will look like this.



              <Feature Id="Feature1" Title="ABC">
              <ComponentRef Id="InstallABC"/>
              </Feature>



              Note:- Feature should not have the Level Element, Also Don't add any Property for your CheckBox explicitly anywhere like Product.wxs.







              share|improve this answer


























                0












                0








                0







                You need to publish the feature as AddLocal and explicitly you need to call Remove All before adding AddLocal.
                On Next button you need to write these code.



                <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
                <Publish Event="Remove" Value="ALL" Order="1">1</Publish>
                <Publish Event="AddLocal" Value="Feature1">CheckBox1="1"</Publish>
                <Publish Event="AddLocal" Value="Feature2">CheckBox2="1"</Publish>
                </Control>


                Next the feature will look like this.



                <Feature Id="Feature1" Title="ABC">
                <ComponentRef Id="InstallABC"/>
                </Feature>



                Note:- Feature should not have the Level Element, Also Don't add any Property for your CheckBox explicitly anywhere like Product.wxs.







                share|improve this answer













                You need to publish the feature as AddLocal and explicitly you need to call Remove All before adding AddLocal.
                On Next button you need to write these code.



                <Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
                <Publish Event="Remove" Value="ALL" Order="1">1</Publish>
                <Publish Event="AddLocal" Value="Feature1">CheckBox1="1"</Publish>
                <Publish Event="AddLocal" Value="Feature2">CheckBox2="1"</Publish>
                </Control>


                Next the feature will look like this.



                <Feature Id="Feature1" Title="ABC">
                <ComponentRef Id="InstallABC"/>
                </Feature>



                Note:- Feature should not have the Level Element, Also Don't add any Property for your CheckBox explicitly anywhere like Product.wxs.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 29 '18 at 9:37









                KUMAR VAIBHAW SINGHKUMAR VAIBHAW SINGH

                76




                76
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53499122%2ffeature-to-be-installed-depending-upon-user-selection-using-checkbox-in-wix-inst%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Lallio

                    Futebolista

                    Jornalista