[Main]
Title=Share Plugins
Type=Plugin
Author=Lancelot, BlueLife, ChrisR
Description=(BlueLink v1.1.0.4) Time To Share Application Plugins between projects easily by using WB link :)
Credits=BlueLife, PaPeuser, ChrisR
Version=018
Download_Level=0
Level=1
Selected=None
Mandatory=False
NoWarning=False
Contact=http://TheOven.org/index.php?topic=192.0
Date=2015.01.27
Depend=
Disable=
CertifiedBy=
Certification=
HistoryNotes=BlueLink Creator BlueLink.exe http://theoven.org/index.php?topic=192.0
History004=Galapo added options to Add/Remove links to Complete project plugins
History005=ChrisR updated BlueLink.exe Full link if the folder of the original project (FromProjectFolder) is different from the current project.
History006=Lancelot 'MyPlugins' option added
History007=Sbaeder Name on the linked folders to make it clearer. OpenDir bUtton for all projects.
History009=Lancelot BlueLink.exe unupxed // Gena-Sweets implemented
History010=Lancelot "MyPlugins Advanced" added // MyPlugins apps folder changed Projects\MyPlugins\Apps --> Projects\MyPlugins\AppsMy to support "MyPlugins Advanced" nicely (also to get common with Gena share plugin)
History011=ChrisR improvments to confort better + Lancelot improvments to confort better
History012=Lancelot BlueLink Creator BlueLink.exe updated to v1.1.0.3 // Yomi added to list
History014=Lancelot BlueLink Creator BlueLink.exe updated to v1.1.0.4
History015=ChrisR Gena %ProjectDir%\Tools replaced to %ProjectDir%\Utils - \Net to \Network
History017=ChrisR - renamed Win7PESE Win8PESE Win8.1SE folder
History018=ChrisR - Share Plugins

[Variables]
%ExeFile%=BlueLink.exe

[Interface]
pBevel_Import=pBevel1,1,12,23,47,437,90
pButton4="Get Links From",1,8,35,70,113,25,Manual_Remove_Create,_Manual_Remove_Create_,False
ProjectSelectScrollBox=Gena,1,4,151,72,130,21,Gena,Yomi,VistaPE-CAPI,MyPlugins,"MyPlugins Advanced","Custom Project Folder",_Process_Folder_,False
pButton2="Create Links",1,8,286,70,80,25,Manual_Create_Button,0,False
pButton3="Remove Links",1,8,369,70,80,25,Manual_Remove_Button,0
pTextLabel1="You can get Application plugins of Gena, Yomi, VistaPE-Capi and Custom Plugins easily and use with WIN7PESE",1,1,24,8,285,30,8,Normal
pTextLabel2=Import,1,1,27,49,46,18,8,Bold
Import_Custom_Dir=,0,13,145,104,305,30,dir
Opendir_Button="Open Apps Folder",1,8,319,146,131,25,MyOpendir,_MyOpendir_,False
Custom_Label="Custom Folder",0,1,74,110,71,18,8,Normal
Import_Custom_State=False,0,1,32,110,27,18,8,Normal
MyPlugins_Advanced_TextLabel="'MyPlugins Advanced'#$xIs for Advanced (=Experienced with wb and SharePlugins) users#$xCreates Links with exact organisation of ProjectDir\MyPlugins#$x(No Protection to prevent things if exists)#$xEnd User Responsible....",0,1,23,176,311,71,8,Normal
MyPlugins_TextLabel="'MyPlugins' uses Apps plugin from folder#$x     ProjectDir\MyPlugins\AppsMy#$xDestination: 'Shared_MyPlugins'",0,1,23,176,311,48,8,Normal
Gena_TextLabel="'Gena' uses Apps plugin from folder#$x     ProjectDir\Gena\Apps and ProjectDir\Gena-Sweets\Apps #$xDestination: 'Shared_Gena'",1,1,23,176,311,48,8,Normal
VistaPE_CAPI_TextLabel="'VistaPE-CAPI' uses Apps plugin from folder#$x     ProjectDir\VistaPE-CAPI\Apps#$xDestination: 'Shared_VistaPE-CAPI'",0,1,23,176,311,48,8,Normal
Custom_TextLabel="'Custom Project Folder' uses Apps plugin from folder#$x     Your 'Custom Project Folder'\Apps#$xDestination: 'Shared_Custom'",0,1,23,176,311,48,8,Normal
Yomi_TextLabel="Yomi uses all plugins from folder#$x   ProjectDir\Yomi#$xDestination: WIN7PESE#$x(AppsY - UtilsY etc.)",0,1,41,176,311,56,8,Normal
Yomi_WebLabel="Yomi Home",0,10,100,238,200,18,http://theoven.org/index.php?topic=175.0

