Fix: Removed deprecated function of innosetup
This commit is contained in:
parent
1850cb6342
commit
0ce6a982a0
@ -367,7 +367,7 @@ begin
|
|||||||
if FileExists (lockfile) and not DeleteFile(lockfile) then
|
if FileExists (lockfile) and not DeleteFile(lockfile) then
|
||||||
begin
|
begin
|
||||||
themessage := FmtMessage(CustomMessage('FailedToDeleteLock'),[pathWithSlashes]);
|
themessage := FmtMessage(CustomMessage('FailedToDeleteLock'),[pathWithSlashes]);
|
||||||
MsgBox(themessage,mbInformation,MB_OK)
|
MsgBox(themessage,mbInformation,MB_OK);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -502,21 +502,21 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
StringChange (srcContents, 'WAMPBROWSER', browser);
|
StringChangeEx (srcContents, 'WAMPBROWSER', browser, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
|
|
||||||
LoadStringFromFile (srcFileH, srcContents);
|
LoadStringFromFile (srcFileH, srcContents);
|
||||||
StringChange (srcContents, 'WAMPBROWSER', browser);
|
StringChangeEx (srcContents, 'WAMPBROWSER', browser, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||||
SaveStringToFile(destFileH,srcContents, False);
|
SaveStringToFile(destFileH,srcContents, False);
|
||||||
|
|
||||||
LoadStringFromFile (srcFileA, srcContents);
|
LoadStringFromFile (srcFileA, srcContents);
|
||||||
StringChange (srcContents, 'WAMPBROWSER', browser);
|
StringChangeEx (srcContents, 'WAMPBROWSER', browser, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||||
SaveStringToFile(destFileA,srcContents, False);
|
SaveStringToFile(destFileA,srcContents, False);
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -537,8 +537,8 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//installDir et version de phpmyadmin
|
//installDir et version de phpmyadmin
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPPHPMYADMINVERSION', phpmyadminVersion);
|
StringChangeEx (srcContents, 'WAMPPHPMYADMINVERSION', phpmyadminVersion, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -557,8 +557,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile, srcContents, False);
|
SaveStringToFile(destFile, srcContents, False);
|
||||||
end
|
end
|
||||||
@ -578,8 +578,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
// sinon on prends le fichier par defaut
|
// sinon on prends le fichier par defaut
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -597,10 +597,10 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//installDir et version de php
|
//installDir et version de php
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
|
StringChangeEx (srcContents, 'WAMPPHPVERSION', phpVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -620,8 +620,8 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//installDir et version de php
|
//installDir et version de php
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -639,22 +639,22 @@ begin
|
|||||||
if not FileExists (destFile) then
|
if not FileExists (destFile) then
|
||||||
begin
|
begin
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
|
StringChangeEx (srcContents, 'WAMPPHPVERSION', phpVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||||
SaveStringToFile(destFile, srcContents, False);
|
SaveStringToFile(destFile, srcContents, False);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
RenameFile(destFile, destFile+'.old');
|
RenameFile(destFile, destFile+'.old');
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
StringChange (srcContents, 'WAMPPHPVERSION', phpVersion);
|
StringChangeEx (srcContents, 'WAMPPHPVERSION', phpVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPORT', myporta);
|
StringChangeEx (srcContents, 'WAMPAPACHEPORT', myporta, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEPSSL', myportas);
|
StringChangeEx (srcContents, 'WAMPAPACHEPSSL', myportas, True);
|
||||||
SaveStringToFile(destFile, srcContents, False);
|
SaveStringToFile(destFile, srcContents, False);
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -673,10 +673,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -695,8 +695,8 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -715,8 +715,8 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -736,8 +736,8 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -756,9 +756,9 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass);
|
StringChangeEx (srcContents, 'WAMPMYSQLNEWPASSWORD', mypass, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -776,10 +776,10 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -797,10 +797,10 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
StringChangeEx (srcContents, 'WAMPMYSQLVERSION', mysqlVersion, True);
|
||||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
StringChangeEx (srcContents, 'WAMPMYSQLPORT', myport, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -818,8 +818,8 @@ begin
|
|||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
|
|
||||||
//version de apache et mysql
|
//version de apache et mysql
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
StringChangeEx (srcContents, 'WAMPAPACHEVERSION', apacheVersion, True);
|
||||||
|
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
@ -835,8 +835,8 @@ begin
|
|||||||
if not FileExists (destFile) and FileExists(srcFile) then
|
if not FileExists (destFile) and FileExists(srcFile) then
|
||||||
begin
|
begin
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPSMTP', mysmtp);
|
StringChangeEx (srcContents, 'WAMPSMTP', mysmtp, True);
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -850,8 +850,8 @@ begin
|
|||||||
if not FileExists (destFile) and FileExists(srcFile) then
|
if not FileExists (destFile) and FileExists(srcFile) then
|
||||||
begin
|
begin
|
||||||
LoadStringFromFile (srcFile, srcContents);
|
LoadStringFromFile (srcFile, srcContents);
|
||||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
StringChangeEx (srcContents, 'WAMPROOT', pathWithSlashes, True);
|
||||||
StringChange (srcContents, 'WAMPSMTP', mysmtp);
|
StringChangeEx (srcContents, 'WAMPSMTP', mysmtp, True);
|
||||||
SaveStringToFile(destFile,srcContents, False);
|
SaveStringToFile(destFile,srcContents, False);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user