VirtualBox

Changeset 66274 in vbox for trunk/src/VBox/Installer/win


Ignore:
Timestamp:
Mar 28, 2017 12:19:45 AM (8 years ago)
Author:
vboxsync
Message:

VBox/Main: ​bugref:3300: VBoxSVC from terminal server session is not 'visible' - added VBoxSDS implementation

Location:
trunk/src/VBox/Installer/win
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Makefile.kmk

    r66037 r66274  
    580580                -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
    581581                -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
     582        -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
    582583                -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
    583584                -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
     
    671672                -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
    672673                -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
     674        -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
    673675                -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
    674676                -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
     
    700702                | $$(dir $$@)
    701703        $(VBOX_XSLTPROC) \
    702                 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" '$(VBOX_MIDL_PROXY_CLSID)',) \
     704                $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" "$(VBOX_MIDL_PROXY_CLSID)",) \
     705        $(if-expr defined(VBOX_WITH_SDS),--stringparam "a_sWithSDS" "yes",) \
    703706                -o $@ $< $(VBOX_XIDL_FILE)
    704707
     
    708711                | $$(dir $$@)
    709712        $(VBOX_XSLTPROC) --stringparam "a_sTarget" "VBoxClient-x86" \
    710                 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" '$(VBOX_MIDL_PROXY_CLSID)',) \
    711                 -o $@ $< $(VBOX_XIDL_FILE)
     713                $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" "$(VBOX_MIDL_PROXY_CLSID)",) \
     714        $(if-expr defined(VBOX_WITH_SDS),--stringparam "a_sWithSDS" "yes",) \
     715                -o $@ $< $(VBOX_XIDL_FILE)
    712716
    713717#
  • trunk/src/VBox/Installer/win/VBoxMergeApp.wxi

    r65996 r66274  
    8282        <?include $(env.PATH_TARGET)\VirtualBox_TypeLib.wxi ?>
    8383<?endif?>
     84       
     85 <?if $(env.VBOX_WITH_SDS) = "yes" ?>
     86        <File Id="VBoxSDS" Name="VBoxSDS.exe"
     87              Source="$(env.PATH_OUT)\bin\VBoxSDS.exe">
     88        </File>
     89 <?endif?>
    8490    </Component>
    8591
  • trunk/src/VBox/Installer/win/VirtualBox_TypeLib.xsl

    r64339 r66274  
    2828
    2929<xsl:param name="a_sTarget">all</xsl:param>
     30<xsl:param name="a_sWithSDS">no</xsl:param>
    3031
    3132
     
    6667      <xsl:attribute name="MinorVersion"><xsl:value-of select="substring(@version,3)"/></xsl:attribute>
    6768      <xsl:attribute name="Language">0</xsl:attribute>
    68       <xsl:attribute name="Description"><xsl:value-of select="@desc"/></xsl:attribute>
     69      <xsl:attribute name="Description"><xsl:value-of select="@name"/></xsl:attribute>
    6970      <xsl:attribute name="HelpDirectory"><xsl:text>msm_VBoxApplicationFolder</xsl:text></xsl:attribute>
    70       <AppId>
    71         <xsl:attribute name="Id"><xsl:value-of select="@appUuid"/></xsl:attribute>
    72         <xsl:attribute name="Description"><xsl:value-of select="@name"/> Application</xsl:attribute>
    73         <xsl:choose>
    74           <xsl:when test="$a_sTarget = 'VBoxClient-x86'">
    75             <xsl:apply-templates select="module[@name='VBoxC']/class"/>
    76           </xsl:when>
    77           <xsl:otherwise>
    78             <xsl:apply-templates select="module/class"/>
    79           </xsl:otherwise>
    80         </xsl:choose>
    81       </AppId>
     71      <xsl:apply-templates select="application"/>
    8272    </TypeLib>
    8373  </Include>
    8474</xsl:template>
    8575
     76
     77    <!--
     78* filters to skip VBoxSDS class and interfaces if a VBOX_WITH_SDS is not defined in kmk
     79-->
     80    <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']">
     81        <xsl:if test="a_sWithSDS='yes'" >
     82            <xsl:call-template name="application_template" />
     83        </xsl:if>
     84    </xsl:template>
     85   
     86    <!--
     87    * applications
     88    -->
     89    <xsl:template match="idl/library//application" name="application_template">
     90        <AppId>
     91            <xsl:attribute name="Id">
     92                <xsl:value-of select="@uuid"/>
     93            </xsl:attribute>
     94            <xsl:attribute name="Description">
     95                <xsl:value-of select="@name"/> Application
     96            </xsl:attribute>
     97            <xsl:choose>
     98                <xsl:when test="$a_sTarget = 'VBoxClient-x86'">
     99                    <xsl:apply-templates select="module[@name='VBoxC']/class"/>
     100                </xsl:when>
     101                <xsl:otherwise>
     102                    <xsl:apply-templates select="module/class"/>
     103                </xsl:otherwise>
     104            </xsl:choose>
     105        </AppId>
     106    </xsl:template>
     107   
    86108
    87109<!--
     
    143165</xsl:template>
    144166
    145 
    146167<!--
    147168 *  eat everything else not explicitly matched
  • trunk/src/VBox/Installer/win/VirtualBox_TypeLibWithInterfaces.xsl

    r64339 r66274  
    6363<xsl:key name="G_keyInterfacesByName" match="//interface[@name]" use="@name"/>
    6464
     65<!--
     66* filters to skip VBoxSDS class and interfaces if a VBOX_WITH_SDS is not defined in kmk
     67-->
     68    <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']">
     69        <xsl:if test="a_sWithSDS='yes'" >
     70            <xsl:call-template name="application_template" />
     71        </xsl:if>
     72    </xsl:template>
    6573
    6674<!--
     
    7583      <xsl:attribute name="MinorVersion"><xsl:value-of select="substring(@version,3)"/></xsl:attribute>
    7684      <xsl:attribute name="Language">0</xsl:attribute>
    77       <xsl:attribute name="Description"><xsl:value-of select="@desc"/></xsl:attribute>
     85      <xsl:attribute name="Description"><xsl:value-of select="@name"/></xsl:attribute>
    7886      <xsl:attribute name="HelpDirectory"><xsl:text>msm_VBoxApplicationFolder</xsl:text></xsl:attribute>
    79       <AppId>
    80         <xsl:attribute name="Id"><xsl:value-of select="@appUuid"/></xsl:attribute>
    81         <xsl:attribute name="Description"><xsl:value-of select="@name"/> Application</xsl:attribute>
    82         <xsl:choose>
    83           <xsl:when test="$a_sTarget = 'VBoxClient-x86'">
    84             <xsl:apply-templates select="module[@name='VBoxC']/class"/>
    85           </xsl:when>
    86           <xsl:otherwise>
    87             <xsl:apply-templates select="module/class"/>
    88           </xsl:otherwise>
    89         </xsl:choose>
    90       </AppId>
    91       <xsl:apply-templates select="interface | if/interface">
    92         <xsl:sort select="translate(@uuid,'abcdef','ABCDEF')"/>
    93       </xsl:apply-templates>
     87        <xsl:apply-templates select="application" />
    9488    </TypeLib>
    9589  </Include>
    9690</xsl:template>
    9791
     92<!--
     93Applications.
     94-->
     95<xsl:template match="application">
     96    <AppId>
     97        <xsl:attribute name="Id">
     98            <xsl:value-of select="@uuid"/>
     99        </xsl:attribute>
     100        <xsl:attribute name="Description">
     101            <xsl:value-of select="@name"/> Application
     102        </xsl:attribute>
     103        <xsl:choose>
     104            <xsl:when test="$a_sTarget = 'VBoxClient-x86'">
     105                <xsl:apply-templates select="module[@name='VBoxC']/class"/>
     106            </xsl:when>
     107            <xsl:otherwise>
     108                <xsl:apply-templates select="module/class"/>
     109            </xsl:otherwise>
     110        </xsl:choose>
     111    </AppId>
     112    <xsl:apply-templates select="interface | if/interface">
     113        <xsl:sort select="translate(@uuid,'abcdef','ABCDEF')"/>
     114    </xsl:apply-templates>
     115</xsl:template>
    98116
    99117<!--
     
    114132        <xsl:when test="../@context='InprocServer'">InprocServer32</xsl:when>
    115133        <xsl:when test="../@context='LocalServer'">LocalServer32</xsl:when>
     134          <xsl:when test="../@context='LocalService'">LocalServer32</xsl:when>
    116135        <xsl:otherwise>
    117136          <xsl:message terminate="yes">
     
    160179</xsl:template>
    161180
    162 
     181 
    163182<!--
    164183  Interfaces.
    165184-->
    166 <xsl:template match="library/interface | library/if[@target='midl']/interface">
     185<xsl:template match="library/application/interface | library/application/if[@target='midl']/interface">
    167186  <Interface>
    168187<!-- Interface Id="{00C8F974-92C5-44A1-8F3F-702469FDD04B}" Name="IDHCPServer" ProxyStubClassId32="{0BB3B78C-1807-4249-5BA5-EA42D66AF0BF}" NumMethods="33" -->
     
    178197</xsl:template>
    179198
     199   
    180200
    181201<!--
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette