You are here

Portable App Development

Discuss portable app development and modification of existing apps.

Q: distributing freeware apps

Submitted by Travis Carrico on April 15, 2008 - 7:51pm

i understand why we can't post most freeware apps here, because their license makes it illegal to modify them. but why can't we post freeware apps that have more flexible licenses to allow repackaging? the only reason we don't have official freeware apps is because of hosting, so if we have our own hosting, then we should be able to post them on the forums.

WinSCP suggestion winscp.com

Submitted by sgp on April 14, 2008 - 4:47am

The standard WinSCP distribution includes file winscp.com, a command-line interface to the WinSCP.exe executable. It's basically a command-line sftp client. The current portable version doesn't include winscp.com, could it be added to the next PAF version?
WinSCP.exe needs to be running already for winscp.com to work. From my limited testing, it doesn't seem to leave anything in the registry.
More info here http://winscp.net/eng/docs/scripting

Edit .dat file with NSIS?

Submitted by Devo on April 11, 2008 - 8:57am

I'm working on improving the Winamp launcher, really the only thing left to do is make the media library portable. The issue is that the media library uses absolute paths and is stored in a .dat file. Is there a way in NSIS to find B:, C:, E: or whatever the path may be and replace it with the drive letter of the flash drive? I know you can do a find and replace, but will this work in a .dat file? Also, since the initial drive letter of the path can be anything, how would I do the find and replace for it? Thanks.

auto start a PA when StartPortableApps.exe is run

Spaceman Spiff's picture
Submitted by Spaceman Spiff on April 11, 2008 - 5:11am

Not sure if this is the correct location for this post...
I'm sure this has been asked before, but I can't find it in the forum: is there a way to automatically start an app as soon as the PortableApps menu is started? I constantly use Keepass during the day, so it would be nice to have it start together with the PA Menu. Sort of like the startup folder in windows...

how can I redirect files using nsis [SOLVED]

Submitted by denash on April 11, 2008 - 4:56am

Could anyone please tell me how to redirect
"C:\Documents and Settings\HOME PC\Application Data\Artweaver" using nsis? because I want those settings to be stored in the "Data" directory of the app, which I am trying to make portable.

thx in advance

edit: because subject was not very clear

Edit 2: I am trying to make my question clearer: how does a portable app handle the program which writes to "application data"? and how does it delete them and then get them to the "data" directory on the USB or so? could someone please show me the code?

Help with ReplaceInFile command

Submitted by Jacob Mastel on April 10, 2008 - 3:13pm

I'm working on a launcher that will create file associations for .ssk and .sti files. I can't seem to get the registry to work though. Everytime I go through the Replace in file command it messes up the .reg file. It goes up from a couple KB's to 800 and tells me only binary data can be put into the registry. If anybody could help I'd appreciate it. My code is:

Outfile ..\..\StickiesPortable.exe
Name Stickies Portable
Icon "..\..\App\AppInfo\appicon.ico"
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

!include "FileFunc.nsh"

Move .skn files from settings folder and back

Submitted by Devo on April 10, 2008 - 1:15pm

I am writing a launcher and have a question about moving files. I need to be a able to move files from the settings directory to the app directory in order for the program to work. I've been looking at the SumatraPDF source to be able to do that. The problem is that the files that need to be moved could have any file name. The extension on the file name will always be the same.

Example: I need to move all files with the extension .skn from the settings folder to the app folder when the program is launched and back to the settings folder when the program is closed.

Grasping at straws here...

Submitted by Bruce Pascoe on April 10, 2008 - 12:11pm

Okay, well since there are no official PAF specs and the unofficial ones carry "don't use this" status, I figure I'll ask a different way: what do I have to do to my app if I wanted to release it on PA.com now?

I mean, if there's no specs and we're not supposed to use the unofficial ones, how is anyone supposed to release anything?

Pages