From 54e6a080fe35339a29fcb3c052b7c54208a36155 Mon Sep 17 00:00:00 2001 From: Homes32 Date: Mon, 26 Jul 2021 13:58:50 -0500 Subject: [PATCH] bugfix --- Projects/PhoenixPE/Components/RDP.script | 4 ++-- Projects/PhoenixPE/PhoenixAPI.script | 23 +++++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Projects/PhoenixPE/Components/RDP.script b/Projects/PhoenixPE/Components/RDP.script index 33ec6ce..04f3c3a 100644 --- a/Projects/PhoenixPE/Components/RDP.script +++ b/Projects/PhoenixPE/Components/RDP.script @@ -156,8 +156,8 @@ RegHiveUnload,Tmp_Install_System If,%cb_DesktopShc%,Equal,True,AddShortcut,Desktop,,%txt_ShortcutName%,"%ProgramFolder%\%ProgramExe%" If,%cb_StartMenuShc%,Equal,True,AddShortcut,StartMenu,%txt_StartMenuFolder%,%txt_ShortcutName%,"%ProgramFolder%\%ProgramExe%" -If,%cb_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,0,"%ProgramFolder%\%ProgramExe%" -If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,0,"%ProgramFolder%\%ProgramExe%" +If,%cb_PinToTaskbar%,Equal,True,PinShortcut,Taskbar,Auto,"%ProgramFolder%\%ProgramExe%" +If,%cb_PinToStartMenu%,Equal,True,PinShortcut,StartMenu,Auto,"%ProgramFolder%\%ProgramExe%" [#ExtractFiles#] // =============================================================================================================================== diff --git a/Projects/PhoenixPE/PhoenixAPI.script b/Projects/PhoenixPE/PhoenixAPI.script index 56f25d7..3b657d6 100644 --- a/Projects/PhoenixPE/PhoenixAPI.script +++ b/Projects/PhoenixPE/PhoenixAPI.script @@ -38,6 +38,9 @@ Level=0 Selected=None [Variables] +// Defines the configuration (pre-shell) processor used for things like creating shortcuts and auto-run entries. +// In the future this can be used to add support for replacement pre-shell processors. +// PECMD - Use PECMD (Default) %_PhoenixAPI_ConfigMode%=PECMD [Macros] @@ -140,8 +143,8 @@ End [#_PhoenixAPI_RegCopyDriver#] // =============================================================================================================================== // Name...........: RegCopyDriver -// Description....: Copy the driver entries from the INSTALL.WIM driver database to the target registry to the driver database -// of our target DRIVERS hive. Both the DRIVERS hive and SYSTEM\Drivers store are processed. +// Description....: Copy the driver entries from the INSTALL.WIM driver database to the target registry driver database. +// Both the DRIVERS hive and SYSTEM\Drivers store are processed. // Syntax.........: RegCopyDriver, // Parameters.....: InfFile - The name of the driver's .inf file // Return values..: @@ -220,7 +223,7 @@ System,EndLocal [#_PhoenixAPI_InnoUnpack#] // =============================================================================================================================== // Name...........: _PhoenixAPI_InnoUnpack -// Description....: Execute Innounp (Inno Setup Unpacker) with the provided arguments. +// Description....: Extract files from an Innounp (Inno Setup Unpacker) installer. // Syntax.........: InnoUnpack,,[,] // Parameters.....: #1 SetupFile - The inno-setup file to unpack. // #2 DestDir - The full path to the directory where the files will be unpacked. @@ -385,7 +388,7 @@ System,EndLocal [#_PhoenixAPI_SetRegACL#] // =============================================================================================================================== // Name...........: SetRegACL -// Description....: Take ownership and full control for "Everyone" on a registry key using Helge Klein's SetAcl.exe +// Description....: Take ownership and grant full control for "Everyone" on a registry key using Helge Klein's SetAcl.exe // Syntax.........: SetRegACL, // Parameters.....: #1 Path - Registry key to modify. The hive must already be mounted. // Return values..: @@ -486,7 +489,7 @@ Run,%API%,_PhoenixAPI_RequireFileEx,ExtractFile,#1,#2 [#_PhoenixAPI_RequireFileEx#] // =============================================================================================================================== // Name...........: RequireFileEx -// Description....: Extract a file and it's .mui's (if they exist) from Install.wim +// Description....: Extract files and their .mui's (if they exist) from Install.wim // Syntax.........: RequireFileEx,,[,NOMUI] // Parameters.....: #1 Action: // AppendList - Append the file to a list (bulk extraction). You must call RequireFileEx,ExtractList @@ -704,8 +707,8 @@ TxtAddLine,"%TargetSystem32%\RunAfterNetwork.cmd","START #$q%Title%#$q %ExecMode [#_PhoenixAPI_AddShortcut#] // =============================================================================================================================== // Name...........: AddShortcut -// Description....: Handle Shortcut creation -// Syntax.........: AddShortcut,,,,<PathProgramExe>,<Parameters>,<WorkDir>,<IconPath>,<IconIndex>,<State>,<Hotkey>,<Tooltip> +// Description....: Create Shortcuts for programs in PE. +// Syntax.........: AddShortcut,<Type>,<StartMenuFolder>,<Title>,<PathProgramExe>,[Parameters],[WorkDir],[IconPath],[IconIndex],[State],[Hotkey],[Tooltip] // Parameters.....: #1 Type // Desktop - The shortcut will be created on the desktop. // StartMenu - The shortcut will be created in the start menu. @@ -1175,7 +1178,7 @@ System,EndLocal [#_PhoenixAPI_XMLDelete#] // =============================================================================================================================== // Name...........: XMLDelete -// Description....: Experimental wrapper for XmlStarlet +// Description....: Experimental wrapper for XmlStarlet - Delete an XML path/value. // Syntax.........: XMLDelete,<XMLFile>,<XPath> // Parameters.....: #1 XMLFile - Full path to the .xml filed to edit. // #2 XPath - XPath (XML Path Language) query used to locate the Attribute/Element to delete. @@ -1203,7 +1206,7 @@ System,EndLocal [#_PhoenixAPI_XMLAdd#] // =============================================================================================================================== // Name...........: XMLAdd -// Description....: Experimental wrapper for XmlStarlet +// Description....: Experimental wrapper for XmlStarlet - Add a new element/text/attribute to an XML file. // Syntax.........: XMLAdd,<Operation>,<XMLFile>,<XPath>,<Type>,<Name>[,<Value>] // Parameters.....: #1 Operation - Can be one of: // Insert - Insert a node at the the beginning of the XPath. @@ -1257,7 +1260,7 @@ System,EndLocal [#_PhoenixAPI_XMLRename#] // =============================================================================================================================== // Name...........: XMLRename -// Description....: Experimental wrapper for XmlStarlet +// Description....: Experimental wrapper for XmlStarlet - Rename a value in an XML file. // Syntax.........: XMLRename,<XMLFile>,<XPath>,<Value> // Parameters.....: #1 XMLFile - Full path to the .xml filed to edit. // #2 XPath - XPath (XML Path Language) query used to locate the Attribute/Element to rename.