[main]
Title=GetDataBack Pro
Description=GetDataBack Pro is a Data Recovery solution for Windows, Mac, and Linux file systems. Recover files from NTFS, FAT, exFAT, EXT, HFS+, and APFS.
Selected=False
Level=5
Author=Misty
Version=20230215
Date=2023-02-15
Interface=Interface1

[Interface1]
pTextLabelMenu1="1",1,1,35,3,70,18,10,Bold
pButtonMenu2="2",1,8,75,0,70,20,pButtonMenu2,0,True,_pButtonMenu2_,True
pButtonMenu3="?",1,8,145,0,70,20,pButtonMenu3,0,True,_pButtonMenu3_,True
pWebLabel1=https://www.runtime.org/data-recovery-software.htm,1,10,51,100,216,18,https://www.runtime.org/data-recovery-software.htm
pTextLabel1="GetDataBack Pro Website",1,1,51,77,230,18,10,Bold
pCheckBoxInWim="Include Program in boot.wim",1,3,51,265,180,18,True
pTextBoxName="License Name",1,0,51,161,200,21,
pTextBoxKey="License Key",1,0,51,214,200,21,
pButtonA=?,1,8,254,162,18,18,?optionA,0,True,_?optionA_,True
pButtonB=?,1,8,254,215,18,18,?optionB,0,True,_?optionB_,True

[?optionA]
Message,"Manually enter the GetDataBack Pro License name here"

[?optionB]
Message,"Manually enter the GetDataBack Pro License key here"

[Interface2]
pButtonMenu1="1",1,8,5,0,70,20,pButtonMenu1,0,True,_pButtonMenu1_,True
pTextLabelMenu2="2",1,1,108,3,70,18,10,Bold
pButtonMenu3="?",1,8,145,0,70,20,pButtonMenu3,0,True,_pButtonMenu3_,True
pBevel1=,1,12,10,65,66,2
pTextLabel="Menu Entries",1,1,10,50,230,18,8,Bold
pCheckBoxShortcutDesktop="Add to Desktop Menu",1,3,40,80,150,18,True
pCheckBoxShortcutQuick="Add to Quicklaunch Menu",1,3,40,110,150,18,True
pCheckBoxShortcutPrograms="Add to #$qStart#$q > ",1,3,40,140,99,18,True
pCheckBoxShortcutLaunchBar="Add to LaunchBar Menu ",1,3,40,170,150,18,True
pButtonShortcut1=?,1,8,10,80,18,18,pButtonShortcut1,0,True,_pButtonShortcut1_,True
pButtonShortcut2=?,1,8,10,110,18,18,pButtonShortcut2,0,True,_pButtonShortcut2_,True
pButtonShortcut3=?,1,8,10,140,18,18,pButtonShortcut3,0,True,_pButtonShortcut3_,True
pButtonShortcut4=?,1,8,10,170,18,18,pButtonShortcut4,0,True,_pButtonShortcut4_,True
pTextBox1=,1,0,140,140,150,21,Programs

[pButtonMenu1]
IniWrite,%ScriptFile%,Main,Interface,Interface1
System,REFRESHINTERFACE

[pButtonMenu2]
IniWrite,%ScriptFile%,Main,Interface,Interface2
System,REFRESHINTERFACE

[pButtonMenu3]
message,"Click on the buttons to toggle between tabs 1 and 2. #$x#$xTab 2 contains menu options for use in the selected shell. Click on the ? button for information about the different options."

[pButtonShortcut1]
message,"WinXShell only#$x#$xSelect this option to add a program shortcut to the Desktop."

[pButtonShortcut2]
message,"WinXShell only#$x#$xSelect this option to add a program menu option to the Quicklaunch menu - similar in appearence to the 'Pin to Taskbar' option in Windows 7/8/10."

