[main] Title=Notepad++ Description=Notepad++ x86/x64 (Version 7.8.5) More versatile than notepad. Selected=True Level=5 Author=Alacran/Taviruni from PEBakeryTeam Version=20200325 Date=2020-03-25 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 pBevel_B2=,1,12,5,229,500,40 pBevel_B1=,1,12,5,138,500,40 pTextLabel_B1="Path to npp.7.8.5.bin.7z:",1,1,15,151,176,18,8,Bold pButton_B1="ADD TO CACHE",1,8,399,147,96,20,B1.RUN,0,True,_B1.RUN_,True pTextLabel_B2="Path to npp.7.8.5.bin.x64.7z:",1,1,15,242,178,18,8,Bold pButton_B2="ADD TO CACHE",1,8,399,239,96,20,B2.RUN,0,True,_B2.RUN_,True pWebLabel1=https://notepad-plus-plus.org/,1,10,355,295,147,18,https://notepad-plus-plus.org/ pTextLabel1="Notepad++ Website:",1,1,210,295,141,18,10,Bold pCheckBoxInWim="Include Program in boot.wim",1,3,19,295,161,18,True pTextLabel2="Due to changes on the software page, the download by means of the Script, is currently unavailable, the Script has been modified to select the location of download made by the user, with his browser, as a workaround.",1,1,21,39,480,66,8,Bold pTextLabel3="v7.8.5 x86 7z package:",1,1,14,113,136,18,8,Bold pTextLabel4="v7.8.5 x64 7z package:",1,1,13,204,138,18,8,Bold pWebLabel2="Download Notepad++ v7.8.5 x86",1,10,180,113,163,18,https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.8.5/npp.7.8.5.bin.7z pWebLabel3="Download Notepad++ v7.8.5 x64",1,10,179,204,163,18,https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.8.5/npp.7.8.5.bin.x64.7z pFileBox_B1=D:\Descargas\npp.7.8.5.bin.7z,1,13,192,146,200,20,file pFileBox_B2=D:\Descargas\npp.7.8.5.bin.x64.7z,1,13,192,239,200,20,file [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,False 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\Accessories [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." [B1.RUN] IniRead,%ScriptFile%,Main,Version,%script_Vers% If,Not,ExistFile,"%Programs%\Notepad++\%script_Vers%.txt",Begin If,ExistDir,"%Programs%\Notepad++",DirDelete,"%Programs%\Notepad++" End If,ExistFile,"%Programs%\Notepad++\x86\notepad++.exe",Message,"The cache already contains a copy of Notepad++. Exiting..." Else,Begin set,%Notepad%,%pFileBox_B1% If,%Notepad%,Equal,"",Begin Message,"ERROR - The filebox is empty. Change the path and retry. Exiting..." Exit,"ERROR - The filebox is empty. Change the path and retry. Exiting..." End If,Not,ExistFile,"%Notepad%",Begin Message,"ERROR - The selected file does not exist. Change the path and retry. Exiting..." Exit,"ERROR - The selected file does not exist. Change the path and retry. Exiting..." End StrFormat,PATH,"%Notepad%","%Notepad.PATH%" StrFormat,FILENAME,"%Notepad%","%npp.7.8.5.bin.7z%" If,Not,%npp.7.8.5.bin.7z%,Equal,npp.7.8.5.bin.7z,Begin Message,"ERROR - Selected file is not npp.7.8.5.bin.7z. Change the path and retry. Aborting..." Exit,"ERROR - Selected file is not npp.7.8.5.bin.7z. Change the path and retry. Aborting..." End Echo,"Copying files to cache" If,Not,ExistDir,"%Programs%\Notepad++",DirMake,"%Programs%\Notepad++" If,Not,ExistDir,"%Programs%\Notepad++\x86",DirMake,"%Programs%\Notepad++\x86" ShellExecute,Hide,"%Tools%\7z.exe","x #$q%Notepad.PATH%\npp.7.8.5.bin.7z#$q -o#$q%Programs%\Notepad++\x86#$q" FileCreateBlank,%Programs%\Notepad++\%script_Vers%.txt If,Not,ExistFile,"%Programs%\Notepad++\x86\notepad++.exe",Begin Message,"There appears to have been an error copying Notepad++ to the cache. Exiting..." Exit,"There appears to have been an error copying Notepad++ to the cache. Exiting..." End Else,Message,"Notepad++ added to the following path -#$x#$x#$s#$s#$s#$q%Programs%\Notepad++\x86#$q" End [B2.RUN] IniRead,%ScriptFile%,Main,Version,%script_Vers% If,Not,ExistFile,"%Programs%\Notepad++\%script_Vers%.txt",Begin If,ExistDir,"%Programs%\Notepad++",DirDelete,"%Programs%\Notepad++" End If,ExistFile,"%Programs%\Notepad++\x64\notepad++.exe",Message,"The cache already contains a copy of Notepad++. Exiting..." Else,Begin set,%Notepad%,%pFileBox_B2% If,%Notepad%,Equal,"",Begin Message,"ERROR - The filebox is empty. Change the path and retry. Exiting..." Exit,"ERROR - The filebox is empty. Change the path and retry. Exiting..." End // If,Not,ExistFile,"%Notepad%",Begin // Message,"ERROR - The selected file does not exist. Change the path and retry. Exiting..." // Exit,"ERROR - The selected file does not exist. Change the path and retry. Exiting..." // End StrFormat,PATH,"%Notepad%","%Notepad.PATH%" StrFormat,FILENAME,"%Notepad%","%npp.7.8.5.bin.x64.7z%" If,Not,%npp.7.8.5.bin.x64.7z%,Equal,npp.7.8.5.bin.x64.7z,Begin Message,"ERROR - Selected file is not npp.7.8.5.bin.x64.7z. Change the path and retry. Aborting..." Exit,"ERROR - Selected file is not npp.7.8.5.bin.x64.7z. Change the path and retry. Aborting..." End If,Not,ExistDir,"%Programs%\Notepad++\x64",DirMake,"%Programs%\Notepad++\x64" Echo,"Copying files to cache" If,Not,ExistDir,"%Programs%\Notepad++",DirMake,"%Programs%\Notepad++" If,Not,ExistDir,"%Programs%\Notepad++\x64",DirMake,"%Programs%\Notepad++\x64" ShellExecute,Hide,"%Tools%\7z.exe","x #$q%Notepad.PATH%\npp.7.8.5.bin.x64.7z#$q -o#$q%Programs%\Notepad++\x64#$q" FileCreateBlank,%Programs%\Notepad++\%script_Vers%.txt If,Not,ExistFile,"%Programs%\Notepad++\x64\notepad++.exe",Begin Message,"There appears to have been an error copying Notepad++ to the cache. Exiting..." Exit,"There appears to have been an error copying Notepad++ to the cache. Exiting..." End Else,Message,"Notepad++ added to the following path -#$x#$x#$s#$s#$s#$q%Programs%\Notepad++\x64#$q" End [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%\Notepad++\%ARCH%\Notepad++.exe",Begin Message,Notepad++ is missing - exiting script...,Error,5 Exit,Notepad++ 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~dp0Notepad++\Notepad++.exe#$q #$q#$pTemp#$p\ShortCuts#$q #$qNotepad++#$q",Append End If,%PROGRAMS.IN.WIM%,Equal,YES,Begin ShellExecute,Hide,"%Tools%\Shortcut.exe","/A:C /T:#$q#$pSystemDrive#$p\Programs\Notepad++\notepad++.exe#$q /F:#$q%ProjectTemp%\Notepad++.lnk#$q /I:#$q#$pSystemDrive#$p\Programs\Notepad++\notepad++.exe#$c0#$q" If,ExistFile,"%ProjectTemp%\Notepad++.lnk",Begin Set,%MyShortcut%,Notepad++.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\Notepad++" DirCopy,"%Programs%\Notepad++\%ARCH%\*.*","%PATH%\Programs\Notepad++" 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",Call #$p~dp0version.check.cmd,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",,Append End TXTaddLine,"%PATH%\Programs\registry.entries.cmd",::==========Notepad++===========,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",::for context menu entries,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",IF EXIST #$q#$p~dp0Notepad++\notepad++.exe#$q (,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",ECHO.,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",ECHO Notepad++ Registry Entries,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Classes\*\shell\Notepad++#$q /ve /t REG_SZ /d #$qOpen with Notepad++#$q /f,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Classes\*\shell\Notepad++\command#$q /ve /t REG_SZ /d #$q\#$q#$p~dp0Notepad++\notepad++.exe\#$q \#$q%%1\#$q#$q /f,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",::add to openwith list,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Classes\*\OpenWithList\notepad++.exe#$q /ve /t REG_SZ /d #$qNotepad++#$q /f,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",reg.exe add #$qHKLM\SOFTWARE\Classes\Applications\notepad++.exe\shell\open\command#$q /ve /t REG_SZ /d #$q\#$q#$p~dp0Notepad++\notepad++.exe\#$q \#$q%%1\#$q#$q /f,Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",),Append TXTaddLine,"%PATH%\Programs\registry.entries.cmd",,Append IniWrite,"%OutputDir%\Project.Settings.ini",PROGRAMS,Notepad++,YES If,Not,ExistFile,"%PATH%\Programs\Notepad++\%script_Vers%.txt",Begin IniRead,%ScriptFile%,Main,Version,%script_Vers% FileCreateBlank,%PATH%\Programs\Notepad++\%script_Vers%.txt END [IN.WIM] Echo,"Mounting registry hives..." If,Not,ExistRegSection,HKLM,_WinPE_SOFTWARE,RegHiveLoad,_WinPE_SOFTWARE,"%Target_config%\software" RegWrite,HKLM,0x1,_WinPE_SOFTWARE\Classes\*\shell\Notepad++,,Open with Notepad++ RegWrite,HKLM,0x2,_WinPE_SOFTWARE\Classes\*\shell\Notepad++\command,,#$psystemdrive#$p\Programs\Notepad++\notepad++.exe #$q%1#$q RegWrite,HKLM,0x1,_WinPE_SOFTWARE\Classes\*\OpenWithList\notepad++.exe,,Notepad++ RegWrite,HKLM,0x2,_WinPE_SOFTWARE\Classes\Applications\notepad++.exe\shell\open\command,,#$psystemdrive#$p\Programs\Notepad++\notepad++.exe #$q%1#$q If,%Openwith.workaround%,Equal,YES,Begin RegRead,HKLM,_WinPE_SOFTWARE\Classes\*\shell\Open with,Subcommands,%Subcommands% Set,%new.subcommand%,%Subcommands%;openwith.Notepad++ RegWrite,HKLM,0x1,"_WinPE_SOFTWARE\Classes\*\shell\Open with",Subcommands,%new.subcommand% RegWrite,HKLM,0x1,_WinPE_SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\openwith.Notepad++,,Notepad++ RegWrite,HKLM,0x2,_WinPE_SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\openwith.Notepad++\command,,#$q#$psystemdrive#$p\Programs\Notepad++\notepad++.exe#$q #$q%1#$q End Echo,"Unmounting registry hives..." RegHiveUnload,_WinPE_SOFTWARE If,%FullProjectRun%,Equal,NO,WimPathAdd,%OutputDir%\sources\boot.wim,%Boot.wim.Image.number%,%TargetDir%,"" //Wait,1 [NOT.IN.WIM] //Wait,1 If,%FullProjectRun%,Equal,NO,Run,"%ProjectDir%\Core\common.script",PostConfigRunNotInWim [EncodedFile-AuthorEncoded-notepad++_213.ico] lines=0 0=eJzt1j9Ia2cYx/Gfeul1ueqqi3fokToaumo7aiYXzZ4xEeGSLdMZxFoKySWCo9yhlJJMWSRuqUMCHZzOJIFeEpAK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