Here is the code that has been transferred:
--------------------------------------------------------
begin
UpdateWampmanagerFile('\wampmanager.ini');
//MySQL allowed ?
if(MysqlON) then
begin
ReplaceString := '';
end else
begin
ReplaceString := ';';
end;
ReplaceStringIntoFile('WAMPMYSQLOFF', ReplaceString, '\wampmanager.ini');
//MariaDB allowed ?
if(MariadbON) then
begin
ReplaceString := '';
end else
begin
ReplaceString := ';';
end;
ReplaceStringIntoFile('WAMPMARIADBOFF', ReplaceString, '\wampmanager.ini');
UpdateApacheFiles();
UpdateWampmanagerFile('\alias\phpsysinfo.conf');
UpdateWampmanagerFile('\alias\adminer.conf');
//Update alias phpmyadmin.conf
ReplaceStringIntoFile('WAMPPHPMYADMINVERSIONREPLACE', '', '\alias\phpmyadmin.conf');
ReplaceStringIntoFile('WAMPPHPMYADMINVERSION', ExpandConstant('{#WAMPPHPMYADMINVERSION}'), '\alias\phpmyadmin.conf');
UpdateWampmanagerFile(ExpandConstant('\bin\mysql\mysql{#WAMPMYSQLVERSION}\wampserver.conf'));
UpdateWampmanagerFile(ExpandConstant('\bin\mariadb\mariadb{#WAMPMARIADBVERSION}\wampserver.conf'));
CreateSymlinks();
#if 'no' == xDebugDllExists84
//- Disable xdebug for PHP 8.4
OriString := ExpandConstant('zend_extension="{code:INSTALLDIR}/bin/php/php{#WAMPPHPVERSION84}/zend_ext/{#XDEBUGDLL84}"');
ReplaceString := ExpandConstant(';zend_extension="{code:INSTALLDIR}/bin/php/php{#WAMPPHPVERSION84}/zend_ext/{#XDEBUGDLL84}"');
Fichier := ExpandConstant('\bin\php\php{#WAMPPHPVERSION84}\phpForApache.ini');
ReplaceStringIntoFile(OriString, ReplaceString, Fichier);
Fichier := ExpandConstant('\bin\php\php{#WAMPPHPVERSION84}\php.ini');
ReplaceStringIntoFile(OriString, ReplaceString, Fichier);
#endif
//--- Save original Wampserver Apache files
CreateDir(ExpandConstant('{app}\bin\apache\apache{#WAMPAPACHEVERSION}\conf\original\wampserver'));
FileCopy(ExpandConstant('{app}\bin\apache\apache{#WAMPAPACHEVERSION}\conf\httpd.conf'),ExpandConstant('{app}\bin\apache\apache{#WAMPAPACHEVERSION}\conf\original\wampserver\httpd.conf'),false);
FileCopy(ExpandConstant('{app}\bin\apache\apache{#WAMPAPACHEVERSION}\conf\extra\httpd-vhosts.conf'),ExpandConstant('{app}\bin\apache\apache{#WAMPAPACHEVERSION}\conf\original\wampserver\httpd-vhosts.conf'),false);
end;
----------------------------------------------------------------------
But I don't think the cause of the problem was in this code but rather in the modification code for a shortcut that I thought I'd deleted some time ago but which had remained in the form of an include!
-----------------------------------------------
if ModShortcut = True then
try
CD := TFileStream.Create(ExpandConstant('{commondesktop}\{#MyAppName}.lnk'), fmOpenReadWrite);
CD.Seek($15,soFromBeginning);
CD.WriteBuffer(Chr($20), 1);
GS := TFileStream.Create(ExpandConstant('{group}\{#MyAppName}.lnk'), fmOpenReadWrite);
GS.Seek($15,soFromBeginning);
GS.WriteBuffer(Chr($20), 1);
finally
CD.Free;
GS.Free;
end;
------------------------------------------------
I apologise for any confusion.