You are here

A crude, but easy way to make portable apps. New Link (Again)

58 posts / 0 new
Last post
Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
A crude, but easy way to make portable apps. New Link (Again)

I found out a way to make portable apps. I was very rushed when making this, so please post any problems here.

EDIT:Updated to 2.1 Download 2.1 here

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-05-26 12:08
Very

Interesting. I'll Give it a try and see how good it is

your friendly neighbourhood moderator Zach Thibeau

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
WoW

I had never expected to see over 82 downloads!

Day
Offline
Last seen: 7 years 5 months ago
Joined: 2006-12-09 19:40
It would be great if you

It would be great if you could also write an example for total noobs like me.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-05-26 12:08
well

Well it seems pretty straight forward. if you want I see if I can draw up a more detailed tutorial when I test it out. Blum

your friendly neighbourhood moderator Zach Thibeau

etelford
Offline
Last seen: 17 years 2 months ago
Joined: 2007-01-14 16:15
I appreciate the time you

I appreciate the time you spent on this, but I have several questions about a few things not described very well...

Step 1. Monitor the installation with InstallRite.
> Does it matter what you name the installation?

Step 2. Export the reg keys to your desktop.
> Which ones? In InstallRite, which option is this exactly? To what format?

Step 3. Export the changed reg files from looking at the changes in
the registry showed in install rite.
> The "changed"? reg files? how are these different from the files above? InstallRite doesn't have an option to save "changed" reg files. When you say "from looking at the changes in the registry..." what exactly does this mean?

> Is it important how the two exports above are named?

Step 4. Make a copy of the exported keys in a new folder...
> So this is two files total and they just go in a separate folder with different names?

