[Main]
Title=Innounp M01
Type=Plugin
Author=Lancelot
Description=(v0.46.0.0) UnOfficial and OpenSource extractor of Inno Setup
Credits=ChrisR, JFX, Galapo, http://TheOven.org
Version=010
Download_Level=0
Level=0
Selected=None
Mandatory=False
NoWarning=False
Contact=http://TheOven.org
Date=2017.02.16
Depend=
Disable=
Web1=http://gena.cwcodes.net/Projects/Gena/Utils/InnounpM01.Script
CertifiedBy=
Certification=
HistoryNotes=After Update only change Set,#9,... at [ExtractInnounp]
History001=
History003=ChrisR - Innounp v0.40.0.0
History004=Galapo - Innounp v0.43.0.0
History005=Galapo - Added Parameter3 (check version)
History006=Lancelot - Added DU buttons
History007=Lancelot - Innounp v0.44.0.0
History008=Lancelot - Innounp v0.45.0.0 - Date:2016.01.28
History009=Lancelot - Innounp v0.46.0.0 - Date:2016.08.20
History010=Lancelot - Add Compare Button - Date:2017.02.16

[Interface]
pTextLabel1="Macro Plugin",1,1,11,11,60,18,8,Normal
pWebLabel1="innounp HomePage",1,10,14,71,92,18,http://innounp.sf.net/
pWebLabel2="innounp Download Page",1,10,14,106,115,18,http://sourceforge.net/projects/innounp/files/
pWebLabel3="inno Setup HomePage",1,10,165,106,105,18,http://www.jrsoftware.org/
pWebLabel4="Plugin Page",1,10,14,41,200,18,http://TheOven.org/index.php?board=9
Button_Download=,1,8,403,21,24,24,DownloadXXX,DoubleJDesignRavenna3dArrowDown0016016.bmp,False,False,_DownloadXXX_,False,"__DOWNLOAD Plugin"
Button_Upload=,1,8,403,-1,24,24,UploadXXX,BokehliciaCaptivaSoftwareupload0016016.bmp,False,False,_UploadXXX_,False,"__UPLOAD Plugin (Admins Only)"
Button_CompareEdit=,1,8,426,-1,24,24,CompareEditXXX,AmperossQetto2Move0016016.bmp,False,False,_CompareEditXXX_,False,"__DOWNLOAD and Compare with an Editor"

[Variables]

[Process]
Echo,"There is no spoon"

[Info]
Parameter2 -> TargetFolder where you want innounp.exe
Parameter3 -> Version of innounp required by plugin (if not match plugin exits)
ex:
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,%ProjectTemp%
//-->
This will provide M01 innounp.exe at TargetFolder... :>
//
M01: So far innounp always backward compatible but if not one day, than current plugin MUST stay as it is and new M02 plugin ;)...
//
ex:
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,%ProjectTemp%,0.46.0.0

[Tests]
1)
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,C:\1\5
2)
Call,DirDelete,%ProjectTemp%\Macro_InnounpM01
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,C:\1\5
Call,OpenDir,C:\1\5
3)
Call,HostDesktopDir
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,%HostDesktopDir%
4)
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,%ProjectTemp%\TempExtractFolder\%ProgramFolder%
5)
Run,%ProjectDir%\Utils\InnounpM01.Script,ExtractInnounp,%ProjectDir%\Utils\InnounpM01.Script,%ProjectTemp%\TempExtractFolder\%ProgramFolder%,0.43.0.0

[ExtractInnounp]
Set,#9,innounp046.rar
If,#1,Equal,"",Set,#1,%ScriptFile%
If,#2,Equal,"",Set,#2,%ProjectTemp%
If,ExistFile,#2\innounp.exe,ShellExecute,Hide,cmd.exe,"/C del /q /f #$q#2\innounp.exe#$q&del /q /f /A:R /A:H /A:S /A:A #$q#2\innounp.exe#$q"
If,ExistFile,#2\innounp.exe,Call,FileDelete,#2\innounp.exe
If,Not,ExistDir,#2,DirMake,#2
If,Not,ExistFile,%ProjectTemp%\Macro_InnounpM01\innounp.exe,Run,#1,ExtractInnounpE,#1,#2,#3,#4,#5,#6,#7,#8,#9
FileCopy,%ProjectTemp%\Macro_InnounpM01\innounp.exe,#2
If,Not,-#3,Equal,-,Run,#1,ExtractInnounpV,#1,#2,#3,#4,#5,#6,#7,#8,#9