[Interface_W7PE_Canceled]
pBevel_Export=pBevel2,1,12,23,149,437,82
pTextLabel3=Export,1,1,28,152,43,18,8,Bold
pButton5="Share Plugins with ",1,8,52,174,113,25,Exporter_Remove_Create
ExportSelectScrollBox=VistaPE-CAPI,1,4,169,175,100,21,VistaPE-CAPI,Leopard
Exporter_Create_Button="Create Links",1,8,288,173,80,25,Exporter_Create_Button
Exporter_Remove_Button="Remove Links",1,8,371,173,80,25,Exporter_Remove_Button
Export_Custom_CheckBox=Custom,1,3,106,202,61,18,False
Export_Custom_TextBox=,1,0,169,201,100,21,123

[Process]
Echo,"Be smart and use buttons"
Message,"Use buttons to create, remove or refresh links.",Information,5

[Process_Folder]
Echo,"Please Wait"
// Change state of Import_Custom_State (True|False), change visibility of label and folder box...
If,%ProjectSelectScrollBox%,Equal,"Custom Project Folder",Begin
Set,%Import_Custom_State%,True,Permanent
Visible,%Import_Custom_Dir%,True,Permanent
Visible,%Custom_Label%,True,Permanent
End
Else,If,Not,%Import_Custom_State%,Equal,False,Begin
Set,%Import_Custom_State%,False,Permanent
Visible,%Import_Custom_Dir%,False,Permanent
Visible,%Custom_Label%,False,Permanent
End
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Visible,%MyPlugins_Advanced_TextLabel%,True,Permanent
Else,Visible,%MyPlugins_Advanced_TextLabel%,False,Permanent
If,%ProjectSelectScrollBox%,Equal,MyPlugins,Visible,%MyPlugins_TextLabel%,True,Permanent
Else,Visible,%MyPlugins_TextLabel%,False,Permanent
If,%ProjectSelectScrollBox%,Equal,Gena,Visible,%Gena_TextLabel%,True,Permanent
Else,Visible,%Gena_TextLabel%,False,Permanent
If,%ProjectSelectScrollBox%,Equal,Yomi,Begin
Visible,%Yomi_TextLabel%,True,Permanent
Visible,%Yomi_WebLabel%,True,Permanent
End
Else,Begin
Visible,%Yomi_TextLabel%,False,Permanent
Visible,%Yomi_WebLabel%,False,Permanent
End
If,%ProjectSelectScrollBox%,Equal,VistaPE-CAPI,Visible,%VistaPE_CAPI_TextLabel%,True,Permanent
Else,Visible,%VistaPE_CAPI_TextLabel%,False,Permanent
If,%ProjectSelectScrollBox%,Equal,"Custom Project Folder",Visible,%Custom_TextLabel%,True,Permanent
Else,Visible,%Custom_TextLabel%,False,Permanent
System,REFRESHINTERFACE

[Exporter_Create_Button]
Run,%ScriptFile%,Exporter_Create
System,ReScanScripts

