VirtualBox

Changeset 94380 in vbox for trunk


Ignore:
Timestamp:
Mar 28, 2022 10:11:20 AM (3 years ago)
Author:
vboxsync
Message:

Installer/win: Only show and handle custom action to start VirtualBox after successful installation if FE/Qt is included. Removed bogus custom actions. bugref:10201

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/UserInterface.wxi

    r87623 r94380  
    531531        <Dialog Id="VBoxExitDlg" Width="370" Height="270" Title="[ProductName] !(loc.Setup)" NoMinimize="yes">
    532532            <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.ButtonText_Finish)">
     533<?if $(env.VBOX_WITH_QTGUI) = "yes" ?> <!-- Only expose action to start VirtualBox if we also ship FE/Qt with it. -->
    533534                <Publish Event="DoAction" Value="ca_StartVBox"><![CDATA[VBOX_START]]></Publish>
     535<?endif ?>
    534536                <Publish Event="EndDialog" Value="Return">1</Publish>
    535537            </Control>
     
    547549            </Control>
    548550
     551            <!-- Only show the checkbox to start VirtualBox if we also ship FE/Qt with it. -->
     552<?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
    549553            <!-- Note the gray background behind the checkboxes. Unfortunately there's no easy way to
    550554                 fix this, without fixing it in the WiX source code. Because the control's background
     
    562566                </Condition>
    563567            </Control>
    564 
     568<?endif ?>
    565569            <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
    566570            <Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
  • trunk/src/VBox/Installer/win/VirtualBox.wxs

    r93242 r94380  
    234234    </Condition>-->
    235235
    236     <!-- Note: When we don't include FE/Qt, we just start *something* (e.g. Windows' calc.exe) to see if the custom action works. -->
    237 <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?>
    238     <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
    239         <CustomAction Id="ca_StartVBox" FileKey="file_VirtualBox.exe" ExeCommand="" Return="asyncNoWait" Impersonate="yes" />
    240     <?else ?>
    241         <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand='"[INSTALLDIR]\VBoxBugReport.exe"' Return="asyncNoWait" Impersonate="yes" />
    242     <?endif ?>
    243 <?else ?>
    244     <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
    245         <CustomAction Id="ca_StartVBox" Directory="file_VBoxBugReport.exe" ExeCommand="" Return="asyncNoWait" Impersonate="yes" />
    246     <?else ?>
    247         <CustomAction Id="ca_StartVBox" Directory="INSTALLDIR" ExeCommand='"[INSTALLDIR]\VBoxBugReport.exe"' Return="asyncNoWait" Impersonate="yes" />
    248     <?endif ?>
     236    <!-- Note: Only if we include FE/Qt, we offer to start VirtualBox at the end of a successful installation. -->
     237<?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
     238    <CustomAction Id="ca_StartVBox" FileKey="file_VirtualBox.exe" ExeCommand="" Return="asyncNoWait" Impersonate="yes" />
    249239<?endif ?>
    250240
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