[ExtractInnounpE]
If,ExistFile,%ProjectTemp%\#9,ShellExecute,Hide,cmd.exe,"/C del /q /f #$q%ProjectTemp%\#9#$q&del /q /f /A:R /A:H /A:S /A:A #$q%ProjectTemp%\#9#$q"
If,ExistFile,%ProjectTemp%\#9,Call,FileDelete,%ProjectTemp%\#9
Call,DirDelete,%ProjectTemp%\Macro_InnounpM01
DirMake,%ProjectTemp%\Macro_InnounpM01
ExtractFile,#1,Folder,#9,%ProjectTemp%\Macro_InnounpM01
//ShellExecute,Hide,%Tools%\7z.exe,"e #$q%ProjectTemp%\#9#$q -y -o#$q#2#$q innounp.exe"
ShellExecute,Hide,%Tools%\7z.exe,"x #$q%ProjectTemp%\Macro_InnounpM01\#9#$q -y -o#$q%ProjectTemp%\Macro_InnounpM01#$q"
If,Not,ExistFile,%ProjectTemp%\Macro_InnounpM01\innounp.exe,Call,"Error Extracting %ProjectTemp%\Macro_InnounpM01\innounp.exe",Warn

[ExtractInnounpV]
Retrieve,FileVersion,#2\innounp.exe,%_ExtractInnounpV_Var%
Call,CompareVersions,%_ExtractInnounpV_Var%,#3,_ExtractInnounpV_CompareVersion
If,%_ExtractInnounpV_CompareVersion%,Equal,Smaller,Exit,"%ScriptTitle% Plugin requires Innounp version: #3 > %_ExtractInnounpV_Var% "

[AuthorEncoded]
innounp4848.ico=963,1284
Logo=innounp4848.ico

[EncodedFile-AuthorEncoded-innounp4848.ico]
lines=0
0=eJx9lj9oI1cQh0ecYQVx48aVC8dV3N3xKlcJVm04DAZXdqpXB1z4MIGoch0SMLzKVyQhKdK49KkQCaSIX203cSFcHEh7rKxGgjtu8s3uk7KSdZnl0+7Ob+b9mXmSLdLg2twUPpvya1NkXUS+AFzylVR+s/aKLLV2+minh3Z66Xa70v2nK7/8PZSVlRVpNpuyuroqa2trsr6+LhsbG7K1tSXb29tycHAge3t7sru7K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ArrowDown0016016.bmp=622,830
BokehliciaCaptivaSoftwareupload0016016.bmp=676,902
AmperossQetto2Move0016016.bmp=893,1191

[EncodedFolders]
Folder

[EncodedFile-InterfaceEncoded-opendir.bmp]
lines=0
0=eJyVkt1LU3EYx382esMuBFEKE8GLLL0IbyYhpEUI4aKytilTFN1xOrvxohpI9/0FlYESXUR2EXmxi4S9hYF4IZhOSdZMzJdtx+HwvO1sh2/P8cyxYFh9+TzPxXm+v+9z+J1z847ZxA5lprpMVZarEnbeGNC8vNSoI+E/5Z6YZs++Mk+QPTnkaaiAo4ee0LVPEcN/4tViTRjuNB7Jeh/cAxfPcEnNtY8hAW4ZwwqGVbCxL3k/D5zxC71x9AjoTsGRgG0jbY2K1siBfV2ybyjd2xkHr7HHIcO/CZh8ApdEfwIDKXASnAr6BDh4dG5mbVHJui727ar0VuQ/924tCtyNoTwgGFQGdZyxrHMfLgUuFYMShg4wIOrhVTNb3zVYdtCbQD+vQ4sqQwKhH/cLFQGx1C+W+EQWlC/Nyw0LqRUVt7fQtZPDvgtrDB2JHD1JnJrl8/dpjqjLipb3P9zG/Ti+qQirWJY1Yi0L06pW6F+QtJZf+grCEkOYrus5q/iJ06tgiwoLZ+0v3vyRnwEdoailtG6ufllVN1FXO36x6Pcd8wYogXJOrqDsB66+rTdPtV7/aGmcar0weeX4f6N2srrpQ/ON6Xvt3i7q9e+bz74uvqVQt7wPOn0c9b86DbV9tjlnR6n/o39kzmNQdPoblHVTL3ic484vSM1LySzSS8otYBgFIw6YMUPoD4zY5WddWriPgQkAk7cIYWOapDwBAAAAAgAAACcAAADwAQAAAAAAAAEAAAAAAAAAAAAAAA

[Folder]
innounp046.rar=139490,185987

[DownloadXXX]
Call,DownloadXQ

[UploadXXX]
Call,UploadXMultiQ,,%ProjectDir%\Utils\WebRoots_SE_Gena.Script||WebRoot

[Settings_Default]
IniWrite,%ScriptFile%,Main,Level,0

[CompareEditXXX]
Call,CompareEdit