[Exporter_Create]
If,%Export_Custom_CheckBox%,Equal,True,If,%Export_Custom_TextBox%,Equal,,Halt,"You must specify project name"
If,Not,ExistDir,%ProjectTemp%,Dirmake,%ProjectTemp%
//If,ExistFile,%ProjectTemp%\%ExeFile%,FileDelete,%ProjectTemp%\%ExeFile%
If,ExistFile,%ProjectTemp%\%ExeFile%,Run,%ScriptFile%,File_Delete_CMD,%ProjectTemp%\%ExeFile%
ExtractFile,%ScriptFile%,Folder,%ExeFile%,%ProjectTemp%
//--
Set,%FromProjectFolder%,%BaseDir%\Projects\WIN7PESE\Apps
If,%Export_Custom_CheckBox%,Equal,False,Set,%TargetlnkFolder%,%BaseDir%\Projects\%ExportSelectScrollBox%\AppsW7PE
Else,Set,%TargetlnkFolder%,%BaseDir%\Projects\%Export_Custom_TextBox%\AppsW7PE
//--
//If,Not,ExistDir,%FromProjectFolder%,Dirmake,%FromProjectFolder%
ShellExecute,hide,%ExeFile%,"/add #$q%FromProjectFolder%#$q #$q%TargetlnkFolder%#$q /selected-false /No_Link_w_Script /Overwrite-YES",%ProjectTemp%
Set,%FromProjectFolder%,%BaseDir%\Projects\Gena-Sweets\Apps
ShellExecute,hide,%ExeFile%,"/add #$q%FromProjectFolder%#$q #$q%TargetlnkFolder%#$q /selected-false /No_Link_w_Script /Overwrite-YES",%ProjectTemp%
//--
If,%Export_Custom_CheckBox%,Equal,False,Begin
If,%ExportSelectScrollBox%,Equal,VistaPE-CAPI,Run,%ScriptFile%,W7PEOnly
If,%ExportSelectScrollBox%,Equal,Leopard,Run,%ScriptFile%,W7PEOnly
End

[W7PEOnly]
//Some of Following plugins can be made compatible in time with others projects

[PE1Only]
//Some of Following plugins can be made pe2-3 compatible in time - some pe1 only - some not checked fully and put here to avoid troubles.
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Acronis-DiskDirector10.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Acronis-DiskDirector10.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\HDM85-95.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\HDM85-95.Link"
//defragger only for nt5x
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\defragger.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\defragger.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro10.0-Bin.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro10.0-Bin.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro11.5-Bin.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro11.5-Bin.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro12.0-Bin.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro12.0-Bin.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro12.5-Bin.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro12.5-Bin.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro14.0-Bin.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Defrag\OODefragPro14.0-Bin.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Imaging\Acronis-TrueImage95Echo-Omni_MOD.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Imaging\Acronis-TrueImage95Echo-Omni_MOD.Link"
If,ExistFile,"%TargetlnkFolder%\HD Tasks\Imaging\GImageX.Link",Call,FileDelete,"%TargetlnkFolder%\HD Tasks\Imaging\GImageX.Link"
If,ExistFile,"%TargetlnkFolder%\Network\Firewall\zonealarm.Link",Call,FileDelete,"%TargetlnkFolder%\Network\Firewall\zonealarm.Link"
If,ExistFile,"%TargetlnkFolder%\Supplementary\Office\go2pdf.Link",Call,FileDelete,"%TargetlnkFolder%\Supplementary\Office\go2pdf.Link"
//Find Target not required by PE2/3 at all since already have one
If,ExistFile,"%TargetlnkFolder%\System Tools\Explorer Addons\FindTarget_Lance.Link",Call,FileDelete,"%TargetlnkFolder%\System Tools\Explorer Addons\FindTarget_Lance.Link"
If,ExistFile,"%TargetlnkFolder%\System Tools\Windows Setup\OfflineSysPrep.Link",Call,FileDelete,"%TargetlnkFolder%\System Tools\Windows Setup\OfflineSysPrep.Link"
If,ExistFile,"%TargetlnkFolder%\Virtualization\VMWareConverter.Link",Call,FileDelete,"%TargetlnkFolder%\Virtualization\VMWareConverter.Link"
If,ExistFile,"%TargetlnkFolder%\Virtualization\VM-95.Link",Call,FileDelete,"%TargetlnkFolder%\Virtualization\VM-95.Link"

[Exporter_Remove_Button]
Run,%ScriptFile%,Exporter_Remove
System,ReScanScripts

