Tutorial Traducido

11
Introducción. Frecuentemente, alguien hará un post pidiendo ayuda. Yo escribí una guía realmente rápida en este post, aquí (http://portableapps.com/node/14834 ). Después de una sugerencia por parte de “r-andom”, yo re-posteé a manera de tema de foro. Si tienes alguna sugerencia para la guía, postea aquí. Si necesitas ayuda para “portabilizar”, has un nuevo foro en http://portableapps.com/forums/development/portable_app_developmen . Así, sin demasiadas palabras, procedo con el tema… 1. Usa la caja de búsqueda para saber si alguien ha hecho por ti el trabajo, o parte de él. Busca en http://portableapps.com/search . 2. Familiarízate con los portables disponibles. Por ejemplo: o X-Chat portable vuelve a dirigir la ruta de acceso y directorios GTK. o Notepad + + Portable Mueve archivos y luego los ajusta para que todos los archivos abiertos desde tu unidad flash (pendrive) se abra ahora en tu nuevo host. o 7-Zip portable lidia con las entradas de registro hechas por 7-Zip. o PNotes Portable pasa una línea de comandos al programa. 3. Determina la licencia del programa. ¿Es un software libre u otro tipo de licencia? Si el programa es software de código libre, puedes postear en los foros todos los portables que hagas. Como PortableApps.com se dedica a software de código libre, está contra las normas del foro postear un programa que contiene códigos bloqueados (incluso si estás autorizado para distribuírlo). Si el programa es de código cerrado, bien, tú puedes postear como yo he hecho aquí (http://portableapps.com/node/14387 ), únicamente. ¿Por qué esto de primero? Bie, tienes que decidir primero si vale la pena el esfuerzo.

Transcript of Tutorial Traducido

Page 1: Tutorial Traducido

Introducción. Frecuentemente, alguien hará un post pidiendo ayuda. Yo escribí una guía realmente rápida en este post, aquí (http://portableapps.com/node/14834). Después de una sugerencia por parte de “r-andom”, yo re-posteé a manera de tema de foro. Si tienes alguna sugerencia para la guía, postea aquí. Si necesitas ayuda para “portabilizar”, has un nuevo foro en http://portableapps.com/forums/development/portable_app_developmen. Así, sin demasiadas palabras, procedo con el tema…

1. Usa la caja de búsqueda para saber si alguien ha hecho por ti el trabajo, o parte de él. Busca en http://portableapps.com/search.

2. Familiarízate con los portables disponibles. Por ejemplo:o X-Chat portable vuelve a dirigir la ruta de acceso y directorios GTK.o Notepad + + Portable Mueve archivos y luego los ajusta para que todos los

archivos abiertos desde tu unidad flash (pendrive) se abra ahora en tu nuevo host.

o 7-Zip portable lidia con las entradas de registro hechas por 7-Zip.o PNotes Portable pasa una línea de comandos al programa.

3. Determina la licencia del programa. ¿Es un software libre u otro tipo de licencia? Si el programa es software de código libre, puedes postear en los foros todos los portables que hagas. Como PortableApps.com se dedica a software de código libre, está contra las normas del foro postear un programa que contiene códigos bloqueados (incluso si estás autorizado para distribuírlo). Si el programa es de código cerrado, bien, tú puedes postear como yo he hecho aquí (http://portableapps.com/node/14387), únicamente. ¿Por qué esto de primero? Bie, tienes que decidir primero si vale la pena el esfuerzo.

4. Determina el lenguaje de programación. ¿Por qué? Bien, tienes que ser cuidadoso. Los lenguajes pueden ser:

o .Net? Lo lamento. Mientras a algunos no les importa, un montón de gente de aquí desprecian .Net, ya que no está instalado en todas las computadoras. Vean este link para un discusión completa relativa al .Net (http://portableapps.com/node/12730).

o Java? Como yo lo entiendo, hay “portabilizadores java”, pero no hay todavía una fuente abierta JRE. Así, usar aplicaciones Java, es de algún modo, limitado. Puedes estudiar las siguientes aplicaciones para obtener una idea de la implementación de programas java portables.

Eclipse Portable (http://portableapps.com/node/20219) RSSOWlPortable (http://portableapps.com/node/19271)

5. Consigue las herramientas que vas a necesitar.o De todo corazón sugiero el uso de HM NIS Edit portable

(http://portableapps.com/node/13990). Selecciona la descarga con NSIS incluído si no quieres descargarlo por separado, o no si no quieres. Se ajusta adecuadamente en ambos casos.

Page 2: Tutorial Traducido

o Además date cuenta de si quieres usar otro editor, puedes descargar una versión portable de NSIS separadamente, desde aquí (http://portableapps.com/apps/development/nsis_portable).

o Regshot (http://portableapps.com/node/10969), el cual es usado para tener una idea de los cambios que hace un programa durante el proceso de instalación.

o Alternativamente, puedes usar el Process Monitor para hacerte una idea de las entradas del registro que se están leyendo (http://portableapps.com/node/14387)

o El NirSoft RegfromApp (http://www.nirsoft.net/utils/reg_file_from_application.html) es una pequeña utilidad freeware que te permite especificar un proceso determinado para su monitoreo. Puedes incluso correr un proceso con él y este monitorea esos específicamente. Produce una salida mucho mejor de las entradas del registro que el programa modificó.

o Además, sugiero escoger Notepad ++ Portable (http://portableapps.com/apps/development/notepadpp_portable). Por si acaso.

o Para manejar los íconos, usa algo como IcoFx (http://icofx.ro/files).6. Has tu investigación. Lee estos temas en los foros:

o Las especificaciones del formato de PortableApps. (http://portableapps.com/development/portableapps.com_format).

o El instalador oficial (http://portableapps.com/apps/development/portableapps.com_installer).

¿Sientes que tu cabeza está a punto de explotar? La mía también, escribir (y traducir) todo esto……. Pero aún hay más.

7. Descarga tu programa. Si tienes “keyboard loggers”, protección contra malware, o lo que sea que corre en segundo plano, considera apagarlos antes de hacer un “registro instantáneo”. Ahora dispara el Regshot y has un registro instantáneo del computador escaneando el disco C, antes de la instalación. Ve, toma una taza de café, o ve televisión un rato, pero NO TOQUES LA COMPUTADORA, de lo contrario tendrás entradas de registro adicionales además de las necesarias.

8. Instala tu programa y córrelo un par de veces. Asegúrate de que hiciste una “instalación limpia”. De lo contrario, los resultados podrían no ser los deseados. No hagas nada durante este tiempo.

9. Toma el segundo registro instantáneo y entonces compara los resultados. Guárdalo en un html, porque produce una mejor impresión que en un txt.

Page 3: Tutorial Traducido

10. Date cuenta de dónde están guardando los archivos del programa. Revisa en C:\documents and settings\usuario\datos de programa por si encuentras %appdata%. Si escaneas el disco C:\ por completo con Regshot, esos cambios deberían mostrarse.

11. ¿Qué hacer con las entradas de registro?:o HKCU: El Regshot mostrará unas modificaciones HCKU como HKU\

números aleatorios\blablabla. Búscalas en HKCU\Software\ y manéjalas en el NSIS como HKEY_CURRENT_USER\Software\blablabla.

Entrada útil: HKU\S-1-5-21-1060284298-823518204-725345543-1003\Software\Texas Instruments\TI Connect\StartUp\.

Entrada inútil: HKU\S-1-5-21-1060284298-823518204-725345543-1003\Software\Microsoft\Windows\ShellNoRoam\MUICache

o HKLM: HKLM es una rama del registro que no puede ser modificada por alguien con una cuenta limitada, sólo por un administrador. Manéjalas verificando dos veces que son necesarias. Con frecuencia, algunas como installdir:blablabla pueden ser ignoradas. Si por el contario esas entradas son realmente útiles, necesitarás verificar que el portable lo puede hacer, entonces corre el programa. Si no tienes los derechos, usarás una caja de mensaje para decirlo y terminar el portable. Manéjalas con NSIS como HKEY_LOCAL_MACHINE\Software\blablabla.

o HKU: Puedes ignorar estos.

12. Encuentra un programa base que lidie con esos asuntos.

13. Ajusta el portable para reflejar los cambios que necesitas hechos.

14. Compila, prueba y ajusta.

15. Cuando el programa funcione, deja una nota con él en el Beta Testing Forum, usando este formato (http://portableapps.com/node/11965). Permítenos tenerlo. Estaremos felices de ello

Bien, eso es todo.

Más ayuda general

Generalmente se pueden encontrar programas de código libre en SourceForge (http://sourceforge.net/).

Puedes obtener ayuda general aquí (http://portableapps.com/development)

Page 4: Tutorial Traducido

Si tienes alguna pregunta específica, has un post, y estaremos felices de ayudar.

Además, puedes unirte a nosotros en #portableapps en irc.freenode.net. Necesitarás un cliente IRC. Puedes además usar X-Chat, Pidgin, o Miranda. Aquí hay consejos útiles (http://portableapps.com/node/10951). No quieres descargar un cliente completo IRC? Bien, estoy seguro de que eventualmente lo tendrás que hacer, pero aquí hay una web basada en clientes IRC que es rápida. (http://portableapps.com/support/chat).

Gracias a…

Introduction:Often, somebody will make a post asking for help. I wrote up a guide real quick for this poster, here. After a suggestion by r-andom, I re-posted as a forum topic. If you have a suggestion for the guide, post here. If you need help portablizing, make a new post in the Portable App Development Forum. So, without much more text, I loose the gorilla. . .

1. Use the search box to find out if someone's done the work or some of the work for you. Search PortableApps.com.

2. Become familiar with the launchers available. For instance:

o X-Chat Portable redirects the Path, and GTK directories.

o Notepad++ Portable Moves files and then adjusts them so that any open files from your flash drive will now open on your new host.

o 7-Zip Portable deals with the registry entries made by 7-zip.

o PNotes Portable Passes a command line variable to the program.

3. Determine the license. Is it OSS or another type of license? If its Open Source Software, you can post all of the launcher and the program on the forums. Since PortableApps.com is dedicated to OpenSource software, its against the forum rules to post a piece of software that contains closed source (even if you are allowed to redistribute) software. If its closed source, well, you can post a launcher, similar to what I've done here, only. Why is this first? Well, you have to decide if its worth the work.

4. Determine the programing language. Why? Well, you have to be careful. Is it done in:

Page 5: Tutorial Traducido

o .Net? Sorry. While some don't care, alot of people here despise .Net, as its not installed on all computers. See this link For a whole discussion on the subject of .Net.

o Java? As I understand there's the Java Portablizer, but there is not yet an Open Source JRE. So use of Java applications is somehow limited.You can study the following application to get an idea of portable Java implementation.

Eclipse Portable

RSSOWl Portable

5. Get the tools. Load up- you'll need them.

o I whole heartedly suggest the use of HM NIS Edit (Portable) Select either the download with NSIS included, if you don't intend to download it separately, or without if you do. It adjusts properly in both occasions.

o Note also if you wish to use another editor, you can download a portable version of NSIS separately, from here.

o Regshot . which is used to figure out what changes a program made during the install process.

o Alternately, you can use Process Monitor to figure out what registry entries its reading.

o NirSoft RegfromApp is a small freeware utility that allows you to specify a specific process to monitor. You can even launch a process with it and monitor those specifically. It produces a nicer output of what registry entries the program has modified.

o I also suggest picking up Notepad ++ Portable. Just in case.

o To handle making the icons, use something like IcoFx

6. Do your research. Read up on these topics in the forums:

o The PortableApps Format Specifications

o The Official Installer

Feel your head is about to explode? Mine to, writing all this html. There's more

Page 6: Tutorial Traducido

7. Download your program. If you have keyboard loggers, malware protection or anything that runs in the background, consider turning them off before taking a regshot. Now, fire up regshot and take a regshot of the computer by scanning the C drive, more on that in a minute, before installation. Go have a cup of coffee or a can of Mountain Dew. Don't touch the computer! You'll get extra registry entries.

8. Install your program and run it a couple of times. Make sure you do this from a clean install. If you don't, you may have skewed results. Do NOTHING else during this time

9. Take second regshot and then compare the results. Save it a html, it produces a nicer printout then .txt

10. Figure out where the program is saving files. Check C:/Documents and Settings/UserName/Application Data for %appdata%. If you scan the entire C:\ Drive with regshot, those changes should show up.

11. What to do with registry entries:

o HKCU:Regshot will show a HCKU modification as HKU\Random Numbers\whatever. Look for those in HKCU\Software\ and handle them in NSIS as HKEY_CURRENT_USER\Software\Whatever.

Useful Entry: HKU\S-1-5-21-1060284298-823518204-725345543-1003\Software\Texas Instruments\TI Connect\StartUp\.

Useless: HKU\S-1-5-21-1060284298-823518204-725345543-1003\Software\Microsoft\Windows\ShellNoRoam\MUICache

o HKLM:HKLM is a branch of the registry that cannot be modified by someone with a Limited account- just an Administrator. Handle them by double checking that they are needed. Often, something like InstallDir: whatever can be ignored. Else-if those entries really really are needed, you will need to check that the launcher can do it, then launch the software. If you don't have the rights, you'll use a message box to say so and terminate the launcher. Handle them in NSIS as HKEY_LOCAL_MACHINE\Software\whatever

o HKU: You can ignore these.

12. Find a base launcher that deals with those issues.

13. Adjust the launcher to reflect the changes you need made

14. Compile, test, and adjust

Page 7: Tutorial Traducido

15. When it works, drop a note with it in the Beta Testing Forum., using this format. Let us have at it. We'll be glad to

Well, that about sums it up.

More General HelpOpen Source Software is generally found at SourceForgeYou can get general help hereIf you have any specific questions, give post, and we'll be happy to help.You can also join us at #portableapps on irc.freenode.net. You'll need a IRC client. You can use X-Chat, Pidgin, or Miranda. Helpful hints are here. Don't want to download a full blown IRC client? Well, I'm sure you will eventually, but here's a web based IRC client that's fast.

Thanks to . . .r-andom, for his blurb on java\MaienM and Bart.S for letting me know about those pesky updates

Changelog

1. 10SEP08

o Updated a few spelling issues

o Added NirSoft RegfromApp

o Updated link to installer thread

o Changed up the way registry was talked about, added examples

2. 08APR09

o Add NSIS Portable to the Tools List

3. 02OCT09

o Add examples of Portable Java implementation

o Update links to the PA.com format, Installer

o Update link to NSIS Portable