[pButtonShortcut3]
message,"Applies to WinXShell#$c BBLean and LaunchBar Shell(s)#$x#$xSelect this option to add a program menu option to the Start menu. Leave blank to add to the root of the menu#$c or manually type a path to place in a sub-menu (do not use spaces in the path). E.g. #$x#$s- FileManager#$x#$s- Programs#$x#$s- Programs\FileManager#$x#$xAnd looking at the examples above - #$x#$xLeave this option blank to add a menu entry to the root of the program menu (the 'Start' menu in WinXShell#$c the 'Start' menu in BBLean#$c or the root of the LaunchBar menu bar if LaunchBar is selected as Shell)#$x#$xEnter 'FileManager' to add a menu entry for this application to the 'Start' > 'FileManager' sub-menu (WinXShell and bblean) or the 'FileManager' sub-menu in LaunchBar.#$x#$xEnter 'Programs' to add a menu entry for this application to the 'Start' > 'Programs' sub-menu (WinXShell and bblean) or the 'Programs' sub-menu in LaunchBar.#$x#$xEnter 'Programs\FileManager' to add a menu entry for this application to the 'Start' > 'Programs' > 'FileManager' sub-menu (WinXShell and bblean) or the 'Programs' > 'FileManager' sub-menu in LaunchBar."

[pButtonShortcut4]
message,"This setting does not apply to any LaunchBar instance running as the WinPE Shell. This option only applies to a LaunchBar instance when the Applications' > 'LaunchBar' program script is selected in the build.#$x#$xIf the 'Applications' > 'LaunchBar' program script is selected than enable this option to add a program menu entry to the root of the LaunchBar menu bar. #$x#$xPlease note that if option '6] Programs in boot.wim' in the main project script is set as 'NO'#$c then LaunchBar and a number of other applications will not be available at boot. In this case a text based .ini file will be used for LaunchBar menu settings."

[process]
If,%FullProjectRun%,Equal,NO,Run,"%ProjectDir%\Core\common.script",PostConfigRun
AddInterface,%ScriptFile%,Interface1,""
AddInterface,%ScriptFile%,Interface2,""
If,%pCheckBoxInWim%,Equal,True,Set,%PROGRAMS.IN.WIM%,YES
Else,Set,%PROGRAMS.IN.WIM%,NO
Run,%ScriptFile%,CHECKS
Run,%ScriptFile%,MENU
Run,%ScriptFile%,COMMON
If,%PROGRAMS.IN.WIM%,Equal,NO,Run,%ScriptFile%,NOT.IN.WIM
If,%PROGRAMS.IN.WIM%,Equal,YES,Run,%ScriptFile%,IN.WIM

[CHECKS]
If,Not,ExistFile,"%Programs%\GetDataBack_Pro\%ARCH%\gdbpro.exe",Begin
Message,GetDataBack_Pro is missing - exiting script...,Error,5
Exit,GetDataBack_Pro is missing - exiting script...,WARN
End

[MENU]
If,%PROGRAMS.IN.WIM%,Equal,NO,Begin
If,Not,ExistFile,"%OutputDir%\Programs\ShortcutsNotInWim.txt",Run,"%ProjectDir%\Core\common.script",NotInWim
TXTaddline,"%OutputDir%\Programs\ShortcutsNotInWim.txt","#$p~dp0nircmd.exe shortcut #$q#$p~dp0GetDataBack_Pro\gdbpro.exe#$q #$q#$pTemp#$p\ShortCuts#$q #$qGetDataBack_Pro#$q",Append
End
If,%PROGRAMS.IN.WIM%,Equal,YES,Begin
ShellExecute,Hide,"%Tools%\Shortcut.exe","/A:C /T:#$q#$pSystemDrive#$p\Programs\GetDataBack_Pro\gdbpro.exe#$q /F:#$q%ProjectTemp%\GetDataBack_Pro.lnk#$q /I:#$q#$pSystemDrive#$p\Programs\GetDataBack_Pro\gdbpro.exe#$c0#$q"
If,ExistFile,"%ProjectTemp%\GetDataBack_Pro.lnk",Begin
Set,%MyShortcut%,GetDataBack_Pro.lnk
If,%pCheckBoxShortcutDesktop%,Equal,True,FileCopy,"%ProjectTemp%\%MyShortcut%","%ProjectTemp%\ShortCuts\Desktop"
If,%pCheckBoxShortcutQuick%,Equal,True,FileCopy,"%ProjectTemp%\%MyShortcut%","%ProjectTemp%\ShortCuts\Quick"
If,%pCheckBoxShortcutPrograms%,Equal,True,Begin
Set,%ProgramMenuPath%,%pTextBox1%
Run,"%ProjectDir%\Core\common.script",StartMenu
End
If,%pCheckBoxShortcutLaunchBar%,Equal,True,FileCopy,"%ProjectTemp%\%MyShortcut%","%ProjectTemp%\ShortCuts\LaunchBar"
If,%FullProjectRun%,Equal,NO,Run,"%ProjectDir%\Core\common.script",PostConfigRunShortcuts
FileDelete,"%ProjectTemp%\%MyShortcut%"
End
End

