| 1 |
<Include> |
| 2 |
<Property Id="HEIDISQLINSTALLED64" Secure="yes"> |
| 3 |
<RegistrySearch Id="HeidiSQL" |
| 4 |
Root="HKLM" |
| 5 |
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HeidiSQL_is1" |
| 6 |
Name="UninstallString" |
| 7 |
Type="raw" |
| 8 |
Win64="yes" |
| 9 |
/> |
| 10 |
</Property> |
| 11 |
<Property Id="HEIDISQLINSTALLED32" Secure="yes"> |
| 12 |
<RegistrySearch Id="HeidiSQL32" |
| 13 |
Root="HKLM" |
| 14 |
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HeidiSQL_is1" |
| 15 |
Name="UninstallString" |
| 16 |
Type="raw" |
| 17 |
Win64="no" |
| 18 |
/> |
| 19 |
</Property> |
| 20 |
<?define pluginlist=auth_gssapi_client.dll;auth_named_pipe.dll;caching_sha2_password.dll;client_ed25519.dll;dialog.dll;mysql_clear_password.dll;pvio_npipe.dll;pvio_shmem.dll;sha256_password.dll?> |
| 21 |
<DirectoryRef Id="MariaDBShared"> |
| 22 |
<Directory Id="D.HeidiSQL" Name="HeidiSQL"> |
| 23 |
<Component Id="component.HeidiSQL" Guid="f1294698-5a30-46cb-ad87-b1aa6321d424" Win64="yes"> |
| 24 |
|
| 25 |
<File Id="heidisql.gpl.txt" Name="gpl.txt" Source="${HEIDISQL_DOWNLOAD_DIR}\gpl.txt" /> |
| 26 |
<File Id="heidisql.heidisql.exe" Name="heidisql.exe" Source="${HEIDISQL_DOWNLOAD_DIR}\heidisql.exe" KeyPath="yes"> |
| 27 |
<Shortcut Id="desktopHeidiSQL" Directory="DesktopFolder" Name="HeidiSQL(x64)" Advertise="yes"/> |
| 28 |
</File> |
| 29 |
<!-- |
| 30 |
Forced file removal for heidisql.exe might be required. |
| 31 |
HeidiSQL is self-updating, thus the version that was installed by MSI not necessarily matches |
| 32 |
the version of the file on uninstall. MSI would not touch such file by default and leave it after |
| 33 |
uninstallation. We use RemoveFile to force delete in any case. |
| 34 |
--> |
| 35 |
<RemoveFile Id="Remove_HeidiSQL_exe" Name="heidisql.exe" On="uninstall" /> |
| 36 |
<!-- remove readme.txt too, it's not included in HeidiSQL-9.1-Portable.zip --> |
| 37 |
<RemoveFile Id="Remove_readme_txt" Name="readme.txt" On="uninstall" /> |
| 38 |
|
| 39 |
<File Id="heidisql.license.txt" Name="license.txt" Source="${HEIDISQL_DOWNLOAD_DIR}\license.txt" /> |
| 40 |
</Component> |
| 41 |
<Component Id="component.HeidiSQL_MenuShortcut" Guid="*" Win64="yes"> |
| 42 |
<RegistryValue Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall" Name="shortcuts.heidisql" Value="1" Type="string" KeyPath="yes" /> |
| 43 |
<Shortcut Id="startmenuHeidiSQL" Directory="ShortcutFolder" Name="HeidiSQL(x64)" Target="[D.HeidiSQL]\heidisql.exe"/> |
| 44 |
</Component> |
| 45 |
|
| 46 |
<Component Id="component.HeidiSQL_libmysql.dll" Guid="*" Win64="yes"> |
| 47 |
<File Id="heidisql.libmysql.dll" Name="libmysql.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libmysql.dll" /> |
| 48 |
</Component> |
| 49 |
<Component Id="component.HeidiSQL_libmysql_6.1.dll" Guid="*" Win64="yes"> |
| 50 |
<File Id="heidisql.libmysql_6.1.dll" Name="libmysql-6.1.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libmysql-6.1.dll" /> |
| 51 |
</Component> |
| 52 |
<Component Id="component.HeidiSQL_libmysql_8.4.0.dll" Guid="*" Win64="yes"> |
| 53 |
<File Id="heidisql.libmysql_8.4.0.dll" Name="libmysql-8.4.0.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libmysql-8.4.0.dll" /> |
| 54 |
</Component> |
| 55 |
<Component Id="component.HeidiSQL_libmysql_9.4.0.dll" Guid="*" Win64="yes"> |
| 56 |
<File Id="heidisql.libmysql_9.4.0.dll" Name="libmysql-9.4.0.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libmysql-9.4.0.dll" /> |
| 57 |
</Component> |
| 58 |
|
| 59 |
|
| 60 |
<Component Id="component.HeidiSQL_libmariadb.dll" Guid="*" Win64="yes"> |
| 61 |
<File Id="heidisql.libmariadb.dll" Name="libmariadb.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libmariadb.dll" /> |
| 62 |
</Component> |
| 63 |
<Component Id="component.HeidiSQL_libssl_3.dll" Guid="*" Win64="yes"> |
| 64 |
<File Id="heidisql.libssl_3.dll" Name="libssl-3-x64.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libssl-3-x64.dll" /> |
| 65 |
</Component> |
| 66 |
<Component Id="component.HeidiSQL_libcrypto_3.dll" Guid="*" Win64="yes"> |
| 67 |
<File Id="heidisql.libcrypto_3_x64.dll" Name="libcrypto-3-x64.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libcrypto-3-x64.dll" /> |
| 68 |
</Component> |
| 69 |
|
| 70 |
<Component Id="component.HeidiSQL_libpq_15.dll" Guid="*" Win64="yes"> |
| 71 |
<File Id="heidisql.libpq_15.dll" Name="libpq-15.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libpq-15.dll" /> |
| 72 |
</Component> |
| 73 |
<Component Id="component.HeidiSQL_libpq_17.dll" Guid="*" Win64="yes"> |
| 74 |
<File Id="heidisql.libpq_17.dll" Name="libpq-17.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libpq-17.dll" /> |
| 75 |
</Component> |
| 76 |
|
| 77 |
<Component Id="component.HeidiSQL_libintl_9.dll" Guid="*" Win64="yes"> |
| 78 |
<File Id="heidisql.libintl_9.dll" Name="libintl-9.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libintl-9.dll" /> |
| 79 |
</Component> |
| 80 |
<Component Id="component.HeidiSQL_libiconv_2.dll" Guid="*" Win64="yes"> |
| 81 |
<File Id="heidisql.libiconv_2.dll" Name="libiconv-2.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libiconv-2.dll" /> |
| 82 |
</Component> |
| 83 |
<Component Id="component.HeidiSQL_sqlite3.dll" Guid="*" Win64="yes"> |
| 84 |
<File Id="heidisql.sqlite3.dll" Name="sqlite3.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\sqlite3.dll" /> |
| 85 |
</Component> |
| 86 |
|
| 87 |
<Component Id="component.HeidiSQL_fbclient_4.0.dll" Guid="*" Win64="yes"> |
| 88 |
<File Id="fbclient4.0.dll" Name="fbclient-4.0.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\fbclient-4.0.dll" /> |
| 89 |
</Component> |
| 90 |
|
| 91 |
<Component Id="component.HeidiSQL_libeay32.dll" Guid="*" Win64="yes"> |
| 92 |
<File Id="libeay32.dll" Name="libeay32.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\libeay32.dll" /> |
| 93 |
</Component> |
| 94 |
<Component Id="component.HeidiSQL_ssleay32.dll" Guid="*" Win64="yes"> |
| 95 |
<File Id="ssleay32.dll" Name="ssleay32.dll" Source="${HEIDISQL_DOWNLOAD_DIR}\ssleay32.dll" /> |
| 96 |
</Component> |
| 97 |
<Component Id="component.HeidiSQL_plink.exe" Guid="*" Win64="yes"> |
| 98 |
<File Id="plink.exe" Name="plink.exe" Source="${HEIDISQL_DOWNLOAD_DIR}\plink.exe" /> |
| 99 |
</Component> |
| 100 |
|
| 101 |
<Component Id="component.HeidiSQL_LICENSE_openssl" Guid="*" Win64="yes"> |
| 102 |
<File Id="LICENSE_openssl" Name="LICENSE-openssl" Source="${HEIDISQL_DOWNLOAD_DIR}\LICENSE-openssl" /> |
| 103 |
</Component> |
| 104 |
|
| 105 |
<?define functions_dblist=interbase;mariadb;mssql;mysql;postgresql;redshift;sqlite?> |
| 106 |
|
| 107 |
<?foreach db in $(var.functions_dblist) ?> |
| 108 |
<Component Id="component.HeidiSQL_functions_$(var.db).ini" Guid="*" Win64="yes"> |
| 109 |
<File Id="functions_$(var.db).ini" Name="functions-$(var.db).ini" |
| 110 |
Source="${HEIDISQL_DOWNLOAD_DIR}\functions-$(var.db).ini" /> |
| 111 |
</Component> |
| 112 |
<?endforeach?> |
| 113 |
|
| 114 |
<Directory Id="D.HeidiSQL.plugins" Name="plugins"> |
| 115 |
<?foreach dll in $(var.pluginlist) ?> |
| 116 |
<Component Id="component.HeidiSQL_$(var.dll)" Guid="*" Win64="yes"> |
| 117 |
<File Id="heidisql.$(var.dll)" Name="$(var.dll)" Source="${HEIDISQL_DOWNLOAD_DIR}\plugins\$(var.dll)" /> |
| 118 |
</Component> |
| 119 |
<?endforeach?> |
| 120 |
</Directory> |
| 121 |
|
| 122 |
<Component Id="component.HeidiSQL_CleanupSettings" Guid="*" Win64="yes"> |
| 123 |
<Condition>HEIDISQLINSTALLED64 OR HEIDISQLINSTALLED32</Condition> |
| 124 |
<RegistryValue Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\UninstallCleanupHeidiSQLSettings" Name="cleanup.heidisql" Value="1" Type="string" KeyPath="yes" /> |
| 125 |
<RemoveRegistryKey Id="HeidiSQL_RegistryCleanup" Root="HKCU" Key="SOFTWARE\HeidiSQL" Action="removeOnUninstall" /> |
| 126 |
</Component> |
| 127 |
</Directory> |
| 128 |
</DirectoryRef> |
| 129 |
|
| 130 |
<ComponentGroup Id="HeidiSQL"> |
| 131 |
<ComponentRef Id="component.HeidiSQL"/> |
| 132 |
<ComponentRef Id="component.HeidiSQL_MenuShortcut"/> |
| 133 |
<ComponentRef Id="component.HeidiSQL_libmysql.dll"/> |
| 134 |
<ComponentRef Id="component.HeidiSQL_libmariadb.dll"/> |
| 135 |
<ComponentRef Id="component.HeidiSQL_libssl_3.dll" /> |
| 136 |
<ComponentRef Id="component.HeidiSQL_libcrypto_3.dll" /> |
| 137 |
<ComponentRef Id="component.HeidiSQL_libpq_15.dll" /> |
| 138 |
<ComponentRef Id="component.HeidiSQL_libpq_17.dll" /> |
| 139 |
<ComponentRef Id="component.HeidiSQL_libintl_9.dll" /> |
| 140 |
<ComponentRef Id="component.HeidiSQL_libiconv_2.dll" /> |
| 141 |
<ComponentRef Id="component.HeidiSQL_sqlite3.dll" /> |
| 142 |
<ComponentRef Id="component.HeidiSQL_libmysql_6.1.dll" /> |
| 143 |
<ComponentRef Id="component.HeidiSQL_libmysql_8.4.0.dll" /> |
| 144 |
<ComponentRef Id="component.HeidiSQL_libmysql_9.4.0.dll" /> |
| 145 |
<ComponentRef Id="component.HeidiSQL_fbclient_4.0.dll" /> |
| 146 |
<ComponentRef Id="component.HeidiSQL_libeay32.dll" /> |
| 147 |
<ComponentRef Id="component.HeidiSQL_ssleay32.dll" /> |
| 148 |
<ComponentRef Id="component.HeidiSQL_plink.exe" /> |
| 149 |
<ComponentRef Id="component.HeidiSQL_LICENSE_openssl" /> |
| 150 |
<?foreach db in $(var.functions_dblist) ?> |
| 151 |
<ComponentRef Id="component.HeidiSQL_functions_$(var.db).ini" /> |
| 152 |
<?endforeach?> |
| 153 |
<?foreach dll in $(var.pluginlist)?> |
| 154 |
<ComponentRef Id="component.HeidiSQL_$(var.dll)" /> |
| 155 |
<?endforeach?> |
| 156 |
<ComponentRef Id="component.HeidiSQL_CleanupSettings"/> |
| 157 |
</ComponentGroup> |
| 158 |
</Include> |