Changeset 70228 in vbox for trunk/src/VBox/Installer/win
- Timestamp:
- Dec 19, 2017 7:28:15 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119820
- Location:
- trunk/src/VBox/Installer/win
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/VBoxMergeApp.wxi
r69407 r70228 82 82 <?include $(env.PATH_TARGET)\VirtualBox_TypeLib.wxi ?> 83 83 <?endif?> 84 </Component> 84 85 85 86 <?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?> 90 </Component> 87 <Component Id="cp_VBoxSDS" Guid="{3DC151E0-CA53-4213-8711-D983FDA28132}" > 88 <File Id="VBoxSDS" Name="VBoxSDS.exe" Vital="yes" KeyPath="yes" 89 Source="$(env.PATH_OUT)\bin\VBoxSDS.exe"> 90 </File> 91 <!-- 92 The Name of windows service is referenced in different places. 93 Don't forget to change it in other places too If you change it here : 94 VirtualBox.idl (module name), 95 VBoxSDS.cpp and VBoxProxyStub.cpp 96 --> 97 <ServiceInstall Id="VBoxSDSInstall" 98 Account="LocalSystem" 99 Type="ownProcess" 100 Name="VBoxSDS" 101 DisplayName="VirtualBox system service" 102 Description="Used as a COM server for VirtualBox API." 103 Start="demand" 104 Interactive="no" 105 ErrorControl="normal" 106 Vital="yes"> 107 <ServiceDependency Id="RPCSS" /> 108 </ServiceInstall> 109 <ServiceControl Id="VBoxSDSControl" Name="VBoxSDS" Stop="both" Remove="uninstall" /> 110 </Component> 111 <?endif?> 91 112 92 113 <?if $(env.VBOX_WITH_MIDL_PROXY_STUB) = "yes" ?> -
trunk/src/VBox/Installer/win/VirtualBox.wxs
r69407 r70228 234 234 <CustomAction Id="ca_UninstallBrandingArgs" Property="ca_UninstallBranding" Value="[INSTALLDIR]" Execute="immediate"/> 235 235 236 <?if $(env.VBOX_WITH_SDS) = "yes" ?>237 <CustomAction Id="ca_InstallVBoxSDS" Directory="INSTALLDIR" ExeCommand='"[INSTALLDIR]\VBoxSDS.exe" --regservice' Return="check" Impersonate="no" />238 <CustomAction Id="ca_UninstallVBoxSDS" Directory="INSTALLDIR" ExeCommand='"[INSTALLDIR]\VBoxSDS.exe" --unregservice' Return="check" Impersonate="no" />239 <?endif?>240 241 236 <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?> 242 237 <?include VBoxMergeAppCA.wxi ?> … … 460 455 <!-- unattended template component --> 461 456 <ComponentRef Id="cp_UnattendedTemplates" /> 457 <?endif ?> 458 459 <?if $(env.VBOX_WITH_SDS) = "yes" ?> 460 <ComponentRef Id="cp_VBoxSDS" /> 462 461 <?endif ?> 463 462 … … 578 577 <Custom Action="ca_UninstallBranding" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom> 579 578 580 <?if $(env.VBOX_WITH_SDS) = "yes" ?>581 <Custom Action="ca_InstallVBoxSDS" After="InstallFinalize" ><![CDATA[NOT REMOVE]]></Custom>582 <Custom Action="ca_UninstallVBoxSDS" Before="InstallFinalize" ><![CDATA[(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")]]></Custom>583 <?endif ?>584 585 579 <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?> 586 580 <?include VBoxMergeAppSeq.wxi ?> -
trunk/src/VBox/Installer/win/VirtualBox_TypeLib.xsl
r69407 r70228 28 28 29 29 <xsl:param name="a_sTarget">all</xsl:param> 30 <xsl:param name="a_sWithSDS" >no</xsl:param>30 <xsl:param name="a_sWithSDS" select="no"/> 31 31 32 32 … … 79 79 --> 80 80 <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']"> 81 <xsl:if test=" a_sWithSDS='yes'" >81 <xsl:if test="$a_sWithSDS='yes'" > 82 82 <xsl:call-template name="application_template" /> 83 83 </xsl:if> … … 95 95 <xsl:value-of select="@name"/> Application 96 96 </xsl:attribute> 97 <!-- 98 The name of windows service should be defined as module name in .xidl. 99 It's viable for correct registration of COM windows service. 100 --> 101 <xsl:if test="module/@context = 'LocalService'"> 102 <xsl:attribute name="LocalService" > 103 <xsl:value-of select="module/@name"/> 104 </xsl:attribute> 105 </xsl:if> 97 106 <xsl:choose> 98 107 <xsl:when test="$a_sTarget = 'VBoxClient-x86'"> … … 118 127 <xsl:choose> 119 128 <xsl:when test="../@context='InprocServer'">InprocServer32</xsl:when> 120 <xsl:when test="../@context='LocalServer'">LocalServer32</xsl:when> 129 <xsl:when test="../@context='LocalServer'" >LocalServer32</xsl:when> 130 <xsl:when test="../@context='LocalService'">LocalServer32</xsl:when> 121 131 <xsl:otherwise> 122 132 <xsl:message terminate="yes"> -
trunk/src/VBox/Installer/win/VirtualBox_TypeLibWithInterfaces.xsl
r69407 r70228 27 27 28 28 <xsl:param name="a_sTarget">all</xsl:param> 29 <xsl:param name ="a_sWithSDS" select="no"/> 29 30 <xsl:param name="a_sProxyStubClsid">{0BB3B78C-1807-4249-5BA5-EA42D66AF0BF}</xsl:param> 30 31 <xsl:variable name="g_sProxyStubClsid" select="translate($a_sProxyStubClsid,'abcdef','ABCDEF')"/> … … 67 68 --> 68 69 <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']"> 69 <xsl:if test=" a_sWithSDS='yes'" >70 <xsl:if test="$a_sWithSDS='yes'" > 70 71 <xsl:call-template name="application_template" /> 71 72 </xsl:if> … … 93 94 Applications. 94 95 --> 95 <xsl:template match="application" >96 <xsl:template match="application" name="application_template"> 96 97 <AppId> 97 98 <xsl:attribute name="Id"> … … 101 102 <xsl:value-of select="@name"/> Application 102 103 </xsl:attribute> 104 <!-- 105 The name of windows service should be defined as module name in .xidl. 106 It's viable for correct registration of COM windows service. 107 --> 108 <xsl:if test="module/@context = 'LocalService'"> 109 <xsl:attribute name="LocalService" > 110 <xsl:value-of select="module/@name"/> 111 </xsl:attribute> 112 </xsl:if> 103 113 <xsl:choose> 104 114 <xsl:when test="$a_sTarget = 'VBoxClient-x86'"> … … 131 141 <xsl:choose> 132 142 <xsl:when test="../@context='InprocServer'">InprocServer32</xsl:when> 133 <xsl:when test="../@context='LocalServer'" >LocalServer32</xsl:when>134 143 <xsl:when test="../@context='LocalServer'" >LocalServer32</xsl:when> 144 <xsl:when test="../@context='LocalService'">LocalServer32</xsl:when> 135 145 <xsl:otherwise> 136 146 <xsl:message terminate="yes">
Note:
See TracChangeset
for help on using the changeset viewer.