You are here

Portable App Development

Discuss portable app development and modification of existing apps.

Developing a launcher that needs multiple registry keys

Submitted by BrianAll on April 3, 2008 - 7:07pm

Okay...
I'm making a launcher for an app that happens to be using 4 different registry keys, and all of them are essential for the program to run. I've been looking at the NSIS script for 7-zip, but it only needs one key. My question is: How do I arrange the script when it is using more than one key? Here is the section I've been working with:

RegistryBackup:
		StrCmp $SECONDARYLAUNCH "true" LaunchAndExit
		;=== Backup the registry
		${registry::KeyExists} "HKEY_CURRENT_USER\Software\7-zip-BackupBy7-ZipPortable" $R0
		StrCmp $R0 "0" RestoreTheKey

CommandPromptPortable Request

Shawn Faucher's picture
Submitted by Shawn Faucher on April 3, 2008 - 3:08pm

I have a request for when CommandPromptPortable is brought up to date. Currently it is impossible to enter additional parameters via ini or command line, only by using commandprompt.bat in Data\batch. This makes it difficult to use CommandPromptPortable from other Portable Apps. For instance with Perl Portable I want to be able to open up a command prompt with a /k parameter to perform a command or custom batch file. As it stands to do this I have to back up any existing commandprompt.bat and create my own temporary one, then swap them back out afterward.

Great Idea, How do i make Portable Apps?

Submitted by Gizmod on April 3, 2008 - 5:54am

I have downloaded most of these portable apps now and run everything off my USB Drive.

Does anyone have a guide on how to create these portable apps? I am a programmer by trade and am assuming that certain utilities need to be used to track dlls etc and to tell the exe files the proper route to find them.

Any help much appreciated. Great Work so far and well done to everyone involved.

how to add japanese translations

Submitted by Travis Carrico on April 3, 2008 - 12:13am

i asked about this in a topic in the localization section but nobody answered. I have the japanese translations now for jkdefrag but i don't know how to add them since no matter what encoding i try to use the characters show up as boxes or question marks. will it still show up fine to japanese windows even if it shows up weird on my pc? and what encoding should i use for the ini?

Auslogics BoostSpeed 4

Mclovin223's picture
Submitted by Mclovin223 on April 2, 2008 - 11:23pm

Alright, I was bored today so I decided to work on a Auslogics BoostSpeed 4 launcher, because it would be a really useful tool to bring with me to use on other computers to clean them up, instead of carrying 5 other apps. Now There are only 4 registry keys made, 2 for the Start menu and 2 for the Current User and User Sections. Since the 2 start menu ones don't matter, its really just 2. I'm going to use Portable App Creator because it has a nice collection of apps that can be used to make it. Plus I'm still working on learning to write in other ways.

NSIS Header RegOps2

Submitted by wraithdu on April 2, 2008 - 11:22pm

Two registry functions. First is a RegKeyExists function that will determine if a reg key exists without using the Registry plugin. The next one builds on that function, and can use SetACL to reset permissions on a key to allow you to delete it, ie the Enum\Root\LEGACY_ keys.

Should be self-explanatory how to use them. They use the same format as the Registry plugin, ie a full key path.

Release Notes:

Update 2008-04-06

ProcFunc - NSIS Process Function Header

Submitted by wraithdu on April 2, 2008 - 10:57pm

Well this little project of mine has grown. The code's pretty long now, so it's available as a download. More macros available -

[See full code at end of post]

${ProcessExists}
Determines if a given process exists by name or PID, and returns the Process ID (PID).

${GetProcessPath}
Determines first if a process exists, and returns the full path by name or PID.
WARNING: This will only succeed if the calling process has sufficient rights to open the target process.

Create an .NET portable application

Submitted by orobin on April 2, 2008 - 6:50am

Hello,

I am curently looking in this forum some information, on how I can do to make my .net winform application in portable format :

I need to embbed the framework an my application.
I have studied the legal problem, and because the .net framework is free distribution, I can embbed it with my application.

now, I need some help.

How can I do it, how can I start.
is there any tool which help to create portable app ?
I have tested App creator, but it doesn't work on my omputer.

is there any tutorial, or what else ?

many thank you for any help, link, idea.

best regards,

Pages