I want to make a program to start maximized when i launch it and i add this line in AppNamePortable.ini file:
AdditionalParameters=/maximized
But it doesn't work.
On the installed version of the program if i create a shortcut of the .exe file and from Properties set it to run in maximized window it works, but for portable launcher doesn't work.
I hope someone can help me with this!
You can't right now, unless you write a custom launcher. A windows shortcut only attempts to start the launcher as maximized, which isn't passed to the actual app as you've seen. PAL doesn't currently have an option to pass the info to the base exe itself either.
Sometimes, the impossible can become possible, if you're awesome!
You need to move & rename AppNamePortable.INI.
It needs to be located beside appnamePortable.exe.
It'll look like this:
X:\PortableApps\appnamePortable
-->appnameportable.exe
-->appnameportable.ini
My .ini files are renamed with proper names and also in the correct directory, but still doesn't work.
As i said if i create shortcut from the installed version of the program in Program Files directory and set it to run in maximized window it works. I thought if it works for the standard installed version it should work for the portable install too.
So, it is not possible to start the program maximized with parameters? That's not good.
Passing /MAXIMIZED to a program does not start it maximized unless the app itself supports that as a command line option (most apps do not). See my post above about how shortcuts work.
Sometimes, the impossible can become possible, if you're awesome!
I am confused about in which files the parameters can be used. In the manuals it says a parameter can be used in AppNamePortable.ini which is in the same directory as the portable launcher. And also that parameters can be used in launcher.ini file with CommandLineArguments.
If the program supports parameter to start maximized where is correct to put this parameter?
If an app supported it, as a user, you'd put it in AppNamePortable.ini in the same directory as AppNamePortable.exe. As a developer, if you wanted something to affect all users, you'd put it in the launcher.ini. Note that you would not put a maximize setting in launcher.ini to affect all users because not all users would want it maximized.
Sometimes, the impossible can become possible, if you're awesome!
Ah, I misunderstood. I thought you were passing a command line parameter that the application recognized. Since that doesn't appear to be the case, see John's comment above.