Hello,
I do not know if I post at the right place, sorry if not.
I am using portableApps Launcher generatir successfully, but I ran into a difficulty.
I would like to generated 2 Portable App based on the same directory structure.
The difference between the 2 portable Exe is the entry point
[Launch]
;ProgramExecutable=\..\..\@AppName-Dev-Test\AppName.exe
ProgramExecutable=Basedir\Binaries\Win64\App_DX12.exe
ProgramExecutableX=Basedir\Binaries\Win64\App.exe
Is is possible to have such a behavior with the launcher Generator ?
If it is possible what are the appinfo and laucher.ini like ?
Thank for your time and help
regards
The PA.c Launcher itself doesn't support multi-exe apps. The multi-exe apps are things like LibreOffice and OpenOffice that have a single PA.c Launcher and then some stub EXE files that call the PA.c Launcher with an additional argument (-writer to start the LibreOffice Writer directly, for example).
As for your specific app, it depends on how you want it to work. Would it be selectable by the user or better to automatically run the DirectX 12 version when it's available and the other when it is not? Likely, detecting whether the OS is Windows 10 or later and using D12 and if it is earlier launch the other would be the way to go in custom code.
Sometimes, the impossible can become possible, if you're awesome!
Thanks for the info. I looked into OpenOffice. It looks complex in regards to what I would like to achieve.
I would like to be able to have 2 ini files for launcher. One for each of the StartX entry of the appinfo.ini
I am moving towards having a script that change appinfo.ini and launch a compilation.
${SegmentFile} ${SegmentInit} ReadRegStr $2 HKLM "Software\Microsoft\Windows NT\CurrentVersion" "CurrentBuild" ${If} $2 < 10000 ;Windows 7/8 ${If} ${FileExists} "$EXEDIR\App\AppName\Binaries\Win64\App_DX12.exe" Rename "$EXEDIR\App\AppName\Binaries\Win64\App.exe" "$EXEDIR\App\AppName\Binaries\Win64\App_NoDX12.exe" Rename "$EXEDIR\App\AppName\Binaries\Win64\App_DX12.exe" "$EXEDIR\App\AppName\Binaries\Win64\App.exe" ${EndIf} ${Else} ${If} ${FileExists} "$EXEDIR\App\AppName\Binaries\Win64\App_NoDX12.exe" Rename "$EXEDIR\App\AppName\Binaries\Win64\App.exe" "$EXEDIR\App\AppName\Binaries\Win64\App_DX12.exe" Rename "$EXEDIR\App\AppName\Binaries\Win64\App_NoDX12.exe" "$EXEDIR\App\AppName\Binaries\Win64\App.exe" ${EndIf} ${EndIf} !macroendSo, on Windows 10/11, it'll look to see if App_DX12.exe exists and rename it to App.exe so that'll get used while renaming the existing App.exe to App_NoDX12.exe. And on Windows 7/8 it'll look to see if App_NoDX12.exe exists and rename it to App.exe so that'll get used while renaming the existing App.exe to App_DX12.exe.Sometimes, the impossible can become possible, if you're awesome!