Step 5. In the new folder, edit the reg keys so you can put a – after
the [, but before the HKEY.
> Again, this is in two files at this point? You just make these edits and save the (2) files?

Step 6. Extract the icon from the starting exe.
> Do you have to extract it to a special folder or just somewhere you can easily find it?

Step 8. Now open the script file. In the first line rename the file.reg
to your exported key file's name.
> I assume when you say "the script file" you mean the file named "Universel Portable Script.au3" in the root of the "Portable Apps" folder? Should this file be copied anywhere before this is done? When you rename file.reg, what do you rename it to - the first reg file that was exported, the 2nd, the originals or the copies? Do we have to be concerned about paths?

Step 9. In line 2 put the name of the starting exe where it says
appname.
> Is this just the name of the .exe or do we have to be concerned about WHERE the .exe is?

Step 10. In the 4th line, where it says file.reg name it to your exported
key(s) in the new folder.
> But don't I have two exports in this folder? Which one do you mean?

Step 11. In line 3, where is says AnykeylikeHKEY_CURRENT_USER\blah put the name of the exported reg files for example, HKEY_CURRENT_USER\Software\Google
> There are two step 11s. Also, the file that is downloaded as part of the package has line 3 incomplete. Shouldn't this file look more like Twar3Draconis's post on 1/12?

Step 11 (the 2nd one). Now convert the au3 file to exe by going to
\autoitv3.2.2.0\Aut2Exe. Save it to the installation directory.
> Very confusing. You run the executable "Aut2Exe.exe"? Which files do I point it to? Do they have to be in a certain place relative to the program files I copied in Step 7 or any of the other files we've dealt with?

Step 12. Now, UPX everything by copying all the UPX files to the
copied installation directory on your desktop. Click UPX
Mass Compress.exe.
> Again, very confusing. When you say "UPX" everything, do I have to copy files to special places? what exactly am I "UPX-ing"? Be specific, please.

Step 14. Delete the UPX files and the folder that says backup.
> When you say "the UPX files" - what are these? What extensions do they have? What might the names be?

Once again, I appreciate the time you spent creating this tutorial, but it is severely lacking in detail and explanation. Screen shot could be very helpful. If you can get me going here, I'd be happy to overhaul your instructions with screen shots and maybe a bit more detail.

Your help is appreciated.

Thanks,
ET

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Im only 12 years old! I

Im only 12 years old! I don't have a lot of time to spend on this. I will try on work on it, but between chores, school, and portable apping, this tut. is not getting as much time as it should.

etelford
Offline
Last seen: 17 years 2 months ago
Joined: 2007-01-14 16:15
That excuse will only work

That excuse will only work for about 6 more years then! Smile

In the future, when you write something like this keep the beginners in mind. We need love, too!

Now stop reading this and go take out the trash!

Anyone else have some insight they can give?

youknowme
Offline
Last seen: 17 years 1 month ago
Joined: 2006-07-24 18:35
Good Start

Nerd,
This is a good start and I think it is what a lot of people are looking for. Step by step instructions with a little detail in each step. Coupled with a template and it would get people on their way. I'm not surprised there are no comments from regulars here on the site.

Keep it up...

TRexian
Offline
Last seen: 4 years 16 hours ago
Joined: 2007-01-02 15:01
n00b

I'm just getting into the dev side of portable apps, so this is an easy way for me to ease into it. Smile

t looks like there are 2 routes to portable app development, NSIS and AutoIT. I'm familiar with both, although I'm most comfortable with the former. So, I'll probably investigate that route first.

The more info, the better though IMHO. Smile

Sic semper tyrannosauro.

-------------------
Sic semper tyrannosauro.

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Examples

I wasn't sure if i could post the examples because the apps i make are non open source. Perhaps i could just post the launcher? EDIT: It hit over 170 downloads. EDIT2: Im gonna have to change my file hoster. Any one know good file hosting services where you can upload and create an account for free.

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Ask ryan

I think he knows something about hosting stuff.
Arent you, Ryan?

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Aren't I what?

I think Simeon mean I host stuff.
Yes, send it to my email cubegames[at]gmail.com
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
yep

Im from swizerland, so somtimes my english doesnt make sense.
*stumbles on toooo complicated phrase and hits head hard on table "booom"*

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Yeh

I sorta figured, since it's on your profile Wink

That reminds me of when I used to bash my head against the wall. Good times Blum
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Bahamut
Bahamut's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-04-07 08:44
Where's Linky?

Where's Linky? :lol:

Vintage!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Click on his name

Click on a poster's user name to see their profile (QL: https://portableapps.com/user/10927 ) Biggrin
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
Well, I see a good future

Well, I see a good future for this, provided that a method to extract keys from the registry and saving them to the registry file that is used in the first line of the script.

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
New Link- Updated to 1.1
Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
Well, the instructions and

Well, the instructions and links are updated, but the script is pretty much the same.

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Updated-1.2 lol
Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
Better format for the

Better format for the instructions, yes. And a funny tidbit at the end, but was that really necessary for an update?

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
People were complaining to

People were complaining to me that it wasn't simple enough in another forum.

Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
What's the purpose of the

What's the purpose of the initial run command? It's opening the app 2 times.

Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
I've found a better bit of

I've found a better bit of code to do this, it even backs up your settings from the registry.

RunWait("regedit.exe /s filename.reg", @ScriptDir)
RunWait("App\appname.exe")
RunWait('regedit.exe /s /e "' & @ScriptDir & '\filename.reg" "AnykeylikeHKEY_CURRENT_USER\blah"')
RunWait("regedit.exe /s filename2.reg", @ScriptDir)

[Moderator RM note: Please use <pre> for code blocks instead of <code>]

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Thanks

Ill try it out and if its good, ill jack up the release to 2.0 for the hell of it. Instructions change I change the second number. Script change i jack up the release.

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Hoster

Dose anybody know of a good place to host my site? I tried freewebs and some other place.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Yep

I'll host it!
cubegames[at]gmail.com
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Sorry for the turoble of posting.

But im using googlepages with http://www.mediafire.com/. Thanks for the offer

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
That's OK

Mind you, I don't like Google Pages.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
How

Come? I've always wanted a Google address. then i figured out how to do it without a mobile phone.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Lots of reasons
  1. Not enough control over pages
  2. No support for server scripting
  3. I don't like the interface

----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Downloads

1.2 has over 153 dl's! Im still working on 2.0. Twar3Draconis, whats the significance in the HKEY thing, to back up the key? For example HKEY_LOCAL_MACHINE\SOFTWARE\Adobe would back up that key?

Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
Yeah, it backs up the

Yeah, it backs up the registry key. Quite handy, so that you don't have to modify any settings everytime.

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
2.0
participant
Offline
Last seen: 17 years 2 months ago
Joined: 2006-07-30 13:50
Thanks again but .....

Nerd, the guy in the other forum named Sam asked you to match the numbers with the letters as shown here http://xs.to/xs.php?h=xs411&d=07025&f=Port3.png purposely.
You are using the words "Export the reg keys", "The changed reg keys" and "Make a copy of the exported keys", now that might look familiar to you but not to me at all.
You should have answered etelford's post above in the first place as it's exactly the problem a lot of us are facing.
Please, don't take this amiss but the way you're writing the tutorial is just confusing ( just the registry part! )
Would appreciate a simple example, please name the registry keys you're talking about properly ( use letters or numbers Wink )
Thanks in advance.

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Updated to 2.1
quinton
Offline
Last seen: 15 years 6 months ago
Joined: 2007-01-28 19:56
I just used this to make a

I just used this to make a portable Google earth launcher. Thanks

PORTABLE GOOGLE EARTH LAUNCHER:

https://portableapps.com/node/4917

Test it out. Tell me what you think

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Yeah

I'm going to test it out. I made a launcher for Google earth pro.....

EDIT: Very nice splash! How did ya make it? I'm not familer with auto it.

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I love

regshot!
It does the job so quickly, I'm impressed.
Ill try your tut this evening...
THX

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

Nxqd3051990
Offline
Last seen: 13 years 21 hours ago
Joined: 2006-04-30 06:37
Link not work ^^

Link not work ^^

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
New

Link

SaintEoh
Offline
Last seen: 17 years 1 month ago
Joined: 2007-02-10 06:31
Link doesn't work

New Link Dosen't work. Smile

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
I

Know

joos
Offline
Last seen: 13 years 11 months ago
Joined: 2007-02-07 12:34
The Guide

I would like to get a copy of this guide, however, whenI try and download the latest version it says there is a problem, can someone email the guide to me? Or is there another guide / download

Thanks

joos

joos

SmithTech
SmithTech's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-11-24 18:06
A better solution would be a

A better solution would be a guide on how to use Portable NSIS and the ApplicationPortableTemplate both available on this site.
I just recently started playing with both, and it is really quite simple.
No more difficult that changing a batch file and compiling with some tool.
I unfortunately don't have the time or the experience with NSIS to write a guide.

SmithTech

"Because they stand on a wall and say, 'Nothing is going to hurt you tonight. Not on my watch.'" (A Few Good Men)
Coincidence is God's way of remaining anonymous.(Albert Einstein)

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
New
MrStolpe
Offline
Last seen: 17 years 1 month ago
Joined: 2007-02-13 06:37
Adding backup

I am making a Portable App, I edited your script so that it makes a backup of current settings.

RunWait('regedit.exe /s /e "' & @ScriptDir & '\Backup.reg" "HKEY_USERS\SOFTWARE\HELLO_WORLD"')
RunWait("regedit.exe /s Portable.reg", @ScriptDir)
RunWait("App\Program.exe")
RunWait('regedit.exe /s /e "' & @ScriptDir & '\Portable.reg" "HKEY_USERS\SOFTWARE\HELLO_WORLD"')
RunWait("regedit.exe /s Portable2.reg", @ScriptDir)
RunWait("regedit.exe /s Backup.reg", @ScriptDir)

I have 3 questions, first I'd like to move the .reg files to sub-folder, so it looks like this.

{root}
 Startscript.exe
 Readme.txt
   {App}
    Program.exe
    program.dll
   {Data}
    Portable.reg
    Portable2.reg
    Backup.reg

My second question is, how can you make it backup multiple reg keys, basically combining the following.

RunWait('regedit.exe /s /e "' & @ScriptDir & '\Backup.reg" "HKEY_USERS\SOFTWARE\HELLO_WORLD"')
RunWait('regedit.exe /s /e "' & @ScriptDir & '\Backup2.reg" "HKEY_USERS\SOFTWARE\GOODBYE_WORLD"')

My last questions is, I'd like clear/remove the backup once I'm done, so I don't take any host information with me.

Thanks,
Mark

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
To Be Honest,

I have no clue Sad

Simeon
Simeon's picture
Offline
Last seen: 9 years 5 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Lets hope

Ryan can help when he will be back (He is good at NSIS...)

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

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 14 years 6 months ago
Joined: 2006-01-06 21:27
Yes, but

that's AutoIt, not NSIS.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Twar3Draconis
Offline
Last seen: 16 years 12 months ago
Joined: 2006-12-29 23:45
You can use AutoIt's

You can use AutoIt's Registry Delete functions, else you can run a registry file with a - before the HKEY. Ex:

[-HKEY...

instead of

[HKEY...
Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
Portable Apps Creation Master 1.0
m2
Offline
Last seen: 13 years 1 month ago
Joined: 2006-12-12 12:00
BUG

A big one... And I guess that many portable apps also have it.
At startup you backup existing files (keys etc.) in a special directory on your app's drive. But what happens when you have not enough free space? You destroy existing settings. Sb. lends you his computer and you totally change his highly customized settings? And you won't even be warned... I think it's definitely inacceptable.

Workaround: I would by default try to store backups in temp. Why?
- It's usually located on the same partition as %APPDATA%, so moving it would be really faster. Even if not, USB 1.1 port is always a bottleneck, an old pendrive, even connected to USB 2, would also be slower than 2 local hard drives.
- You can run even w/out enough space on your portable.
- If you disconnect a pendrive before closing the application, you'll lose only the recent changes to YOUR application.
- Less write cycles on your drive.

If it fails (insufficient rights, no space, ...), portable app should try in it's directory. If this is also impossible - it should refuse to start or ask for a temporary place. Usually it can also try to store it in memory.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

swoskow
Offline
Last seen: 16 years 11 months ago
Joined: 2007-02-02 17:01
link

Link does not seem to work - gives an error "bandwidth exceeded .....
Thanks
Steve

Thanks
Steve

Nerd
Offline
Last seen: 14 years 11 months ago
Joined: 2006-03-29 17:50
I know

Use Portable Apps Creation Master 1.2 (search for it)

Uriel
Offline
Last seen: 15 years 7 months ago
Joined: 2006-11-14 15:52
Hosting

if you want a new place to file host try mediamax.com
usually they will give you a folder to host stuff

Weeee!

Brokecore
Offline
Last seen: 17 years 1 month ago
Joined: 2007-02-28 07:32
Indeed

...MediaMax is great.

Morality, Ha, That's classically humourous.

Topic locked