[COMMON]
If,%PROGRAMS.IN.WIM%,Equal,NO,Set,%PATH%,%OutputDir%
If,%PROGRAMS.IN.WIM%,Equal,YES,Set,%PATH%,%TargetDir%
If,Not,ExistDir,"%PATH%\Programs",DirMake,"%PATH%\Programs"
DirMake,"%PATH%\Programs\GetDataBack_Pro"
DirCopy,"%Programs%\GetDataBack_Pro\%ARCH%\*.*","%PATH%\Programs\GetDataBack_Pro"
If,Not,ExistFile,"%PATH%\Programs\registry.entries.cmd",Begin
FileCreateBlank,"%PATH%\Programs\registry.entries.cmd"
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",@Echo off,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",,Append
End
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",::========GetDataBack Pro=======,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",::License key entries,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",IF EXIST #$q#$p~dp0GetDataBack_Pro\gdbpro.exe#$q (,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",ECHO.,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",ECHO GetDataBack Pro Registry Entries,Append
If,%ARCH%,Equal,x86,Begin
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Runtime Software\GetDataBackNT\License#$q /v #$qName#$q /t REG_SZ /d #$q%pTextBoxName%#$q /f,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Runtime Software\GetDataBackNT\License#$q /v #$qKey#$q /t REG_SZ /d #$q%pTextBoxKey%#$q /f,Append
End
If,%ARCH%,Equal,x64,Begin
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Wow6432Node\Runtime Software\GetDataBackNT\License#$q /v #$qName#$q /t REG_SZ /d #$q%pTextBoxName%#$q /f,Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Wow6432Node\Runtime Software\GetDataBackNT\License#$q /v #$qKey#$q /t REG_SZ /d #$q%pTextBoxKey%#$q /f,Append
End
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",),Append
TXTaddLine,"%PATH%\Programs\registry.entries.cmd",,Append
IniWrite,"%OutputDir%\Project.Settings.ini",PROGRAMS,GetDataBack_Pro,YES

[IN.WIM]
Echo,"Mounting registry hives..."
If,Not,ExistRegSection,HKLM,_WinPE_SOFTWARE,RegHiveLoad,_WinPE_SOFTWARE,"%Target_config%\software"
If,%ARCH%,Equal,x86,Begin
RegWrite,HKLM,0x1,"_WinPE_SOFTWARE\Runtime Software\GetDataBackNT\License","Name","%pTextBoxName%"
RegWrite,HKLM,0x1,"_WinPE_SOFTWARE\Runtime Software\GetDataBackNT\License","Key","%pTextBoxKey%"
End
If,%ARCH%,Equal,x64,Begin
RegWrite,HKLM,0x1,"_WinPE_SOFTWARE\Wow6432Node\Runtime Software\GetDataBackNT\License","Name","%pTextBoxName%"
RegWrite,HKLM,0x1,"_WinPE_SOFTWARE\Wow6432Node\Runtime Software\GetDataBackNT\License","Key","%pTextBoxKey%"
End
Echo,"Unmounting registry hives..."
RegHiveUnload,_WinPE_SOFTWARE
If,%FullProjectRun%,Equal,NO,Begin
IniRead,"%TargetDir%\Project.Settings.ini",Main,Image.Number,%Boot.wim.Image.number%
If,%Builder%,Equal,PEBakery,WimPathAdd,%OutputDir%\sources\boot.wim,%Boot.wim.Image.number%,%TargetDir%,""
Else,ShellExecute,Hide,"%TOOLS%\wimlib\wimlib-imagex.exe","update #$q%OutputDir%\sources\boot.wim#$q %Boot.wim.Image.number% --command=#$qadd '%TargetDir%' '\'#$q"
End
//Wait,1

