You should use the Microsoft Win32 Content Prep Tool and create a script to do what you need.
You put everything in the source folder and do the work in the script from the folder "."
https://learn.microsoft.com/en-us/mem/intune/apps/apps-win32-add
https://learn.microsoft.com/en-us/mem/intune/apps/apps-win32-prepare
Detection for the win32 app could check if the folder exists or you can put some logic in the script to check if the extraction succeeds and the shortcut copies successfully and then write a registry key. When running scripts in win32 app installs you need to change the context it runs in so registry keys get written correctly. Here is a quick example.
# If we are running as a 32-bit process on an x64 system, re-launch as a 64-bit process
if ("$env:PROCESSOR_ARCHITEW6432" -ne "ARM64")
{
if (Test-Path "$($env:WINDIR)\SysNative\WindowsPowerShell\v1.0\powershell.exe")
{
& "$($env:WINDIR)\SysNative\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy bypass -NoProfile -File "$PSCommandPath"
Exit $lastexitcode
}
}
Expand-Archive -Path ".\eclipse-java-2023-06-R-win32-x86_64.ZIP" -DestinationPath "$env:ProgramFiles\Eclipse\java-2022"
$ShortCuts = ".\Shortcut1.lnk", ".\shortcut2.lnk"
foreach ($ShortCut in $ShortCuts) {
Copy-Item -Path $ShortCut -Destination "C:\Users\Public\Desktop\$ShortCut"
}