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

Next revision
Previous revision
en:documentation:make_a_portable_installation [2012/05/14 16:15] – créée pchen: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 configuration is also written to the removable media so you retrieve your preferred settings on any 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.+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 15: Line 17:
 mkdir portable_skychart mkdir portable_skychart
 cd \portable_skychart cd \portable_skychart
 +mkdir Ciel
 </code> </code>
  
-You need a specific program to extract the files from the Windows installer without to run it.\\ +**2)** Download the Skychart  **Windows zip** from the [[en:download|Download]] pageSave the zip file in the folder **E:\portable_skychart\Ciel\**.
-But if you have already installed the Skychart software at a version more recent than 3.7-2196 on a computer you can copy the folder "C:\Program Files\Ciel" to "E:\portable_skychart\skychart" and skip to step 8)+
  
-**2)** Get innounp from http://sourceforge.net/projects/innounp/files/ and put the file in E:\portable_skychart :+**3)** Extract the zip file in this folder: 
 +<code>cd \portable_skychart\Ciel 
 +unzip skychart-3.8-2450-windows.zip  
 +</code>
  
-**3)** To extract the files use 7zip or the following command line+**4)** Create a folder for the program configuration
-<code>unrar e innounp036.rar</code>+<code>cd \portable_skychart 
 +mkdir userdata</code>
  
-**4)** 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 
  
-**5)** Extract the CdC files without running the installer:  +**5)** Create a startup script: 
-<code>innounp.exe -x skychart-3.7-2196-windows.exe</code>+<code>cd \portable_skychart 
 +notepad skychart.cmd</code> 
 +Copy the following lines and save the file
 +<file>@ECHO off 
 +set basedir=%CD% 
 +start %basedir%\Ciel\skychart.exe --config="%basedir%\userdata\skychart.ini" --userdir="%basedir%\userdata" 
 +    
 +</file>
  
-**6)** Rename the application directory: +Now you can plug this USB stick on any (Windowscomputer and run the program with a double click on skychart.cmd. 
-<code>move {app} skychart</code>+
  
-**7)** Delete the unneeded files: +===== Optional steps =====
-<code>del innounp036.rar  innounp.exe innounp.htm install_script.iss skychart-3.7-2196-windows.exe +
-rmdir /S {userappdata}</code>+
  
-**8)** Create a folder for the program configuration: +==== Do not let any trace in the registry ====
-<code> +
-cd \portable_skychart +
-mkdir userdata</code>+
  
-**9)** If you not want to let any trace in the registry of the computer you need to inactivate the server functionality. Otherwise you can skip to step 10):+If you not want to let any trace in the registry of the computer you need to inactivate the server functionality. Otherwise a registry key indicating the connection port is created.
 <code>cd userdata <code>cd userdata
 notepad skychart.ini</code> notepad skychart.ini</code>
-Type the following and save the file:+Locate the line starting with AutostartServer, set the following and save the file:
 <file>[main] <file>[main]
 AutostartServer=0</file> AutostartServer=0</file>
  
-**10)** Create startup script: +==== Copy the program setting ==== 
-<code>cd \portable_skychart + 
-notepad skychart.cmd</code> +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: + 
-<file>@ECHO off +Another option is to save and reload a chart using the menu File/Save as , File/Open. 
-set basedir=%CD% + 
-start %basedir%\skychart\skychart.exe --config="%basedir%\userdata\skychart.ini" --userdir="%basedir%\userdata"+ 
 +==== 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> </file>
  
-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: 
 +<code> 
 +cd /media/my-usb-key/portable_skychart 
 +bash skychart.sh 
 +</code>
  
  
en/documentation/make_a_portable_installation.1337004945.txt.gz · Last modified: 2015/11/06 20:34 (external edit)