[EncodedFile-InterfaceEncoded-AmperossQetto2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NkqvMXP3mcf3ick3XMLUgtyi8uDkwtKck38s0vSzUwMDQDIr2k3AKGUTDMgRkLhFZixi4vra37hIEJABkJC8Gkai7oAQAAAAIAAAA3AAAAIgMAAAAAAAABAAAAAAAAAAAAAAA

[EncodedFile-InterfaceEncoded-DoubleJDesignRavenna3dArrowDown0016016.bmp]
lines=0
0=eJzNk09Ik2Ecxw06BF2KqG5ih1EgYZZu7+v7vnu3d++2MpelRFHgQZEaJLVIXSxrW4Wauf7Nwha2rQ7dOgT9IQT1EkQHi+hSHfRSUZrMcp389PjSoUib3vrB9/I8fD78fr+Hxwi0LS+yyi6ySWSVyGqRZUUl1rnr1/3vBfy3+TTxkabuAzx4dp+lsu/G31LRXIrjaCmeVjtfpj4v2jH+YQwpWIYc3orctgUptJkT/UcWxc/1rLXYqYpKqGcklEglcns5DuF48uLhPx2TUxOYIRWlU8PZraOdU1GjMsop4RO9+DucfM1NzuvIfctR3Wai9hq4rvrREybOCy608xpqrAqlQzhObiOSbv2Ln8nPsDvsZ33dSoob1mE7XIIsetAvCUePG63TiRpXUE47rJ0MvRz8wzH9fZqR0SHSj1LUhn2s8a6gMi7hTm7HddmLftHA2aVT2mJjY3Mx7naJ/I/8vHN0Zc5avKNLw+gP4O7bgeuKD73XQyDqI5QM8ur96IJ7jKUiFi8nDDwDezBuCsf1amsnA4Opgm8Y7jtu8UrSj3lnL+btOjypXRg3dpIdThfkjyWCFu9M1eC7tx/vXeFIC8etWjKL4IPdTRZfFqtAvua1PJ5sPWamnuxIpiD/9Plj4ukIh3oaqGk3KG+0sWHfWhp7DvJm7PWS/9FcZmdnF+R+AlbU23p4nNNyyS9Nykn1ckktzkzPC0osS83LSzROcSwqyi93yS/PMzAwNAMivaTcAoZRMPxAGQuEZmPCLu9y8YwcAxMAHjMRfb+2diEBAAAAAgAAAEQAAAAGAgAAAAAAAAEAAAAAAAAAAAAAAA

[EncodedFile-InterfaceEncoded-BokehliciaCaptivaSoftwareupload0016016.bmp]
lines=0
0=eJytU21LWmEYbrAfsP0De4H2pRcqRq+0RllUZkav1O+YIH2JPvUhKKJfUE3aaCNQQR3pYWDTPCpBMKUxSczjZDB0Q8UPV/d9L0tdg33YAxfn5nq5n+c85z4vDa8e18l6TnhGeEJ4SnhUpxP+xa1euQD8V5RKJeTzeeRyOWSzWQHXzLH2t1yxWEQikYDb7cXu7iHW1/exuron4Jo51tjD3tqsw3GC+fn36O39hJ6eh8Eae9hb2SMYjGB42Iu+Pv8/gb2cKb+v2fwGAwOBGvhpTzfhg9S1utn8FuW7MplOMDQUwMhIgHrfY3Mzio2Nz1Uce9jLGc5mMhni/WhuPoROt4/6+td3ODpKwGqNV3HsYS9nOBuLfUFLyzG6ulzEnVXB4/kOpzPzB89eznD24iKKxkar9NPrg7fwYG7OBp/vGxRFw+ysDaOjnjudvZzhbDR6iY4OO/V0YHJSxdiYiq2trygUSri+zuLq6ofU29tx0djT2WmTDGdTqbRw3d1O+jYfMTGhYno6TL1zKC+uTaawaDrdHtrajiWjaWn5BgsLfhgMIZoPL6amQlKvrJzT/gUkkwUsL58Lx2hoOJAnZ8rzbLF4YTSG6d18dAY3nfMUg4MK7RmULGu/oUqea4tFqZi/JGZmwnJGgyEg8zU+fip3otcrdJcRusMQ2tt5vl3iVdVU1T9gt6exuMi+exiNZ2htfYempgNBf78LS0sRsPehf1DTfoq2sxPH2tolnTEm4Jo51tLpX1XZG70Y6I54nNNyys9OzcjJTM5MdE4sKMksSwzOTyspTyxKLS3IyU9MMTAwNAMivaTcAoZRMPxAGQuEtmHCLs9kcFmVgQkAJ9URXc7wHxQBAAAAAgAAAEQAAAA8AgAAAAAAAAEAAAAAAAAAAAAAAA

[EncodedFile-Folder-innounp046.rar]
lines=45
[encoded data, 186115 characters]

