*** PortableApps.com Platform and Suite 1.6 have been released! ***
Are there command line parameters for *paf.exe (e.g. silent installation)?Submitted by lwc on June 20, 2008 - 12:48pm
If not a silent installation, is there at least a command line parameter like "path" (e.g. *paf.exe -path "c:\myportableapp", which would automatically write "c:\myportableapp" in the GUI extractor)? ( categories: )
|


No
There arent.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Yes
there is an option for silent install as well. NSIS installers recognize /S for silent installation and /D=dir to specify the directory.
However it is not cool to effectively double post.
'...and do the other things, not because they are easy, but because they are hard...' JFK
But I have deleted the previous post
I have realized it didn't belong to a specific software's forum, as I'm sure you'd agree.
I've tried both in vain (in a couple
I've tried both (in a couple of PAF EXE files) and neither did anything.
/d=whatever - does nothing.
/D=whatever - does nothing.
/s - does nothing.
/s /d=whatever - does nothing.
/d=whatever /s - does nothing.
/D=whatever /s - does nothing.
/d=whatever /S - does nothing.
/D=whatever /S - does nothing.
/S, /S /d=whatever or /S /D=whatever - just prevent the PAF EXE from launching.
/S yes, /D no...
(See http://nsis.sourceforge.net/Which_command_line_parameters_can_be_used_to...)
/S is working for me - I used FileMon to see what it was doing.
/D= doesn't seem to be working as /D=XXX or /d XXX... strange. I tried C:\7zport, F:\7zport, C:\path\to\app, F:\path\to\app, F:\pathtoapp, none worked, whether the directory existed or not. (F: was my drive letter)
Not sure why it doesn't work.
Christian, developer, moderator
What do you mean "\S" works
What do you mean "\S" works for you? Where does it extract the files to? In my case it doesn't extract them anywhere.
Also, that link claims "command line options can be disabled by the author of an installer". I hope it's not the case here.
/S (not \S):
Installs to the default. If you have a USB disk in, that will probably be in that drive, folder PortableApps\{AppName}Portable
For me, it was F:\PortableApps\7-ZipPortable
If you don't, I don't think it'll work, as it sets it to just "\{AppName}", which NSIS can't cope with - it needs a drive letter.
The CLO being disabled by the author, I can't find how you do it (unless it's just with SetSilent in the function .onInit), but I can't see any way that John has in PortableApps.comInstaller.nsi.
New finding, after actually having looked:
Function .onInit ${GetOptions} "$CMDLINE" "/DESTINATION=" $R0 IfErrors CheckLegacyDestination StrCpy $INSTDIR "$R0${SHORTNAME}" Goto InitDone CheckLegacyDestination: ClearErrors ${GetOptions} "$CMDLINE" "-o" $R0 IfErrors NoDestination StrCpy $INSTDIR "$R0${SHORTNAME}" Goto InitDoneIn other words, you need to use /DESTINATION=X:\Path\to\app\ (with a trailing slash), and then it should create a directory inside it called "7-ZipPortable" (which is the contents of the SHORTNAME define). Or, using the legacy method, -o X:\...\
Hope this solves your problems.
Christian, developer, moderator
Yes, they work and they
Yes, they work and they (except /S) can even be low capitals and accept quotes (even though they don't have to if they're the last parameters).
So to sum up:
/S
/destination="path\" or -o "path\"
Problems with the /S switch
Hi all. I've been trying for about 2 days now to try and find the silent install switch or command for *paf.exe and the same for PortableApps.com_Platform_Setup_1.5.2.exe.
I have tried all possible commands that I can think of
*paf.exe /S
*paf.exe /s
*paf.exe /SILENT
*paf.exe /silent
*paf.exe -s
*paf.exe -S
*paf.exe -SILENT
*paf.exe -silent
*paf.exe /q
*paf.exe /Q
These all show the normal prompts but its not silent.
If I added the /DESTINATION=D:\test\ its filled in on the choose location. Please help.
Also for PortableApps.com_Platform_Setup_1.5.2.exe /D=D:\test\ works perfectly but
it shows the screens for PortableApps.com_Platform_Setup_1.5.2.exe /S /D=D:\test\
unsupported
There is no silent installs with PAF installers. It was accidentally enabled for a short time about a year ago when this original post was made, but it broke options in installers and was fixed to disable it soon after.
Unattended installs will work with the upcoming PortableApps.com Platform's updater, though.
Sometimes, the impossible can become possible, if you're awesome!
Thanks
Many thanks for the information.
I was thinking about using the PortableApps as a laucher in Windows PE 3 (from the Windows 7 Automated Installation Kit).
I had hoped to use it as a fully automated way to create a Windows PE 3 ISO by just supplying the PAF installers to extract/install the programs if required.
Gareth
Was it added back already?
Just checking.