What does a element do under in WiX?












1














I'm trying to understand what Class means inside a File element and I can't find anything using google. The reason that I need to understand this is that I'm converting a WiX installer to InstallShield. According the the WiX docs Classes are COM components but I don't think that applies here (and if it does then I have a whole other question about how to use COM components in InstallShield, but I'll skip that question for now. Here's the code. Can someone please tell me what this is doing?



<File Id="pg_audio_sink.ax" KeyPath="yes" Source="$(var.DirectShow)pg_audio_sinkReleasepg_audio_sink.ax">
<Class Id="{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}" Context="InprocServer32" Description="AAC Encoder" ThreadingModel="both" />
<Class Id="{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
<Class Id="{AF94923E-31C7-483A-A2EA-57D86BF26AD7}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
</File>









share|improve this question
























  • When looking at the file with dependency walker or some other tool to view exported functions, do you see DllRegisterServer? Installshield should be able to extract COM registration data for COM files by setting the component flag "COM Extract at Build...", but I am not sure this type of file can be registered in the normal way.
    – Stein Åsmul
    Nov 21 at 4:23
















1














I'm trying to understand what Class means inside a File element and I can't find anything using google. The reason that I need to understand this is that I'm converting a WiX installer to InstallShield. According the the WiX docs Classes are COM components but I don't think that applies here (and if it does then I have a whole other question about how to use COM components in InstallShield, but I'll skip that question for now. Here's the code. Can someone please tell me what this is doing?



<File Id="pg_audio_sink.ax" KeyPath="yes" Source="$(var.DirectShow)pg_audio_sinkReleasepg_audio_sink.ax">
<Class Id="{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}" Context="InprocServer32" Description="AAC Encoder" ThreadingModel="both" />
<Class Id="{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
<Class Id="{AF94923E-31C7-483A-A2EA-57D86BF26AD7}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
</File>









share|improve this question
























  • When looking at the file with dependency walker or some other tool to view exported functions, do you see DllRegisterServer? Installshield should be able to extract COM registration data for COM files by setting the component flag "COM Extract at Build...", but I am not sure this type of file can be registered in the normal way.
    – Stein Åsmul
    Nov 21 at 4:23














1












1








1







I'm trying to understand what Class means inside a File element and I can't find anything using google. The reason that I need to understand this is that I'm converting a WiX installer to InstallShield. According the the WiX docs Classes are COM components but I don't think that applies here (and if it does then I have a whole other question about how to use COM components in InstallShield, but I'll skip that question for now. Here's the code. Can someone please tell me what this is doing?



<File Id="pg_audio_sink.ax" KeyPath="yes" Source="$(var.DirectShow)pg_audio_sinkReleasepg_audio_sink.ax">
<Class Id="{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}" Context="InprocServer32" Description="AAC Encoder" ThreadingModel="both" />
<Class Id="{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
<Class Id="{AF94923E-31C7-483A-A2EA-57D86BF26AD7}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
</File>









share|improve this question















I'm trying to understand what Class means inside a File element and I can't find anything using google. The reason that I need to understand this is that I'm converting a WiX installer to InstallShield. According the the WiX docs Classes are COM components but I don't think that applies here (and if it does then I have a whole other question about how to use COM components in InstallShield, but I'll skip that question for now. Here's the code. Can someone please tell me what this is doing?



<File Id="pg_audio_sink.ax" KeyPath="yes" Source="$(var.DirectShow)pg_audio_sinkReleasepg_audio_sink.ax">
<Class Id="{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}" Context="InprocServer32" Description="AAC Encoder" ThreadingModel="both" />
<Class Id="{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
<Class Id="{AF94923E-31C7-483A-A2EA-57D86BF26AD7}" Context="InprocServer32" Description="Settings" ThreadingModel="both" />
</File>






wix windows-installer installshield






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 14:51









Stein Åsmul

20.9k1354117




20.9k1354117










asked Nov 20 at 20:09









Ben_G

3551414




3551414












  • When looking at the file with dependency walker or some other tool to view exported functions, do you see DllRegisterServer? Installshield should be able to extract COM registration data for COM files by setting the component flag "COM Extract at Build...", but I am not sure this type of file can be registered in the normal way.
    – Stein Åsmul
    Nov 21 at 4:23


















  • When looking at the file with dependency walker or some other tool to view exported functions, do you see DllRegisterServer? Installshield should be able to extract COM registration data for COM files by setting the component flag "COM Extract at Build...", but I am not sure this type of file can be registered in the normal way.
    – Stein Åsmul
    Nov 21 at 4:23
















When looking at the file with dependency walker or some other tool to view exported functions, do you see DllRegisterServer? Installshield should be able to extract COM registration data for COM files by setting the component flag "COM Extract at Build...", but I am not sure this type of file can be registered in the normal way.
– Stein Åsmul
Nov 21 at 4:23




When looking at the file with dependency walker or some other tool to view exported functions, do you see DllRegisterServer? Installshield should be able to extract COM registration data for COM files by setting the component flag "COM Extract at Build...", but I am not sure this type of file can be registered in the normal way.
– Stein Åsmul
Nov 21 at 4:23












1 Answer
1






active

oldest

votes


















1















Can someone please tell me what this is doing?




This File element is to register pg_audio_sink.ax, which is DirectShow Filter.

See also:
How to Register DirectShow Filters
How to Implement IUnknown



Your code will create 3 registry key, and register pg_audio_sink.ax as COM server.



HKEY_CLASSES_ROOTCLSID{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}
HKEY_CLASSES_ROOTCLSID{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}
HKEY_CLASSES_ROOTCLSID{AF94923E-31C7-483A-A2EA-57D86BF26AD7}


DirectShow is based on COM.

So I think Class element in your code is for COM component.






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%2f53400781%2fwhat-does-a-class-element-do-under-file-in-wix%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









    1















    Can someone please tell me what this is doing?




    This File element is to register pg_audio_sink.ax, which is DirectShow Filter.

    See also:
    How to Register DirectShow Filters
    How to Implement IUnknown



    Your code will create 3 registry key, and register pg_audio_sink.ax as COM server.



    HKEY_CLASSES_ROOTCLSID{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}
    HKEY_CLASSES_ROOTCLSID{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}
    HKEY_CLASSES_ROOTCLSID{AF94923E-31C7-483A-A2EA-57D86BF26AD7}


    DirectShow is based on COM.

    So I think Class element in your code is for COM component.






    share|improve this answer


























      1















      Can someone please tell me what this is doing?




      This File element is to register pg_audio_sink.ax, which is DirectShow Filter.

      See also:
      How to Register DirectShow Filters
      How to Implement IUnknown



      Your code will create 3 registry key, and register pg_audio_sink.ax as COM server.



      HKEY_CLASSES_ROOTCLSID{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}
      HKEY_CLASSES_ROOTCLSID{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}
      HKEY_CLASSES_ROOTCLSID{AF94923E-31C7-483A-A2EA-57D86BF26AD7}


      DirectShow is based on COM.

      So I think Class element in your code is for COM component.






      share|improve this answer
























        1












        1








        1







        Can someone please tell me what this is doing?




        This File element is to register pg_audio_sink.ax, which is DirectShow Filter.

        See also:
        How to Register DirectShow Filters
        How to Implement IUnknown



        Your code will create 3 registry key, and register pg_audio_sink.ax as COM server.



        HKEY_CLASSES_ROOTCLSID{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}
        HKEY_CLASSES_ROOTCLSID{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}
        HKEY_CLASSES_ROOTCLSID{AF94923E-31C7-483A-A2EA-57D86BF26AD7}


        DirectShow is based on COM.

        So I think Class element in your code is for COM component.






        share|improve this answer













        Can someone please tell me what this is doing?




        This File element is to register pg_audio_sink.ax, which is DirectShow Filter.

        See also:
        How to Register DirectShow Filters
        How to Implement IUnknown



        Your code will create 3 registry key, and register pg_audio_sink.ax as COM server.



        HKEY_CLASSES_ROOTCLSID{7E4D071A-50B7-42D8-ADFE-B0C3715422B9}
        HKEY_CLASSES_ROOTCLSID{2A67EDA3-7AE8-494E-808C-60C1E2C992C1}
        HKEY_CLASSES_ROOTCLSID{AF94923E-31C7-483A-A2EA-57D86BF26AD7}


        DirectShow is based on COM.

        So I think Class element in your code is for COM component.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 21 at 2:06









        chg

        13627




        13627






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f53400781%2fwhat-does-a-class-element-do-under-file-in-wix%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

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'