[Exporter_Remove]
If,%Export_Custom_CheckBox%,Equal,True,If,%Export_Custom_TextBox%,Equal,,Halt,"You must specify project name"
If,Not,ExistDir,%ProjectTemp%,Dirmake,%ProjectTemp%
//If,ExistFile,%ProjectTemp%\%ExeFile%,FileDelete,%ProjectTemp%\%ExeFile%
If,ExistFile,%ProjectTemp%\%ExeFile%,Run,%ScriptFile%,File_Delete_CMD,%ProjectTemp%\%ExeFile%
ExtractFile,%ScriptFile%,Folder,%ExeFile%,%ProjectTemp%
//--
Set,%RemoveSelectedLinks%,Projects\WIN7PESE
If,%Export_Custom_CheckBox%,Equal,False,Set,%TargetWorkFolder%,%BaseDir%\Projects\%ExportSelectScrollBox%
Else,Set,%TargetWorkFolder%,%BaseDir%\Projects\%Export_Custom_TextBox%
//--
//If,Not,ExistDir,%BaseDir%\%RemoveSelectedLinks%,Dirmake,%BaseDir%\%RemoveSelectedLinks%
ShellExecute,hide,%ExeFile%,"/delete #$q%TargetWorkFolder%#$q /select_Link=%RemoveSelectedLinks%",%ProjectTemp%
ShellExecute,hide,%ExeFile%,"/delete #$q%TargetWorkFolder%#$q /select_Link=%BaseDir%\Projects\%RemoveSelectedLinks%",%ProjectTemp%

[Exporter_Remove_Create]
Run,%ScriptFile%,Exporter_Remove
Run,%ScriptFile%,Exporter_Create
System,ReScanScripts

[Manual_Create_Button]
Run,%ScriptFile%,Manual_Create
System,ReScanScripts

[Manual_Create]
If,Not,ExistDir,%ProjectTemp%,Dirmake,%ProjectTemp%
//If,ExistFile,%ProjectTemp%\%ExeFile%,FileDelete,%ProjectTemp%\%ExeFile%
If,ExistFile,%ProjectTemp%\%ExeFile%,Run,%ScriptFile%,File_Delete_CMD,%ProjectTemp%\%ExeFile%
ExtractFile,%ScriptFile%,Folder,%ExeFile%,%ProjectTemp%
//--
Set,%FromProjectFolder%,""
Set,%TargetlnkFolder%,""
If,%Import_Custom_State%,Equal,False,Begin
If,%ProjectSelectScrollBox%,Equal,Gena,Begin
Set,%FromProjectFolder%,%BaseDir%\Projects\Gena\Apps
Set,%TargetlnkFolder%,%ProjectDir%\Shared_Gena
// To share directly in Apps if needed
//Set,%TargetlnkFolder%,%ProjectDir%\Apps
End
If,%ProjectSelectScrollBox%,Equal,Yomi,Begin
Set,%FromProjectFolder%,%BaseDir%\Projects\Yomi
Set,%TargetlnkFolder%,%ProjectDir%
End
If,%ProjectSelectScrollBox%,Equal,VistaPE-CAPI,Begin
Set,%FromProjectFolder%,%BaseDir%\Projects\VistaPE-CAPI\Apps
Set,%TargetlnkFolder%,%ProjectDir%\Shared_VistaPE-CAPI
End
If,%ProjectSelectScrollBox%,Equal,MyPlugins,Begin
Set,%FromProjectFolder%,%BaseDir%\Projects\MyPlugins\AppsMy
Set,%TargetlnkFolder%,%ProjectDir%\Shared_MyPlugins
End
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Begin
Set,%FromProjectFolder%,%BaseDir%\Projects\MyPlugins
Set,%TargetlnkFolder%,%ProjectDir%
End
End
Else,Begin
Run,%ScriptFile%,CheckCustomDir
StrFormat,CTRIM,%Import_Custom_Dir%,\,%Import_Custom_Dir%
Set,%FromProjectFolder%,%Import_Custom_Dir%\Apps
Set,%TargetlnkFolder%,%ProjectDir%\Shared_Custom
// Create a Better name for the linked folder... (But not completely secure if the path changes)
// remove the trailing "\" from the path to fake it into a "file name", and extract the file name
//StrFormat,CTRIM,%Import_Custom_Dir%,\,%Tmp_ImpCustom_Folder%
//StrFormat,FILENAME,%Tmp_ImpCustom_Folder%,%Tmp_ImpCustom_Folder%
//Set,%TargetlnkFolder%,%ProjectDir%\Shared_%Tmp_ImpCustom_Folder%
End
//-
// Choice to create the folder or put a message if the Apps folder does not exist
//If,Not,ExistDir,%Import_Custom_Dir%,Befin
//Message,"No Project App folder (%FromProjectFolder%) found !",WARNING,5
//Exit,"No Project App folder (%FromProjectFolder%) found !"
//End
If,Not,ExistDir,%FromProjectFolder%,Dirmake,%FromProjectFolder%
ShellExecute,hide,%ExeFile%,"/add #$q%FromProjectFolder%#$q #$q%TargetlnkFolder%#$q /selected-default /No_Link_w_Script /Overwrite-YES",%ProjectTemp%
//--
// Continue the Gena links with Gena complete
If,%Import_Custom_State%,Equal,False,If,%ProjectSelectScrollBox%,Equal,Gena,Begin
Set,%FromProjectFolder%,%BaseDir%\Projects\Gena-Sweets\Apps
If,Not,ExistDir,%FromProjectFolder%,Dirmake,%FromProjectFolder%
ShellExecute,hide,%ExeFile%,"/add #$q%FromProjectFolder%#$q #$q%TargetlnkFolder%#$q /selected-default /No_Link_w_Script /Overwrite-YES",%ProjectTemp%
End
//--
//ShellExecute,hide,%ExeFile%,"/add #$q%FromProjectFolder%#$q #$q%TargetlnkFolder%#$q /selected-false /No_Link_w_Script /Overwrite-YES",%ProjectTemp%
//--Special situations ;) - Gena share plugin with Yomi
If,ExistFile,"%ProjectDir%\Utils\Link Creator Yomi.Link",FileDelete,"%ProjectDir%\Utils\Link Creator Yomi.Link"
//--
If,%ProjectSelectScrollBox%,Equal,Gena,Run,%ScriptFile%,PE1Only
If,%ProjectSelectScrollBox%,Equal,Gena-Sweets,Run,%ScriptFile%,PE1Only