[NOT.IN.WIM]
//Wait,1
If,%FullProjectRun%,Equal,NO,Run,"%ProjectDir%\Core\common.script",PostConfigRunNotInWim

[AuthorEncoded]
gdbpro_32.ico=907,1210
Logo=gdbpro_32.ico

[EncodedFile-AuthorEncoded-gdbpro_32.ico]
lines=0
0=eJztVj9IG3EU/mn+KOggphSHDAEdhKAILh1EpINkCTiFumU0241mc9Mto9lurLgEXJpCQc8gVRSC/wpRIUgFSxoJtAEbjf36+6KH12ty+d0Qp37heXpe3vfe+33vvROiS35CIcGfYm1AiNdCiFFp8paYEY/3iaUB0RGMA4cJYLUAjHaGoTUywJwA4AXueX0LfFoD3r0UfxTYMLlpPuCO1yDwdQVYrAAdqroQjXo/8TYzxuIHajoQ7wS/BqTMfJ0sD0yo+CsWb0M0lWel294+oOrE2w08TAE51Xzm57+8F2IL0ejxRjZ7E3F6NgVoHqDeLveGPhVQKlWHfD7jjvzmdXh47yKdvlqoVP7VUBg4accdAMqqua+sXC76/ds18lqNsfT15aqJxNmqeTasPfOnxq29Z6899a/KHwjslO3cVuvq2vo9Pn5waP8e68uet8dBXZaAIRXuTKY858RN83iMOs+ilY8iEOIMNDUZB3TV3Kem8jn6d+JnfVj3dr44b9LAgmrP5fPViXa5UwOadp5SzccNqDty9PRs/3KKgf3hxi9rVfihto82NyszsdjpurX3TPN6jXvOA7d56ddy5m7JfXQo99E3tX3E/komi8v9/bmf1hgYn1v+8L6cD5Lfa8iekNfgZ7mPLtX2EWun69fxkZG987Gx/SO33Pmq1J7ktFu3gQefgbt4AXrjGQU0m33tEDvFOnmaxWDWxL+NWqmqNh/cgD6duGn8f/QYyppKJrG8u4s3Ks8uFbHUjp+2WcGMir9sFhEqgjY5iQNd52hrPod4P7Ajd44Dr8dAvaFNRUSj2PD5ZD5PMdAGB3HDmpRKf59fpix3rUXzrfjTV2g5x6149P/MazUzplgM6/n8s5YZw+wRPprnbOdnfVTmOKFp8v3Klnszs/KbKN7KfXQm91EOVeZsxqOdQ2mON84ywPeH1rweD+rT0zCc/DT2kaz38B4uGAPjUuGnzui/Xe6ZjNr7FaE6c4hwGCfd3Xhw4n71Ct9V/bkBaz87KzUkf/P7UWvG3duL21QKWif4TRQKGE0ksMoY7Drk3/b+6xS4A5hrMCjfNyU3z4VxvQS3HdRbJIIPzXruP9zjD/u741F4nONNT0kqKMqPNzbSy0zOZxgFIwzsE4DQdszY5ZWnprswMAEAMt4HLWAVZA4BAAAAAgAAACkAAAA+AwAAAAAAAAEAAAAAAAAAAAAAAA

