You are here

Portable App Development

Discuss portable app development and modification of existing apps.

Dir Copy

Submitted by IllusionofDemise on September 29, 2007 - 12:49pm

Will this copy the whole \2k\ dir into \bin\ dir

StrCpy $0 "$EXEDIR\App\GnuCash\orbitfix\2k" ;Path of copy file from
StrCpy $1 "$EXEDIR\App\GnuCash\bin" ;Path of copy file to
StrCpy $2 0 ; only 0 or 1, set 0 to overwrite file if it already exists
System::Call 'kernel32::CopyFile(t r0, t r1, b r2) l'
Pop $0 ; pops a bool. if overwrite is off and there is a file then error will be 1

Can someone check this for me

Submitted by IllusionofDemise on September 29, 2007 - 11:15am

if there something wrong with this code?? because its not poping up a msg box at all and im running xp, im not good with nsis yet so i though i might have messed up the if statement or something. GetWindowsVersion is a function i found in the manual.

Section "Main"

; Windows 2000 Fix
Call GetWindowsVersion
Pop $R0
!if "$R0" = "2000"
MessageBox MB_ICONEXCLAMATION|MB_OK "windows2k"
!endif
!if "$R0" = "XP"
MessageBox MB_ICONEXCLAMATION|MB_OK "windowsXP"
!endif

SectionEnd

PAM Updates Code: Well, a start anyway

Ryan McCue's picture
Submitted by Ryan McCue on September 29, 2007 - 3:38am

I've got the start of the updates code for the PAM ready. It's still a long way from being finished (doesn't even check yet), but at least it's a start. Rather than being a generic solution for many servers, ala AMP, it only handles the PA site, which reduces the complexity.
Et, viola.

procedure TfrmMenu.GetUpdatesINI();
// Download the updates INI from the PortableApps.com server
// Acknowledgement: http://delphi.about.com/od/internetintranet/a/get_file_net.htm for the function
var
	remoteUpdates: TINIFile;
	remoteUpdatesPath: TString;
	localUpdatesPath: TString;
begin

Workaround to extend Menu with more Apps?

Submitted by lui on September 28, 2007 - 4:19pm

Hi, I have quite a few programs that I want to launch with Portable App, and I would like to "sort" them in folders like "GraphicApps", "OficeApps", "MultimediaApps" and "GamesAps". Portable Apps currently only scans the first sub-directory Sad Any idea for a work-around? (Shortcuts don't work unfortunately)
Thanks, Lui

Portable Firefox For Linux: First Test Version

Submitted by katasuka on September 28, 2007 - 2:30am

Well folks I think I created a Portable Firefox for Linux.

It works, I tested it on my USB stick and it was so super simple.

If anyone wants to try it out (and if the devs want to tweak it and add it to the list of apps) below is the download link **NOT SELF PROMOTION - IS A WORKING PORTABLE APP FOR LINUX THAT I'VE YET TO SEE DONE**

Also note, This was tested so far on a USB stick and hard drive on Linux Mint 3.1

[link removed by moderator JTH due to licensing]

Just decompress and run startfirefox.sh and be sure to give me feedback, bugs, what systems it runs on, etc.

Editing the PortableApps Menu to allow Non-PortableApps.com applications

Submitted by BluePlanet on September 27, 2007 - 6:39pm

Is it possable to edit the PortableApps Menu to allow Non-PortableApps.com applications? I currently have 53 portable applications on my drive, 48 are not from portableapps.com. If I could get a copy of the source code I would add a button that will launch a GUI allowing the user to add other programs. In addition I would allow the user to choose the location for the installed programs and documents folders. Great Job with what you have done, Thanks.

-BluePlanet

Moving directories in NSIS- Need Help

Espreon's picture
Submitted by Espreon on September 26, 2007 - 5:36pm

Alright I am almost finished with MoinMoin Portable Beta 1 but when I launch it a second time it does not work, because the launcher is not moving the "wiki" folder in Data\settings to App\moinmoin

Here is the .nsi:

SkipSplashScreen:
		;=== Check for data files
                IfFileExists `$EXEDIR\Data\settings\wiki\` MoveSettings
                IfFileExists `$EXEDIR\Data\settings\wikiconfig.py` MoveSettings
		IfFileExists `$EXEDIR\Data\settings\*.*` MoveSettings
			CreateDirectory `$EXEDIR\Data\settings`

	MoveSettings:

Pages