[Manual_Remove_Button]
Set,%MR%,2
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Set,%MR%,1
If,%ProjectSelectScrollBox%,Equal,"Yomi",Set,%MR%,1
If,%MR%,Equal,1,Run,%ScriptFile%,Manual_Remove
Else,Run,%ScriptFile%,Manual_Remove2
System,ReScanScripts

[Manual_Remove]
If,Not,ExistDir,%ProjectTemp%,Dirmake,%ProjectTemp%
//If,ExistFile,%ProjectTemp%\%ExeFile%,FileDelete,%ProjectTemp%\%ExeFile%
If,ExistFile,%ProjectTemp%\%ExeFile%,Run,%ScriptFile%,File_Delete_CMD,%ProjectTemp%\%ExeFile%
ExtractFile,%ScriptFile%,Folder,%ExeFile%,%ProjectTemp%
//--
If,%Import_Custom_State%,Equal,False,Begin
If,%ProjectSelectScrollBox%,Equal,Gena,Set,%RemoveSelectedLinks%,Projects\Gena
//If,%ProjectSelectScrollBox%,Equal,Gena-Sweets,Set,%RemoveSelectedLinks%,Projects\Gena-Sweets
If,%ProjectSelectScrollBox%,Equal,Yomi,Set,%RemoveSelectedLinks%,Projects\Yomi
If,%ProjectSelectScrollBox%,Equal,VistaPE-CAPI,Set,%RemoveSelectedLinks%,Projects\VistaPE-CAPI
If,%ProjectSelectScrollBox%,Equal,MyPlugins,Set,%RemoveSelectedLinks%,Projects\MyPlugins
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Set,%RemoveSelectedLinks%,Projects\MyPlugins
If,Not,ExistDir,%BaseDir%\%RemoveSelectedLinks%,Dirmake,%BaseDir%\%RemoveSelectedLinks%
End
Else,Begin
If,Not,%Import_Custom_Dir%,Equal,"",Begin
StrFormat,CTRIM,%Import_Custom_Dir%,\,%Import_Custom_Dir%
Set,%RemoveSelectedLinks%,%Import_Custom_Dir%\Apps
If,Not,ExistDir,%RemoveSelectedLinks%,Dirmake,%RemoveSelectedLinks%
End
End
//--
//If,Not,ExistDir,%BaseDir%\%RemoveSelectedLinks%,Dirmake,%BaseDir%\%RemoveSelectedLinks%
ShellExecute,hide,%ExeFile%,"/delete #$q%ProjectDir%#$q /select_Link=%RemoveSelectedLinks%",%ProjectTemp%

