Skip to content

Commit 4789962

Browse files
Piotr Obrzutsurbhat1595
authored andcommitted
Bug#28541029 PKGVER FAILED FOR WINDOWS X86-64BIT MSI PACKAGES - BOTH COMMUNITY AND COMMERCIAL
Problem: Server 5.7 and 5.6 crash on msi uninstall due to missing dll reference. Wix 3.8 is used for building both server 5.6 and 5.7 msi when the packaging script has a reference to a custom action dll entry (WixQuietExec) only available in Wix 3.10 (and newer). Fix: Replaced WixQuietExec with CAQuietExec (available in wix 3.8 custom action dll). (cherry picked from commit 57e71f991e9b59a6ca8ee0c6152e69982a935bf3)
1 parent 65ffeb9 commit 4789962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/WiX/mysql_server.wxs.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
</InstallUISequence>
171171

172172
<Property Id="QtRemoveService" Value="&quot;cmd.exe&quot; /S /V:ON /C &quot;echo off &amp; for /F &quot;tokens=*&quot; %i in ('sc query ^| FIND &quot;SERVICE_NAME:&quot;') do (set j=%i &amp; set j=!j:~14! &amp; sc qc !j! | FIND &quot;C:\Program Files\MySQL\MySQL Server 5.6\bin\&quot; >NUL &amp; IF errorlevel 0 IF NOT errorlevel 1 (sc stop !j! > NUL &amp; ( for /L %k IN (1,1,20) do (sc query !j! | FIND &quot;STATE&quot; | FIND &quot;STOPPED&quot; >NUL &amp; (IF errorlevel 0 IF errorlevel 1 timeout /t 5 /nobreak >NUL)) )&amp; sc delete !j! ) ) &quot;"/>
173-
<CustomAction Id="QtRemoveService" BinaryKey="WixCA" DllEntry="WixQuietExec"
173+
<CustomAction Id="QtRemoveService" BinaryKey="WixCA" DllEntry="CAQuietExec"
174174
Execute="deferred" Return="check" Impersonate="no"/>
175175
<InstallExecuteSequence>
176176
<Custom Action="QtRemoveService" After="InstallInitialize">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") AND (NOT MYSQL_INSTALLER="YES")</Custom>

0 commit comments

Comments
 (0)