Sunday, December 31, 2006

How To Create Your Own Portable Program

Haven't you always wanted to create your own portable program? Now, you can! Here's how:

Get Total Uninstaller 2.35.
Run the installer you want in Total Uninstaller.
Save the log to your desktop.
Get Portable Application Template.
Open up the NSI file.
Open up the Total Uninstaller log.
Copy all the Total Uninstaller registry entries to the PAT, separating them with ||.
Do the same with Settings Files and Settings Directories.
For icons, get Icons From File. Extract the icon from the main program. Alternatively, do a Google Images search.
Fill in the rest of the info.
Compile with NSIS. PortableNSIS also good.
Uninstall the original program with Total Uninstall.
Run the portable program.
Check to see if the registry entries and files are there.

You're done!

13 comments:

Anonymous said...

Can you kindly explain this part in details with some example or screenshots.

"Copy all the Total Uninstaller registry entries to the PAT, separating them with ||.
Do the same with Settings Files and Settings Directories."

Thankyou
Hussain
magdoomh@hotmail.com

Anonymous said...

Something like:

!define REGKEYS "HKEY_CURRENT_USER\Software\Foxit Software||HKEY_CLASSES_ROOT\.pdf||HKEY_CLASSES_ROOT\CLSID\{14E8BBD8-1D1C-4D56-A4DA-D20B75EB814E}||HKEY_CLASSES_ROOT\FoxitReader.Document"

For the files and settings, do "C:\Documents and Settings\Joe Smith\Application Data\Foxit||C:\Documents and Settings\All Users\Application Data\Foxit

Anonymous said...

Can u pls tell is this is correct format

||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl\dxDataControl Class||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl\CLSID\{195B5D84-DAD1-11D3-AA5F-00105A6F87AB}||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl.1\dxDataControl Class||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl.1\CLSID\{195B5D84-DAD1-11D3-AA5F-00105A6F87AB}||HKEY_CLASSES_ROOT\dxDBInsp.dxDBInspector\XpressInspector 1.0 by Developer Express||

Anonymous said...

I believe more like HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl\dxDataControl Class||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl\CLSID\{195B5D84-DAD1-11D3-AA5F-00105A6F87AB}||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl.1\dxDataControl Class||HKEY_CLASSES_ROOT\DxDBInsp.dxDataControl.1\CLSID\{195B5D84-DAD1-11D3-AA5F-00105A6F87AB}||HKEY_CLASSES_ROOT\dxDBInsp.dxDBInspector\XpressInspector 1.0 by Developer Express

(without the || at the beginning and end, just in between).

A suggestion would also to be ask the developer here:
http://portableapps.com/node/2022

Anonymous said...

If u have any modified template(with the registry entries and setting files & directories).Can you pls mail it to magdoomh@hotmail.com.So that I can have a better idea.

Thankyou

Anonymous said...

There's a bunch of tutorials at:

http://portableapps.com/node/2022

A. Setyawan SJ said...

Dear Andrew,
Didn't you encounter such a problem?

Invalid command: ${registry::KeyExists}
Error in script "C:\Documents and Settings\Andreas\Desktop\ApplicationPortableTemplate.nsi" on line 244 -- aborting creation process

Could you please tell me what caused that problem?
Thank you,
Andreas

Anonymous said...

Doesn't Work....

Anonymous said...

read the readme.txt file that comes with the template .. it says that it requires three plugins .. registry, findproc and newadsplash .. u can download from nsis.sourceforge.net

Anonymous said...

Better still can you screenshot each step? It'd prob make it so much easier

Anonymous said...

about NSIS i tried to download it from your blog but i coulded so if you whant the NSIS file the link is:
http://nsis.sourceforge.net/Download

Anonymous said...

I tried this approach, but some users reported that it doesn't work. I think, cause admin right required... not sure. So we need something like "virtualization". Right now I've downloaded boxedapp from http://boxedapp.com/boxedappsdk/download.html hope it can help to create a _real_ potable app.

Thanks.

$unil Jain said...

nice tutus :)
thanks :)
i have found one more way
http://www.gupshupblog.com/2009/04/create-portable-applications-using-winrar/

hope you will like this :)