[Manual_Remove2]
Set,%TargetlnkFolder%,""
If,%Import_Custom_State%,Equal,False,Begin
If,%ProjectSelectScrollBox%,Equal,Gena,Set,%TargetlnkFolder%,%ProjectDir%\Shared_Gena
//If,%ProjectSelectScrollBox%,Equal,Gena-Sweets,Set,%TargetlnkFolder%,%ProjectDir%\Shared_Gena-Sweets
If,%ProjectSelectScrollBox%,Equal,Yomi,Set,%TargetlnkFolder%,%ProjectDir%
If,%ProjectSelectScrollBox%,Equal,VistaPE-CAPI,Set,%TargetlnkFolder%,%ProjectDir%\Shared_VistaPE-CAPI
If,%ProjectSelectScrollBox%,Equal,MyPlugins,Set,%TargetlnkFolder%,%ProjectDir%\Shared_MyPlugins
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Set,%TargetlnkFolder%,%ProjectDir%
End
Else,Begin
Set,%TargetlnkFolder%,%ProjectDir%\Shared_Custom
// Create a Better name for the linked folder... (But not completely secure if the path changes)
// remove the trailing "\" from the path to fake it into a "file name", and extract the file name
//StrFormat,CTRIM,%Import_Custom_Dir%,\,%Tmp_ImpCustom_Folder%
//StrFormat,FILENAME,%Tmp_ImpCustom_Folder%,%Tmp_ImpCustom_Folder%
//Set,%TargetlnkFolder%,%ProjectDir%\Shared_%Tmp_ImpCustom_Folder%
End
//--
Set,%Rd%,1
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Set,%Rd%,0
If,%ProjectSelectScrollBox%,Equal,Yomi,Set,%Rd%,0
If,%Rd%,Equal,1,Begin
If,ExistDir,%TargetlnkFolder%,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%TargetlnkFolder%#$q"
If,ExistDir,%TargetlnkFolder%,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%TargetlnkFolder%#$q"
If,ExistDir,%TargetlnkFolder%,Message,"Target Link Folder can not be deleted",Error
If,ExistDir,%TargetlnkFolder%,Halt,"Target Link Folder can not be deleted"
End

[Manual_Remove_Create]
Set,%MR%,2
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Set,%MR%,1
If,%ProjectSelectScrollBox%,Equal,"Yomi",Set,%MR%,1
If,%MR%,Equal,1,Run,%ScriptFile%,Manual_Remove
Else,Run,%ScriptFile%,Manual_Remove2
Run,%ScriptFile%,Manual_Create
System,ReScanScripts

[File_Delete_CMD]
Loop,%ScriptFile%,File_Delete_CMD-Try-Delete,1,10,#1
If,EXISTFILE,#1,Begin
Echo,"Something wrong with deleting #1",WARN
Echo,"Something wrong with deleting #1",WARN
End

[File_Delete_CMD-Try-Delete]
ShellExecute,Hide,cmd.exe,"/C del /q /f /A:R /A:H /A:S /A:A #$q#1#$q"
If,Not,EXISTFILE,#1,Loop,BREAK
Else,Wait,1

[CheckCustomDir]
If,%Import_Custom_Dir%,Equal,"",Begin
Message,"No Custom Project Directory Specified !",Warning,5
Exit,"No Custom Project Directory Specified !"
End
StrFormat,LEFT,%Import_Custom_Dir%,3,%Drive%
If,Not,ExistDir,%Drive%,Begin
Message,"The Custom Project Drive does not exist !",Warning,5
Exit,"The Custom Project Drive does not exist !"
End

