User Tools

Site Tools


en:documentation:make_a_portable_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:documentation:make_a_portable_installation [2012/05/26 11:32] pchen:documentation:make_a_portable_installation [2015/11/06 20:43] (current) – external edit 127.0.0.1
Line 2: Line 2:
 ======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 configuration is also written to the removable media so you retrieve your preferred settings on any computer.\\ 
-This require a version more recent than 3.7-2196 to properly handle any change in the media mount point on different computer.+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 for an easy setup.+The example is given here for Windows but you can do almost the same on Linux, in this case use the tar installer for an easy setup. \\  
 +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 17: Line 17:
 mkdir portable_skychart mkdir portable_skychart
 cd \portable_skychart cd \portable_skychart
 +mkdir Ciel
 </code> </code>
  
-**2)** Copy the program code: +**2)** Download the Skychart  **Windows zip** from the [[en:download|Download]] page. Save the zip file in the folder **E:\portable_skychart\Ciel\**.
-<code>xcopy /S "C:\Program Files\Ciel\*"  Ciel\ +
-</code> +
-If you not want to install the Skychart software on your computer, see the additional steps [[#Extract_Skychart_without_running_the_installer_setup|below]]+
  
 +**3)** Extract the zip file in this folder:
 +<code>cd \portable_skychart\Ciel
 +unzip skychart-3.8-2450-windows.zip 
 +</code>
  
-**3)** Create a folder for the program configuration:+**4)** Create a folder for the program configuration:
 <code>cd \portable_skychart <code>cd \portable_skychart
 mkdir userdata</code> mkdir userdata</code>
  
  
-**4)** Create a startup script:+**5)** Create a startup script:
 <code>cd \portable_skychart <code>cd \portable_skychart
 notepad skychart.cmd</code> notepad skychart.cmd</code>
-Type the following and save the file:+Copy the following lines and save the file:
 <file>@ECHO off <file>@ECHO off
 set basedir=%CD% set basedir=%CD%
 start %basedir%\Ciel\skychart.exe --config="%basedir%\userdata\skychart.ini" --userdir="%basedir%\userdata" start %basedir%\Ciel\skychart.exe --config="%basedir%\userdata\skychart.ini" --userdir="%basedir%\userdata"
 +   
 </file> </file>
  
Line 42: Line 45:
  
 ===== Optional steps ===== ===== Optional steps =====
- 
-==== Extract Skychart without running the installer setup ==== 
- 
-You need a specific program to extract the files from the Windows installer without to run it.\\ 
- 
-**1)** Get innounp from http://sourceforge.net/projects/innounp/files/ and put the file in E:\portable_skychart : 
- 
-**2)** To extract the files use 7zip or the following command line: 
-<code>unrar e innounp036.rar</code> 
- 
-**3)** Get CdC windows installer from http://ap-i.net/skychart \\ 
-A portable install require a version more recent than 3.7-2196. Copy the file in E:\portable_skychart 
- 
-**4)** Extract the CdC files without running the installer:  
-<code>innounp.exe -x skychart-3.7-2196-windows.exe</code> 
- 
-**5)** Rename the application directory: 
-<code>move {app} Ciel</code> 
- 
-**6)** Delete the unneeded files: 
-<code>del innounp036.rar  innounp.exe innounp.htm install_script.iss skychart-3.7-2196-windows.exe 
-rmdir /S {userappdata}</code> 
- 
  
 ==== Do not let any trace in the registry ==== ==== Do not let any trace in the registry ====
Line 77: Line 57:
 ==== Copy the program setting ==== ==== Copy the program setting ====
  
-Since skychart-3.7-2196 it is possible to copy the configuration file [[directories_and_files|skychart.ini]] from an existing installation to the userdata folder.+Since the version 3.it is possible to copy the configuration file [[directories_and_files|skychart.ini]] from an existing installation to the userdata folder.
  
 Another option is to save and reload a chart using the menu File/Save as , File/Open. Another option is to save and reload a chart using the menu File/Save as , File/Open.
 +
 +
 +==== Make a script to run on Linux with Wine ====
 +
 +Mount the configured USB key on your Linux system.
 +
 +<code>cd /media/my-usb-key/portable_skychart
 +vi skychart.sh</code>
 +Copy the following lines and save the file:
 +<file>
 +#!/bin/bash
 +wine cmd /C skychart.cmd
 +   
 +</file>
 +
 +As you cannot set the executable bit on a FAT file system do the following to run:
 +<code>
 +cd /media/my-usb-key/portable_skychart
 +bash skychart.sh
 +</code>
 +
  
en/documentation/make_a_portable_installation.1338024751.txt.gz · Last modified: 2015/11/06 20:35 (external edit)