en:documentation:make_a_portable_installation
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:documentation:make_a_portable_installation [2012/05/14 16:15] – créée pch | en:documentation:make_a_portable_installation [2015/11/06 20:43] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTOC~~ | ||
| ======Make a portable installation of Skychart====== | ======Make a portable installation of Skychart====== | ||
| - | A portable install mean you install Skychart on a removable media (USB stick) and you can plug it to any PC to run the application without any further configuration. | + | A portable install mean you install Skychart on a removable media (USB stick, external disk) and you can plug it to any PC to run the application without any further configuration. |
| + | The version 3.8 or more recent is required for this process | ||
| - | The example is given here for Windows but you can do almost the same on Linux, in this case use the tar installer. | + | The example is given here for Windows but you can do almost the same on Linux, in this case use the tar installer |
| + | You can also use the portable version for Windows on Linux/Mac by using Wine. This way you need a single USB stick for any platform. | ||
| - | The commands suppose your removable media is mounted on E: change accordingly if it use another letter. | + | The commands suppose your removable media is mounted on the drive E: change accordingly if it use another letter. |
| This description use mostly a command line window for the clarity of the explanation but you can also use the equivalent graphical tool.\\ | This description use mostly a command line window for the clarity of the explanation but you can also use the equivalent graphical tool.\\ | ||
| To open a command line window use the Start menu -> Accessories -> Command Prompt | To open a command line window use the Start menu -> Accessories -> Command Prompt | ||
| - | |||
| **1)** Create a new folder on your removable media: | **1)** Create a new folder on your removable media: | ||
| Line 15: | Line 17: | ||
| mkdir portable_skychart | mkdir portable_skychart | ||
| cd \portable_skychart | cd \portable_skychart | ||
| + | mkdir Ciel | ||
| </ | </ | ||
| - | You need a specific program to extract | + | **2)** Download |
| - | But if you have already installed | + | |
| - | **2)** Get innounp from http:// | + | **3)** Extract |
| + | < | ||
| + | unzip skychart-3.8-2450-windows.zip | ||
| + | </ | ||
| - | **3)** To extract | + | **4)** Create a folder for the program configuration: |
| - | < | + | < |
| + | mkdir userdata</ | ||
| - | **4)** Get CdC windows installer from http:// | ||
| - | A portable install require a version more recent than 3.7-2196. Copy the file in E: | ||
| - | **5)** | + | **5)** |
| - | <code>innounp.exe -x skychart-3.7-2196-windows.exe</code> | + | < |
| + | notepad skychart.cmd</ | ||
| + | Copy the following lines and save the file: | ||
| + | <file>@ECHO off | ||
| + | set basedir=%CD% | ||
| + | start %basedir%\Ciel\skychart.exe --config=" | ||
| + | |||
| + | </file> | ||
| - | **6)** Rename | + | Now you can plug this USB stick on any (Windows) computer and run the program with a double click on skychart.cmd. |
| - | < | + | |
| - | **7)** Delete the unneeded files: | + | ===== Optional steps ===== |
| - | < | + | |
| - | rmdir /S {userappdata}</ | + | |
| - | **8)** Create a folder for the program configuration: | + | ==== Do not let any trace in the registry ==== |
| - | < | + | |
| - | cd \portable_skychart | + | |
| - | mkdir userdata</ | + | |
| - | **9)** | + | If you not want to let any trace in the registry of the computer you need to inactivate the server functionality. Otherwise |
| < | < | ||
| notepad skychart.ini</ | notepad skychart.ini</ | ||
| - | Type the following and save the file: | + | Locate the line starting with AutostartServer, |
| < | < | ||
| AutostartServer=0</ | AutostartServer=0</ | ||
| - | **10)** Create | + | ==== Copy the program setting ==== |
| - | < | + | |
| - | notepad | + | Since the version 3.8 it is possible to copy the configuration file [[directories_and_files|skychart.ini]] from an existing installation to the userdata folder. |
| - | Type the following and save the file: | + | |
| - | < | + | Another option is to save and reload a chart using the menu File/Save as , File/ |
| - | set basedir=%CD% | + | |
| - | start %basedir%\skychart\skychart.exe --config=" | + | |
| + | ==== Make a script | ||
| + | |||
| + | Mount the configured USB key on your Linux system. | ||
| + | |||
| + | < | ||
| + | vi skychart.sh</ | ||
| + | Copy the following | ||
| + | < | ||
| + | #!/bin/bash | ||
| + | wine cmd /C skychart.cmd | ||
| + | |||
| </ | </ | ||
| - | Now you can plug this USB stick on any (Windows) computer and run the program with a double click on skychart.cmd | + | As you cannot set the executable bit on a FAT file system do the following to run: |
| + | < | ||
| + | cd / | ||
| + | bash skychart.sh | ||
| + | </ | ||
en/documentation/make_a_portable_installation.1337004945.txt.gz · Last modified: 2015/11/06 20:34 (external edit)
