I'm new here in this Forum and I hope you can help me with my Problem.
I found many Solutions for other programming Problems with NSIS in your Forum, but
for my new Problem I cant't find anything or I don't know what is the richt search string.
I discripe here my new Problem.
I will convert a TXT file with the following Content
Name=Adobe Flash Player 15 ActiveX
PackageName=install_flash_player_15_active_x.msi
Transforms=Adobe_Flash_Player_15.mst
Version=15.0.0.167
Name=Adobe Flash Player 15 Plugin
PackageName=install_flash_player_15_plugin.msi
Transforms=Adobe_Flash_Player_15_Plugin.mst
Version=15.0.0.167
to this INI Format:
[Adobe Flash Player 15 ActiveX]
PackageName=install_flash_player_15_active_x.msi
Transforms=Adobe_Flash_Player_15.mst
Version=15.0.0.167
[Adobe Flash Player 15 Plugin]
PackageName=install_flash_player_15_plugin.msi
Transforms=Adobe_Flash_Player_15_Plugin.mst
Version=15.0.0.167
With the following code I can Change the first part of the INI Section:
This code changed the TXT file as follows:
# PackageName= search
${textreplace::FindInFile} "C:\temp\1.txt" "PackageName=" "/S=1" $0
# Rename PackageName= in PackageNome=
${textreplace::ReplaceInFile} "C:\temp\1.txt" "C:\Temp\output.txt" "PackageName=" "PackageNome=" "/S=1 /C=1 /AO=1" $0
# Name= search
${textreplace::FindInFile} "C:\temp\output.txt" "Name=" "/S=1" $0
LogText 'var = $0'
# Rename Name= in [ ${textreplace::ReplaceInFile} "C:\temp\output.txt" "C:\Temp\output.txt" "Name=" "[" "/S=1 /C=1 /AO=1" $0
# Search PackageNome=
${textreplace::FindInFile} "C:\temp\output.txt" "PackageNome=" "/S=1" $0
# Rename PackageNome= in PackageName=
${textreplace::ReplaceInFile} "C:\temp\output.txt" "C:\Temp\output.txt" "PackageNome=" "PackageName=" "/S=1 /C=1 /AO=1" $0
${textreplace::Unload}
[Adobe Flash Player 15 ActiveX
PackageName=install_flash_player_15_active_x.msi
Transforms=Adobe_Flash_Player_15.mst
Version=15.0.0.167
[Adobe Flash Player 15 Plugin
PackageName=install_flash_player_15_plugin.msi
Transforms=Adobe_Flash_Player_15_Plugin.mst
Version=15.0.0.167
My Problem is, how can I set at the end of the line "]" for end of the INI section?
I hope anybody will have an idea.