You are here

Are there command line parameters for *paf.exe (e.g. silent installation)?

16 posts / 0 new
Last post
lwc
Offline
Last seen: 2 weeks 4 days ago
Translator
Joined: 2006-04-26 06:35
Are there command line parameters for *paf.exe (e.g. silent installation)?

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)?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
No

There arent.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
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.

lwc
Offline
Last seen: 2 weeks 4 days ago
Translator
Joined: 2006-04-26 06:35
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.

lwc
Offline
Last seen: 2 weeks 4 days ago
Translator
Joined: 2006-04-26 06:35
I've tried both (in a couple of PAF EXE files)

I've tried both (in a couple of PAF EXE files) and neither did anything.

  1. /d=whatever - does nothing.
  2. /D=whatever - does nothing.
  3. /s - does nothing.
  4. /s /d=whatever - does nothing.
  5. /d=whatever /s - does nothing.
  6. /D=whatever /s - does nothing.
  7. /d=whatever /S - does nothing.
  8. /D=whatever /S - does nothing.
  9. /S, /S /d=whatever or /S /D=whatever - just prevent the PAF EXE from launching.
Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
/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.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

lwc
Offline
Last seen: 2 weeks 4 days ago
Translator
Joined: 2006-04-26 06:35
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.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
/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 InitDone

In 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.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

lwc
Offline
Last seen: 2 weeks 4 days ago
Translator
Joined: 2006-04-26 06:35
Yes, they work

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\"

gareththegod
Offline
Last seen: 12 years 12 months ago
Joined: 2009-09-17 15:12
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\

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 1 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
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!

gareththegod
Offline
Last seen: 12 years 12 months ago
Joined: 2009-09-17 15:12
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

lwc
Offline
Last seen: 2 weeks 4 days ago
Translator
Joined: 2006-04-26 06:35
Was it added back already?

Just checking.

vince38
Offline
Last seen: 11 years 7 months ago
Joined: 2013-04-26 02:58
with process monitor

On-ScreenKeyboardPortable_2.0.paf.exe /DESTINATION="U:\paf\PortableApps\" /AUTOCLOSE=true /HIDEINSTALLER=true /SILENT=true

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 1 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Platform Only

As mentioned in other threads, those switches will only work with the PortableApps.com Platform.

Sometimes, the impossible can become possible, if you're awesome!

Roy Jamil
Offline
Last seen: 3 months 1 day ago
Joined: 2024-08-30 10:57
10 years update

Hi is it still impossible to install 7-ZipPortable_*.paf.exe using command line ? silent install ?
Only options /DESTINATION= or -o work
Many thanks

Log in or register to post comments