[MyOpendir]
Set,%FromProjectFolder%,""
If,%Import_Custom_State%,Equal,False,Begin
If,%ProjectSelectScrollBox%,Equal,Gena,Set,%FromProjectFolder%,%BaseDir%\Projects\Gena\Apps
//If,%ProjectSelectScrollBox%,Equal,Gena-Sweets,Set,%FromProjectFolder%,%BaseDir%\Projects\Gena-Sweets\Apps
If,%ProjectSelectScrollBox%,Equal,Yomi,Set,%FromProjectFolder%,%BaseDir%\Projects\Yomi
If,%ProjectSelectScrollBox%,Equal,VistaPE-CAPI,Set,%FromProjectFolder%,%BaseDir%\Projects\VistaPE-CAPI\Apps
If,%ProjectSelectScrollBox%,Equal,MyPlugins,Set,%FromProjectFolder%,%BaseDir%\Projects\MyPlugins\AppsMy
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",Set,%FromProjectFolder%,%BaseDir%\Projects\MyPlugins
If,%ProjectSelectScrollBox%,Equal,"MyPlugins Advanced",If,Not,ExistDir,%BaseDir%\Projects\MyPlugins\AppsMy,DirMake,%BaseDir%\Projects\MyPlugins\AppsMy
End
Else,Begin
Run,%ScriptFile%,CheckCustomDir
StrFormat,CTRIM,%Import_Custom_Dir%,\,%Import_Custom_Dir%
Set,%FromProjectFolder%,%Import_Custom_Dir%\Apps
End
//-
// Choice to create the folder or put a message if the Apps folder does not exist
//If,Not,ExistDir,%Import_Custom_Dir%,Befin
//Message,"No Project App folder (%FromProjectFolder%) found !",WARNING,5
//Exit,"No Project App folder (%FromProjectFolder%) found !"
//End
If,Not,ExistDir,%FromProjectFolder%,DirMake,%FromProjectFolder%
System,FILEREDIRECT,OFF
ShellExecuteEx,Open,explorer.exe,/e#$c#$q%FromProjectFolder%#$q
System,FILEREDIRECT,ON

[AuthorEncoded]
BlueLink3232.ico=898,1198
Logo=BlueLink3232.ico

[EncodedFolders]
Folder

[Folder]
BlueLink.exe=342507,456676

[EncodedFile-AuthorEncoded-BlueLink3232.ico]
lines=0
0=eJzllFtIU3Ecx4/4YE8lBCb04IiMtAfLyh4KLzkvK0m7aibOW2U3Iwq6YNMnQdTqqWybRkVZPpVaVLgoqOFTQ5DaRcfZRD2TOSxIp06//c/ZhalneuaZvvQfn8OfPzu/z29nv++hqDDykUgo9kq9iqSoKIqithPIEZVKuc/ZVRtJ/Xcr9m1u+57PxUUCv76OEE25H91KifbU4VbCh9NgEdgDe282oUQE2Z46Pr9q8KVLSA86nQ5/JyZE4elB4u+vNjei2fJ82efA+icmJ4OidaAD3mcciBrrfezokS7bw0r8US9S0WBXo3G8FU2/n/hoGG9BvUOJOttD5JjKkaiTIb4nnethW8dR7NYUyUPlvzCoQLqlBBkjZciyVfjIGClFmrUIBwbyse9nHnbpDiFeexCP6GdcD4maM6UL/ZNOZ1Cw/rPmO0juL0S6VY7M4XJkMW5/JlMO6bCnB1M+kvpysfOHDHHf0tBibUNc53GEwn/DXAeZoQxSsxxS0gP7uzOYMmTayj09yJFqKcJ+0yns7TuCS6Zqzr2lM+vaQr9zaiooWP+t/noU6KtQMFCFE5Yq5A1dRM5wJWTMOdJDBdKZEqQNFSOZLsT1oTrOvfXd4ct8//8UqRkM6v43XA9Lccx+BTLbedy2N3Hu2Pc5lYHmf2p6WhSPlUr80uvnzWfFmAL3/jzl3JLmtJtL5X+a1BADn//BuNu96WqCmvJ7N/H6Z2ZEoVSpoDcY5s0n635t/rjo3cjnnyE1xLDQX/r1LtrNn7i9IL/LJQoV8RuMRt6sCPG7SA0xsH4j8fNlRYh/dnZWFCq1GkaTiTcbq+V3OBygaRq9vb1oa2vj9nzZEOKfm5sTTFdX1yK+a7Wwj43xZmM1/N49TVvQ3d0NhmHgJLPOl43V8nNujQaMzcbNeaBsCPEHs1g/69YQt4242RlfKhuh9LNerbaHc4+OjnLztdycCvEHgxC3fzaI4iRhcyD/UisU2SBlkgjr18rvnw2FQlFLymwkhK+lPxRur38l2QiFO1i/Nxuhcnv9wSDU7Wk5habCYwgbCBE0uYcQRqD8CPOcR6wEfPGxgRBDSCHU/AO0iEn1eJwTcMopTfXJzMs2NjI20stMzmcYBSMJ7BOA0MbM2OUZVVNDGJgAfLUHP0upuF4BAAAAAgAAACsAAAAzAwAAAAAAAAEAAAAAAAAAAAAAAA

[EncodedFile-Folder-BlueLink.exe]
lines=111
[encoded data, 457014 characters]

