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/25 10:20] 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"  skychart\ +
-</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%\skychart\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 43: Line 46:
 ===== Optional steps ===== ===== Optional steps =====
  
-==== Extract Skychart without running the installer setup ====+==== Do not let any trace in the registry ====
  
-You need a specific program to extract the files from the Windows installer without to run it.\\+If you not want to let any trace in the registry of the computer you need to inactivate the server functionalityOtherwise a registry key indicating the connection port is created. 
 +<code>cd userdata 
 +notepad skychart.ini</code> 
 +Locate the line starting with AutostartServer, set the following and save the file: 
 +<file>[main] 
 +AutostartServer=0</file>
  
-**1)** Get innounp from http://sourceforge.net/projects/innounp/files/ and put the file in E:\portable_skychart :+==== Copy the program setting ====
  
-**2)** To extract the files use 7zip or the following command line: +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.
-<code>unrar e innounp036.rar</code>+
  
-**3)** Get CdC windows installer from http://ap-i.net/skychart \\ +Another option is to save and reload a chart using the menu File/Save as , File/Open.
-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: +==== Make a script to run on Linux with Wine ====
-<code>move {app} skychart</code>+
  
-**6)** Delete the unneeded files: +Mount the configured USB key on your Linux system.
-<code>del innounp036.rar  innounp.exe innounp.htm install_script.iss skychart-3.7-2196-windows.exe +
-rmdir /S {userappdata}</code>+
  
 +<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>
  
-==== Do not let any trace in the registry ====+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>
  
-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 
-notepad skychart.ini</code> 
-Locate the line starting with AutostartServer, set the following and save the file: 
-<file>[main] 
-AutostartServer=0</file> 
  
en/documentation/make_a_portable_installation.1337934040.txt.gz · Last modified: 2015/11/06 20:33 (external edit)