403Webshell
Server IP : 172.67.216.182  /  Your IP : 162.158.88.131
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/packaging/WiX/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/packaging/WiX/mysql_server.wxs.in
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">

<!--
   Copyright (c) 2010, 2023, Oracle and/or its affiliates.
   
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License, version 2.0,
   as published by the Free Software Foundation.

   This program is also distributed with certain software (including
   but not limited to OpenSSL) that is licensed under separate terms,
   as designated in a particular file or component or in included license
   documentation.  The authors of MySQL hereby grant you an additional
   permission to link the program and your derivative works with the
   separately licensed software that they have included with MySQL.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License, version 2.0, for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-->

  <Package
    UpgradeCode="@UPGRADE_CODE@"
    Name="@PRODUCT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@" 
    Version="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" 
    Language="1033" 
    Manufacturer="@MANUFACTURER@"
    InstallerVersion="200">
    
    <SummaryInformation
       Keywords='Installer'
       Description="@PRODUCT_DESCRIPTION@"
       Manufacturer='@MANUFACTURER@' />
  
    <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />

    <Property Id="MYSQL_INSTALLER" Secure="yes" /> 
    <Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/>

    <!-- Upgrade -->
    <Upgrade Id="@UPGRADE_ID@">
      <?if '@PATCH_VERSION@' != '0'?>
      <UpgradeVersion 
        Minimum="@MAJOR_VERSION@.@[email protected]"
        IncludeMinimum="yes"
        Maximum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@"
        IncludeMaximum="yes"
        Property="OLDERVERSIONBEINGUPGRADED"
        MigrateFeatures="yes"
        />
      <?endif?>
      <UpgradeVersion 
        Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@"
        IncludeMinimum="no"
        OnlyDetect="yes"
        Property="NEWERVERSIONDETECTED" />
    </Upgrade>
    <Launch Condition="NOT NEWERVERSIONDETECTED OR Installed"
      Message="A later version of [ProductName] is already installed. Setup will now exit." />
    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize"/>
    </InstallExecuteSequence>

    <?if "@LINK_STATIC_RUNTIME_LIBRARIES@"="OFF" ?>
      <?if "@Platform@"="x64"?>
        <Property Id="VS14REDISTX64">
          <RegistrySearch Id="FindRedistVS14"
              Bitness="always64"
              Root="HKLM"
              Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64"
              Name="Version"
              Type="raw" />
        </Property>
        <Launch Condition="Installed OR VS14REDISTX64" Message="This application requires Visual Studio 2019 x64 Redistributable. Please install the Redistributable then run this installer again." />
      <?elseif "@Platform@"="x86" ?>
        <Property Id="VS14REDISTX86">
          <RegistrySearch Id="FindRedistVS14"
              Bitness="always32"
              Root="HKLM"
              Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86"
              Name="Version"
              Type="raw" />
        </Property>
        <Launch Condition="Installed OR VS14REDISTX86" Message="This application requires Visual Studio 2019 x86 Redistributable. Please install the Redistributable then run this installer again." />
      <?endif?>
    <?endif?> 
 
    <!-- Save/restore install location -->
    <CustomAction Id="SaveTargetDir" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
    <InstallExecuteSequence>
      <Custom Action="SaveTargetDir" After="InstallValidate" Condition="NOT Installed" />
    </InstallExecuteSequence>
    <InstallUISequence>
      <!-- App search is what does FindInstallLocation, and it is dependent on FindRelatedProducts -->
      <AppSearch After="FindRelatedProducts"/>
    </InstallUISequence>
 
    <!-- Find previous installation -->
    <Property Id="GETINSTALLDIR">
      <RegistrySearch Id="FindInstallLocation"
          Root="HKLM"
          @Win64@
          Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
          Name="InstallLocation"
          Type="raw" />
    </Property>
    <CustomAction Id="SetInstall"    Property="INSTALLDIR" Value="[GETINSTALLDIR]" />
    <InstallUISequence>
       <Custom Action="SetInstall"    After="AppSearch" Condition="Installed" />
    </InstallUISequence>
    <Property Id="OLDERVERSION"> 
      <RegistrySearch Id="FindOlderVersion"
        Root="HKLM"
        @Win64@
        Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
        Name="DisplayVersion"
        Type="raw" />
    </Property>
    <Property Id="INSTALLDIR2">
       <RegistrySearch Id="FindInstallLocation2"
          Root="HKLM"
          Key="SOFTWARE\MySQL AB\[ProductName]"
          Name="Location"
          Type="raw" />
    </Property>
    <CustomAction Id="SetInstallDir2" Property="INSTALLDIR" Value="[INSTALLDIR2]" /> 
    <InstallUISequence>
      <Custom Action="SetInstallDir2" After="AppSearch" Condition="INSTALLDIR2" /> 
    </InstallUISequence>
   
    <CustomAction Id="QtRemoveService" BinaryRef="Wix4UtilCA_X86" DllEntry="WixQuietExec"
            Execute="deferred" Return="ignore" Impersonate="no"/>
    <InstallExecuteSequence>
      <Custom Action="QtRemoveService" After="InstallInitialize" Condition="(NOT UPGRADINGPRODUCTCODE) AND (REMOVE=&quot;ALL&quot;) AND (NOT MYSQL_INSTALLER=&quot;YES&quot;)" />
    </InstallExecuteSequence>
    <SetProperty Before="QtRemoveService" Sequence="execute" Id="QtRemoveService" Value="&quot;cmd.exe&quot; /S /V:ON /C &quot;echo off&amp;set &quot;d=[INSTALLDIR]&quot;&amp;FOR /f &quot;skip=1&quot; %s in ('wmic service where ^'pathname like &quot;%!d:\=\\!%&quot;^' get name ^| findstr /r &quot;^.$&quot;') do ((for /L %k IN (1,1,20) do wmic service where 'name=&quot;%s&quot; and started=&quot;true&quot;' call stopservice | FIND /v &quot;No Instance&quot;&gt;NUL&amp;&amp;timeout /t 5 /nobreak&gt;NUL)&amp;sc delete %s&gt;NUL)&quot;" />

    <!-- UI -->
    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"></Property>
    <UIRef Id="@CPACK_WIX_UI@" />
    <UIRef Id="WixUI_ErrorProgressText" />
    <WixVariable
      Id="WixUIBannerBmp"
      Value="@CMAKE_CURRENT_SOURCE_DIR@/AdminHeader.jpg" />
    <WixVariable
      Id="WixUIDialogBmp"
      Value="@CMAKE_CURRENT_SOURCE_DIR@/AdminBackground.jpg" />
    <Icon
      Id="icon.ico"
      SourceFile="@CMAKE_CURRENT_SOURCE_DIR@/MySQLServer.ico"/>
    <Icon 
      Id="Icon.MysqlCmdShell" 
      SourceFile='@CMAKE_CURRENT_SOURCE_DIR@/mysqlcommandlineshell.ico' />	  	  
    <Property
      Id="ARPPRODUCTICON"
      Value="icon.ico" />
    
    <!-- License -->
    <WixVariable
      Id="WixUILicenseRtf"
      Value="@LICENSE_RTF@"/>

    <!-- Installation root-->
      <StandardDirectory Id='ProgramFiles6432Folder'>
        <Directory Id='directory.MySQL' Name='MySQL'>
          <Directory Id='INSTALLDIR' Name='@PRODUCT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@'>
          </Directory>
        </Directory>
      </StandardDirectory>

    <!-- CPACK_WIX_FEATURES -->
    @CPACK_WIX_FEATURES@
    
    <!-- CPACK_WIX_DIRECTORIES -->
    @CPACK_WIX_DIRECTORIES@
    
    <!--CPACK_WIX_COMPONENTS-->
    @CPACK_WIX_COMPONENTS@
    
    <!--CPACK_WIX_COMPONENTS_GROUPS -->
    @CPACK_WIX_COMPONENT_GROUPS@
    
    <!--CPACK_WIX_INCLUDES -->
    @CPACK_WIX_INCLUDES@
  </Package>
</Wix>

Youez - 2016 - github.com/yon3zu
LinuXploit