JPE portable app running in CD

Discuss anything related to JauntePE, the utlimate utility to help you tame non-portable applications. Share your experience about the apps that work with JauntePE, and the apps that don't.
Post Reply
Message
Author
crownixx
Posts: 403
Joined: Sat May 12, 2007 6:26 am

JPE portable app running in CD

#1 Post by crownixx »

While reading some discussion in here, then i have interested with some information after have been drag into this website
http://www.boot-land.net/forums/index.p ... topic=4925
Defining Portable software
· The program can be executed from any media (CD, USB flash disk, etc) with the same rate of success
Can jpe portable app can be run in the CD?
Some criteria we should consider is the CD is not writeable after burn. So if you consider creating jpe portable app that is intend to run in the cd, the suitable config settings for portable registry is to use MemRegistry=4 or 5. The setting means that we load the portable registry into the memory but at the end of application exit, it will not write the registry changes into the portable reg file.

How about filesystem usage?AFAIK, there is no settings similar to MemRegistry for filesystem usage. But what we could do is maybe we put the portable filesystem path at the windows temporary folder. [Filesystem]Data=%temp%, then use application cleaner like ccleaner to clean the trace.

It is better if jauntePE have this built-in clean function though. Because thintapp/thinstall has this function RemoveSandboxOnExit. Do anyone have better suggestion?

Stone Tablet
Posts: 42
Joined: Sun Oct 19, 2008 12:58 am

An option is to use SFX, WinRAR or 7Z

#2 Post by Stone Tablet »

SFXs can be ran from CDs...

The "setup program" or "installation program" can be the JPE Launcher or other portable Application. i.e. after it closes the removes temp files are removed.

WinRAR uses a GUI, 7Z is command line only.

From WinRAR and 7Z readme file(s):

WinRAR
WinRAR Temp Command = "This command forces SFX to create a temporary folder, extract all files to it, start the program specified in Setup command and remove the temporary folder including all its contents after completing the Setup program."

7Z
"SFX modules for installers (7zS.sfx and 7zSD.sfx) allow to create installation program.
Such module extracts archive to temp folder and then runs specified program and removes
temp files after program finishing."

7-Zip for installers 4.64
-------------------------

7-Zip is a file archiver for Windows 98/ME/NT/2000/2003/XP.

7-Zip Copyright (C) 1999-2009 Igor Pavlov.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

7zr.exe is reduced version of 7za.exe of 7-Zip.
7zr.exe supports only 7z format with this codecs: LZMA, BCJ, BCJ2, Copy.

Example of compressing command for installation packages:

7zr a -t7z archive.7z * -m0=BCJ2 -m1=LZMA:d25:fb255 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3 -mx


7zSD.sfx is SFX module for installers (it uses msvcrt.dll)

SFX modules for installers (7zS.sfx and 7zSD.sfx) allow to create installation program.
Such module extracts archive to temp folder and then runs specified program and removes
temp files after program finishing. Self-extract archive for installers must be created
as joining 3 files: SFX_Module, Installer_Config, 7z_Archive.
Installer_Config is optional file. You can use the following command to create installer
self-extract archive:

copy /b 7zSD.sfx + config.txt + archive.7z archive.exe

The smallest installation package size can be achivied, if installation files was
uncompressed before including to 7z archive.

-y switch for installer module (at runtime) specifies quiet mode for extracting.

Installer Config file format
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Config file contains commands for Installer. File begins from string
;!@Install@!UTF-8! and ends with ;!@InstallEnd@!. File must be written
in UTF-8 encoding. File contains string pairs:

ID_String="Value"

ID_String Description

Title Title for messages
BeginPrompt Begin Prompt message
Progress Value can be "yes" or "no". Default value is "yes".
RunProgram Command for executing. Default value is "setup.exe".
Substring %%T will be replaced with path to temporary
folder, where files were extracted
Directory Directory prefix for "RunProgram". Default value is ".\\"
ExecuteFile Name of file for executing
ExecuteParameters Parameters for "ExecuteFile"


You can omit any values.

There are two ways to run program: RunProgram and ExecuteFile.
Use RunProgram, if you want to run some program from .7z archive.
Use ExecuteFile, if you want to open some document from .7z archive or
if you want to execute some command from Windows.

If you use RunProgram and if you specify empty directory prefix: Directory="",
the system searches for the executable file in the following sequence:

1. The directory from which the application (installer) loaded.
2. The temporary folder, where files were extracted.
3. The Windows system directory.


Config file Examples
~~~~~~~~~~~~~~~~~~~~

;!@Install@!UTF-8!
Title="7-Zip 4.00"
BeginPrompt="Do you want to install the 7-Zip 4.00?"
RunProgram="setup.exe"
;!@InstallEnd@!



;!@Install@!UTF-8!
Title="7-Zip 4.00"
BeginPrompt="Do you want to install the 7-Zip 4.00?"
ExecuteFile="7zip.msi"
;!@InstallEnd@!



;!@Install@!UTF-8!
Title="7-Zip 4.01 Update"
BeginPrompt="Do you want to install the 7-Zip 4.01 Update?"
ExecuteFile="msiexec.exe"
ExecuteParameters="/i 7zip.msi REINSTALL=ALL REINSTALLMODE=vomus"
;!@InstallEnd@!

crownixx
Posts: 403
Joined: Sat May 12, 2007 6:26 am

#3 Post by crownixx »

That is also a great idea.. we do not need to change the portable application config. Beside, small size of an app is a big bonus to save our cd storage

ZergFood
Posts: 34
Joined: Wed Feb 25, 2009 7:29 am
Location: Romania

#4 Post by ZergFood »

That method is nice but it extracts the app to a temp folder. This means it is kinda slow, and it still performs 'temporary' swaps, and to the hard drive in question. In some cases though, you are either not allowed (some weird protection), or it leaves some trace behind (if it has monitoring software installed -- I'm not talking about my computer here ;)).

I don't know, can redllar confirm if this is a hard feature to implement? (considering that the registry already has such an option and behaves that way). Just a "feature" to be considered :P

Post Reply