VirtualBox

Ignore:
Timestamp:
Jun 1, 2022 7:47:19 AM (3 years ago)
Author:
vboxsync
Message:

Windows host installer: Also remove the created Python API cache on uninstall. bugref:10204

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/VirtualBox.wxs

    r94393 r95153  
    211211    </Property>
    212212
     213<?if $(env.VBOX_WITH_PYTHON) = "yes" ?>
     214    <Property Id="EXISTING_PYTHON_API_FOLDER" Secure="yes" >
     215        <RegistrySearch Id="RegistryGetPythonApiInstallPath" Root="HKLM" Key="$(var.Property_RegKey)"
     216                        Name="PythonApiInstallDir" Type="raw" Win64="$(var.Property_Win64)"/>
     217    </Property>
     218<?endif ?>
     219
    213220    <!--
    214221                            install upgrade uninstall
     
    269276            <Directory Id="VENDOR" Name="$(env.VBOX_VENDOR_SHORT)">
    270277                <Directory Id="INSTALLDIR" Name="VirtualBox">
     278                    <!-- Components for removing empty folder after cleaning traces -->
     279                    <Component Id="cp_INSTALLDIR" Guid="374723AF-5990-4552-A1B0-82C72EFA360F">
     280                        <RemoveFolder Id="INSTALLDIR" On="uninstall" />
     281                    </Component>
    271282<?if $(env.VBOX_WITH_MSM_INSTALL) = "yes" ?>
    272283                <Merge Id="msm_VBoxApp" Language="!(loc.LANG)" SourceFile="$(var.Property_VBoxMergeApp)" DiskId="1">
     
    364375    <?endif ?>
    365376                    </Directory>
     377                    <!-- Component for removing empty folder after cleaning traces -->
     378                    <Component Id="cp_SDK" Guid="ACA59290-B2D6-4E96-B164-C45F70A90219">
     379                        <RemoveFolder Id="dir_SDK" On="uninstall" />
     380                    </Component>
    366381                </Directory>
    367382<?endif ?>
     
    434449        <ComponentRef Id="cp_QuickLaunchVBox" />
    435450<?endif ?>
     451        <!-- Components for removing empty folders after cleaning traces -->
     452        <ComponentRef Id="cp_INSTALLDIR" />
     453        <ComponentRef Id="cp_SDK" />
     454
    436455        <!-- Components handled either by the installer itself or
    437456             the merge module -->
     
    444463    <!-- Make sure to reference the permissions component, which takes care of setting
    445464         the required ACLs for our files / folders. -->
    446     <ComponentRef Id="cp_Permissions" />
     465        <ComponentRef Id="cp_Permissions" />
    447466    <?if $(env.VBOX_WITH_QTGUI) = "yes" ?>
    448467        <ComponentRef Id="cp_RegisterExtensions" />
     
    472491        <ComponentRef Id="cp_VBoxPyInst" />
    473492        <ComponentRef Id="cp_VBoxPyMod" />
     493        <ComponentRef Id="cp_VBoxPyDel" />
    474494    <?endif ?>
    475495    <?if $(env.VBOX_WITH_VBOXSDL) = "yes" ?>
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