summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/mac-osx/dmg-generator/AdiumApplescriptRunnerbin0 -> 18612 bytes
-rw-r--r--packaging/mac-osx/dmg-generator/Artwork/Anonymous_aiga_left_arrow.svg54
-rw-r--r--packaging/mac-osx/dmg-generator/Artwork/dmgBackground.pngbin0 -> 118847 bytes
-rw-r--r--packaging/mac-osx/dmg-generator/Artwork/dmgBackground.svg196
-rw-r--r--packaging/mac-osx/dmg-generator/Makefile40
-rw-r--r--packaging/mac-osx/dmg-generator/RightDS_Storebin0 -> 12292 bytes
-rw-r--r--packaging/mac-osx/dmg-generator/dmg_kicad.scptbin0 -> 15724 bytes
-rwxr-xr-xpackaging/mac-osx/dmg-generator/make-diskimage.sh78
-rwxr-xr-xpackaging/mac-osx/dmg-generator/mkaliasbin0 -> 34552 bytes
-rw-r--r--packaging/windows/nsis/Dutch.nsh28
-rw-r--r--packaging/windows/nsis/English.nsh28
-rw-r--r--packaging/windows/nsis/French.nsh31
-rw-r--r--packaging/windows/nsis/Installer Docs.odtbin0 -> 38520 bytes
-rw-r--r--packaging/windows/nsis/Italian.nsh31
-rw-r--r--packaging/windows/nsis/Japanese.nsh28
-rw-r--r--packaging/windows/nsis/Polish.nsh28
-rw-r--r--packaging/windows/nsis/Portuguese.nsh30
-rw-r--r--packaging/windows/nsis/Russian.nsh30
-rw-r--r--packaging/windows/nsis/Spanish.nsh31
-rw-r--r--packaging/windows/nsis/install.icobin0 -> 3638 bytes
-rw-r--r--packaging/windows/nsis/install.nsi304
-rw-r--r--packaging/windows/nsis/uninstall.icobin0 -> 3638 bytes
22 files changed, 937 insertions, 0 deletions
diff --git a/packaging/mac-osx/dmg-generator/AdiumApplescriptRunner b/packaging/mac-osx/dmg-generator/AdiumApplescriptRunner
new file mode 100755
index 0000000..4665eee
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/AdiumApplescriptRunner
Binary files differ
diff --git a/packaging/mac-osx/dmg-generator/Artwork/Anonymous_aiga_left_arrow.svg b/packaging/mac-osx/dmg-generator/Artwork/Anonymous_aiga_left_arrow.svg
new file mode 100644
index 0000000..d91b1c3
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/Artwork/Anonymous_aiga_left_arrow.svg
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg height="360.609" id="svg3578" inkscape:version="0.41" sodipodi:docbase="/datas/Projs/Cliparts Stocker/tmp/AIGA" sodipodi:docname="AIGA_Left_Arrow_1.svg" sodipodi:version="0.32" width="431.322" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg">
+ <metadata>
+ <rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+ <cc:Work rdf:about="">
+ <dc:title>AIGA_Symbol_Signs</dc:title>
+ <dc:description>EPS converted from http://aiga.org</dc:description>
+ <dc:subject>
+ <rdf:Bag>
+ <rdf:li>symbol</rdf:li>
+ <rdf:li>mapsym</rdf:li>
+ </rdf:Bag>
+ </dc:subject>
+ <dc:publisher>
+ <cc:Agent rdf:about="http://www.openclipart.org/">
+ <dc:title>Open Clip Art Library</dc:title>
+ </cc:Agent>
+ </dc:publisher>
+ <dc:creator>
+ <cc:Agent>
+ <dc:title>Jean-Victor Balin</dc:title>
+ </cc:Agent>
+ </dc:creator>
+ <dc:rights>
+ <cc:Agent>
+ <dc:title>Jean-Victor Balin</dc:title>
+ </cc:Agent>
+ </dc:rights>
+ <dc:date/>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+ <cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
+ <dc:language>en</dc:language>
+ </cc:Work>
+ <cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
+ <cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
+ <cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
+ <cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
+ </cc:License>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview bordercolor="#666666" borderopacity="1.0" id="base" inkscape:current-layer="svg3578" inkscape:cx="305.25953" inkscape:cy="417.84947" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="543" inkscape:window-width="640" inkscape:window-x="5" inkscape:window-y="70" inkscape:zoom="0.43415836" pagecolor="#ffffff"/>
+ <defs id="defs3580">
+ <marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10">
+ <path d="M 0 0 L 10 5 L 0 10 z" id="path3583"/>
+ </marker>
+ <marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10">
+ <path d="M 10 0 L 0 5 L 10 10 z" id="path3586"/>
+ </marker>
+ </defs>
+ <g id="g3588">
+ <path d="M 180.199 360.396L 0 180.197L 180.199 0L 299.048 0L 161.988 137.066L 431.322 137.066L 431.322 224.288L 162.946 224.288L 299.263 360.609L 180.199 360.396z" id="path3590" style="stroke: none; fill: rgb(0, 0, 0);"/>
+ </g>
+</svg> \ No newline at end of file
diff --git a/packaging/mac-osx/dmg-generator/Artwork/dmgBackground.png b/packaging/mac-osx/dmg-generator/Artwork/dmgBackground.png
new file mode 100644
index 0000000..d793778
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/Artwork/dmgBackground.png
Binary files differ
diff --git a/packaging/mac-osx/dmg-generator/Artwork/dmgBackground.svg b/packaging/mac-osx/dmg-generator/Artwork/dmgBackground.svg
new file mode 100644
index 0000000..2077006
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/Artwork/dmgBackground.svg
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ width="600"
+ height="400"
+ id="svg2826"
+ inkscape:version="0.47pre2 r22153"
+ sodipodi:docname="dmgBackground.svg"
+ inkscape:export-filename="/Users/jerry/Repositories/kicad/kicad/packaging/mac-osx/Artwork/dmgBackground.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90">
+ <metadata
+ id="metadata3059">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1280"
+ inkscape:window-height="706"
+ id="namedview3057"
+ showgrid="false"
+ inkscape:zoom="1.52"
+ inkscape:cx="238.73307"
+ inkscape:cy="136.65089"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2826" />
+ <defs
+ id="defs2828">
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 200 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="600 : 200 : 1"
+ inkscape:persp3d-origin="300 : 133.33333 : 1"
+ id="perspective3061" />
+ <linearGradient
+ id="linearGradient5348">
+ <stop
+ id="stop5350"
+ style="stop-color:#000000;stop-opacity:1"
+ offset="0" />
+ <stop
+ id="stop5352"
+ style="stop-color:#000000;stop-opacity:0"
+ offset="1" />
+ </linearGradient>
+ <linearGradient
+ x1="201.60388"
+ y1="60.693924"
+ x2="631.60358"
+ y2="60.693924"
+ id="linearGradient5356"
+ xlink:href="#linearGradient5348"
+ gradientUnits="userSpaceOnUse" />
+ <inkscape:perspective
+ id="perspective181503"
+ inkscape:persp3d-origin="478.34647 : 224.40944 : 1"
+ inkscape:vp_z="956.69293 : 336.61417 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 336.61417 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <inkscape:perspective
+ id="perspective550892"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <inkscape:perspective
+ id="perspective550919"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <inkscape:perspective
+ id="perspective3781"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <marker
+ viewBox="0 0 10 10"
+ refY="5"
+ refX="10"
+ orient="auto"
+ markerWidth="4"
+ markerUnits="strokeWidth"
+ markerHeight="3"
+ id="ArrowStart">
+ <path
+ id="path3586"
+ d="M 10 0 L 0 5 L 10 10 z" />
+ </marker>
+ <marker
+ viewBox="0 0 10 10"
+ refY="5"
+ refX="0"
+ orient="auto"
+ markerWidth="4"
+ markerUnits="strokeWidth"
+ markerHeight="3"
+ id="ArrowEnd">
+ <path
+ id="path3583"
+ d="M 0 0 L 10 5 L 0 10 z" />
+ </marker>
+ <inkscape:perspective
+ id="perspective3885"
+ inkscape:persp3d-origin="215.661 : 120.203 : 1"
+ inkscape:vp_z="431.32199 : 180.3045 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 180.3045 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ </defs>
+ <image
+ sodipodi:absref="/Applications/Inkscape.app/inkscape_pasted_image_20100116_171239.png"
+ y="-18.414894"
+ x="-113.0907"
+ id="image550894"
+ height="642"
+ width="889"
+ xlink:href="/Applications/Inkscape.app/inkscape_pasted_image_20100116_171239.png"
+ style="opacity:0.67901234"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
+ <g
+ transform="translate(0,-200)"
+ id="layer1">
+ <text
+ x="83.225609"
+ y="267.271"
+ transform="scale(1.0020366,0.99796753)"
+ id="text2836"
+ xml:space="preserve"
+ style="font-size:55.88646698px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:0.99797261;stroke-opacity:1;font-family:Chalkboard;-inkscape-font-specification:Bitstream Vera Sans Bold"><tspan
+ x="83.225609"
+ y="267.271"
+ id="tspan2838"
+ style="fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:0.99797261;stroke-opacity:1">KiCad EDA Suite</tspan></text>
+ </g>
+ <rect
+ style="opacity:0.77800000000000002;fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3811"
+ width="221.02962"
+ height="132.76646"
+ x="40.985184"
+ y="101.25256"
+ rx="1.0058786"
+ ry="0.37196189" />
+ <rect
+ style="opacity:0.778;fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:2.11835647;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ id="rect3813"
+ width="89.881645"
+ height="79.88163"
+ x="109.05918"
+ y="299.05923"
+ rx="1.1279253"
+ ry="0.38347483" />
+ <g
+ id="g3588"
+ transform="matrix(0,-0.1247889,0.1247889,0,128.5,294.01714)">
+ <path
+ style="fill:#000000;stroke:none"
+ id="path3590"
+ d="M 180.199,360.396 0,180.197 180.199,0 l 118.849,0 -137.06,137.066 269.334,0 0,87.222 -268.376,0 136.317,136.321 -119.064,-0.213 z" />
+ </g>
+</svg>
diff --git a/packaging/mac-osx/dmg-generator/Makefile b/packaging/mac-osx/dmg-generator/Makefile
new file mode 100644
index 0000000..c214afe
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/Makefile
@@ -0,0 +1,40 @@
+###########
+# KiCad OSX DMG packaging
+# Create a bin directory and copy the .app files in
+# Create a build directory
+# Then execute the makefile
+#
+# Original credits by Adium developers !
+# http://www.adium.im
+###########
+VERSION=`date +%Y%m%d`
+
+###########
+# Variables
+###########
+BUILD_DIR=build
+APP_DIR=release
+KICAD_DIR=$(BUILD_DIR)
+RELEASE_NAME=kicad-$(VERSION)
+
+###########
+# Targets
+###########
+all:
+ echo "Copying application bundles"
+ mkdir release
+ cp -R ../../../*/*.app release
+ echo "Building kicad-${VERSION}.dmg"
+ rm -rfv build
+ mkdir build
+
+ cp -r $(APP_DIR)/* $(BUILD_DIR)
+ mkdir -p $(BUILD_DIR)/.background
+ cp Artwork/dmgBackground.png $(BUILD_DIR)/.background
+ ./mkalias -r /Applications $(BUILD_DIR)/Applications
+
+ mkdir -p $(BUILD_DIR)/.background
+
+ ./make-diskimage.sh $(BUILD_DIR)/$(RELEASE_NAME).dmg $(KICAD_DIR) "KiCad" dmg_kicad.scpt $(ART_DIR)
+
+ @echo "Build finished. `md5 $(BUILD_DIR)/$(RELEASE_NAME).dmg`"
diff --git a/packaging/mac-osx/dmg-generator/RightDS_Store b/packaging/mac-osx/dmg-generator/RightDS_Store
new file mode 100644
index 0000000..ab19329
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/RightDS_Store
Binary files differ
diff --git a/packaging/mac-osx/dmg-generator/dmg_kicad.scpt b/packaging/mac-osx/dmg-generator/dmg_kicad.scpt
new file mode 100644
index 0000000..9e72fbe
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/dmg_kicad.scpt
Binary files differ
diff --git a/packaging/mac-osx/dmg-generator/make-diskimage.sh b/packaging/mac-osx/dmg-generator/make-diskimage.sh
new file mode 100755
index 0000000..062992b
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/make-diskimage.sh
@@ -0,0 +1,78 @@
+# Create a read-only disk image of the contents of a folder
+#
+# Usage: make-diskimage <image_file>
+# <src_folder>
+# <volume_name>
+# <applescript>
+# <artpath>
+# <eula_resource_file>
+
+set -e;
+
+DMG_DIRNAME=`dirname $1`
+DMG_DIR=`cd $DMG_DIRNAME > /dev/null; pwd`
+DMG_NAME=`basename $1`
+DMG_TEMP_NAME=${DMG_DIR}/rw.${DMG_NAME}
+SRC_FOLDER=`cd $2 > /dev/null; pwd`
+VOLUME_NAME=$3
+
+# optional arguments
+APPLESCRIPT=$4
+ART_PATH=$5
+EULA_RSRC=$6
+
+# Create the image
+echo "Creating disk image..."
+rm -f "${DMG_TEMP_NAME}"
+hdiutil create -srcfolder "${SRC_FOLDER}" -volname "${VOLUME_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW "${DMG_TEMP_NAME}"
+
+# mount it
+echo "Mounting disk image..."
+MOUNT_DIR="/Volumes/${VOLUME_NAME}"
+DEV_NAME=`hdiutil attach -readwrite -noverify -noautoopen "${DMG_TEMP_NAME}" | egrep '^/dev/' | sed 1q | awk '{print $1}'`
+
+cp RightDS_Store "/Volumes/${VOLUME_NAME}/.DS_Store"
+
+# run applescript
+if [ ! -z "${APPLESCRIPT}" -a "${APPLESCRIPT}" != "-null-" ]; then
+# osascript "${APPLESCRIPT}"
+ # pass the applescript our volume name and our artwork path, to its process_disk_image function
+ echo "Running Applescript: ./AdiumApplescriptRunner \"${APPLESCRIPT}\" process_disk_image \"${VOLUME_NAME}\""
+ ./AdiumApplescriptRunner "${APPLESCRIPT}" process_disk_image "${VOLUME_NAME}" "${ART_PATH}" || true
+ echo "Done running the applescript..."
+fi
+
+
+# run shell script
+# if [ ! -z "${SHELLSCRIPT}" -a "${SHELLSCRIPT}" != "-null-" ]; then
+# ./${SHELLSCRIPT} \"${VOLUME_NAME}\"
+# fi
+
+# make sure it's not world writeable
+echo "Fixing permissions..."
+chmod -Rf go-w "${MOUNT_DIR}" || true
+
+# make the top window open itself on mount:
+if [ -x /usr/local/bin/openUp ]; then
+ /usr/local/bin/openUp "${MOUNT_DIR}"
+fi
+
+# unmount
+echo "Unmounting disk image..."
+hdiutil detach "${DEV_NAME}"
+
+# compress image
+echo "Compressing disk image..."
+hdiutil convert "${DMG_TEMP_NAME}" -format UDBZ -o "${DMG_DIR}/${DMG_NAME}"
+rm -f "${DMG_TEMP_NAME}"
+
+# adding EULA resources
+if [ ! -z "${EULA_RSRC}" -a "${EULA_RSRC}" != "-null-" ]; then
+ echo "adding EULA resources"
+ hdiutil unflatten "${DMG_DIR}/${DMG_NAME}"
+ /Developer/Tools/ResMerger -a "${EULA_RSRC}" -o "${DMG_DIR}/${DMG_NAME}"
+ hdiutil flatten "${DMG_DIR}/${DMG_NAME}"
+fi
+
+echo "Disk image done"
+exit 0
diff --git a/packaging/mac-osx/dmg-generator/mkalias b/packaging/mac-osx/dmg-generator/mkalias
new file mode 100755
index 0000000..69a5fd9
--- /dev/null
+++ b/packaging/mac-osx/dmg-generator/mkalias
Binary files differ
diff --git a/packaging/windows/nsis/Dutch.nsh b/packaging/windows/nsis/Dutch.nsh
new file mode 100644
index 0000000..3a28300
--- /dev/null
+++ b/packaging/windows/nsis/Dutch.nsh
@@ -0,0 +1,28 @@
+;Additional text definitions for Dutch
+
+;File name of license file
+LicenseLangString MUILicense ${LANG_DUTCH} "..\COPYRIGHT.txt"
+
+;Component option
+LangString TITLE_SEC01 ${LANG_DUTCH} "Hoofdprogramma"
+LangString TITLE_SEC02 ${LANG_DUTCH} "Bibliotheken en componenten"
+LangString TITLE_SEC03 ${LANG_DUTCH} "Voorbeeld projecten"
+LangString TITLE_SEC04 ${LANG_DUTCH} "Help bestanden"
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_DUTCH} "Hoofdprogramma bestanden."
+LangString DESC_SEC02 ${LANG_DUTCH} "Libraries and components are required unless they have been previously installed."
+LangString DESC_SEC03 ${LANG_DUTCH} "Verschillende voorbeelden en tutorials."
+LangString DESC_SEC04 ${LANG_DUTCH} "Help bestanden in pdf formaat."
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_DUTCH} "Voor het bewerken of creeeren van 3D modellen moet u Wings3D installeren. \
+Wings3D en de gebruikershandleiding kunt u vrij downloaden van de Wings3D webpagina Check this box to open the Wings3D web page"
+
+LangString UNINST_PROMPT ${LANG_DUTCH} "Are you sure you want to completely remove $(^Name) and all of its components? $\n\
+This will also remove all modified and new files, libraries and modules in the program directory"
+
+LangString UNINST_SUCCESS ${LANG_DUTCH} "$(^Name) was succesvol verwijderd van uw computer."
+LangString INSTALLER_RUNNING ${LANG_DUTCH} "De installer is al actief."
+LangString UNINSTALLER_RUNNING ${LANG_DUTCH} "De uninstaller is al actief."
+LangString ALREADY_INSTALLED ${LANG_DUTCH} "${PRODUCT_NAME} is al geinstalleerd. Installatie van dit pakket overschrijft de bestaande versie. Wilt u doorgaan?"
diff --git a/packaging/windows/nsis/English.nsh b/packaging/windows/nsis/English.nsh
new file mode 100644
index 0000000..c3b5263
--- /dev/null
+++ b/packaging/windows/nsis/English.nsh
@@ -0,0 +1,28 @@
+;Additional text definitions for English
+
+;File name of license file
+LicenseLangString MUILicense ${LANG_ENGLISH} "..\COPYRIGHT.txt"
+
+;Component option
+LangString TITLE_SEC01 ${LANG_ENGLISH} "Main application"
+LangString TITLE_SEC02 ${LANG_ENGLISH} "Libraries and components"
+LangString TITLE_SEC03 ${LANG_ENGLISH} "Demonstration projects"
+LangString TITLE_SEC04 ${LANG_ENGLISH} "Help files"
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_ENGLISH} "Main application files."
+LangString DESC_SEC02 ${LANG_ENGLISH} "Libraries and components are required unless they have been previously installed."
+LangString DESC_SEC03 ${LANG_ENGLISH} "Some demonstration projects and tutorials."
+LangString DESC_SEC04 ${LANG_ENGLISH} "Help files in pdf format."
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_ENGLISH} "To edit or create 3D object models you need to install Wings3D. \
+Wings3D and user manual can be download free from the Wings3D web page Check this box to open the Wings3D web page"
+
+LangString UNINST_PROMPT ${LANG_ENGLISH} "Are you sure you want to completely remove $(^Name) and all of its components? $\n\
+This will also remove all modified and new files, libraries and modules in the program directory"
+
+LangString UNINST_SUCCESS ${LANG_ENGLISH} "$(^Name) was successfully removed from your computer."
+LangString INSTALLER_RUNNING ${LANG_ENGLISH} "The installer is already running."
+LangString UNINSTALLER_RUNNING ${LANG_ENGLISH} "The uninstaller is already running."
+LangString ALREADY_INSTALLED ${LANG_ENGLISH} "${PRODUCT_NAME} is already installed. Install this package will overwrite existing files. Do you want to continue?"
diff --git a/packaging/windows/nsis/French.nsh b/packaging/windows/nsis/French.nsh
new file mode 100644
index 0000000..22e455c
--- /dev/null
+++ b/packaging/windows/nsis/French.nsh
@@ -0,0 +1,31 @@
+;Additional text definitions for French
+;These text definition have been translated from English using an automated translation tool
+;Please correct as required
+
+;file name of license file
+LicenseLangString MUILicense ${LANG_FRENCH} "..\COPYRIGHT.txt"
+
+;Component options
+LangString TITLE_SEC01 ${LANG_FRENCH} "Application principale"
+LangString TITLE_SEC02 ${LANG_FRENCH} "Bibliothques et composants"
+LangString TITLE_SEC03 ${LANG_FRENCH} "Demos"
+LangString TITLE_SEC04 ${LANG_FRENCH} "Dossiers d'aide"
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_FRENCH} "Dossiers de base."
+LangString DESC_SEC02 ${LANG_FRENCH} "Les bibliothques sont ncessaires moins d'avoir t prcdemment installes."
+LangString DESC_SEC03 ${LANG_FRENCH} "Quelques dossiers de demonstration."
+LangString DESC_SEC04 ${LANG_FRENCH} "Dossiers d'aide."
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_FRENCH} "Pour diter ou crer des modles 3D des modules PCB, vous devez installer Wings3D. \
+Wings3D et manuel d'utilisateur peuvent tre tlchargement librement de la page Web de Wings3D.\
+Cochez cette bote pour acceder la page Web de Wings3D."
+
+LangString UNINST_PROMPT ${LANG_FRENCH} "tes-vous sr de vouloir enlever compltement ${PRODUCT_NAME} et tous ses composants ? $\n\
+Ceci enlvera galement tous les dossiers, bibliothques et modules modifis et nouveaux dans le repertoire $(^name)"
+
+LangString UNINST_SUCCESS ${LANG_FRENCH} "$(^Name) a t avec succs enlev partir de votre ordinateur."
+LangString INSTALLER_RUNNING ${LANG_FRENCH} "L'installateur fonctionne dj."
+LangString UNINSTALLER_RUNNING ${LANG_FRENCH} "Le desinstalleur fonctionne dj."
+LangString ALREADY_INSTALLED ${LANG_FRENCH} "${PRODUCT_NAME} est dj install. Installer ce paquet remplacera les dossiers existants. Voulez-vous continuer ?"
diff --git a/packaging/windows/nsis/Installer Docs.odt b/packaging/windows/nsis/Installer Docs.odt
new file mode 100644
index 0000000..ede456e
--- /dev/null
+++ b/packaging/windows/nsis/Installer Docs.odt
Binary files differ
diff --git a/packaging/windows/nsis/Italian.nsh b/packaging/windows/nsis/Italian.nsh
new file mode 100644
index 0000000..606c066
--- /dev/null
+++ b/packaging/windows/nsis/Italian.nsh
@@ -0,0 +1,31 @@
+;Additional text definitions for Italian
+;These text definition have been translated from English using an automated translation tool
+;Please correct as required
+
+;File name of license file
+LicenseLangString MUILicense ${LANG_ITALIAN} "..\COPYRIGHT.txt"
+
+;Component option
+LangString TITLE_SEC01 ${LANG_ITALIAN} "Applicazione principale"
+LangString TITLE_SEC02 ${LANG_ITALIAN} "Biblioteche e componenti"
+LangString TITLE_SEC03 ${LANG_ITALIAN} "Progetti Demostration"
+LangString TITLE_SEC04 ${LANG_ITALIAN} "Lime di aiuto"
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_ITALIAN} "Lime di applicazione principale."
+LangString DESC_SEC02 ${LANG_ITALIAN} "Le biblioteche ed i componenti sono richiesti a meno che precedentemente siano state installate."
+LangString DESC_SEC03 ${LANG_ITALIAN} "Alcuni progetti e lezioni private di demostration."
+LangString DESC_SEC04 ${LANG_ITALIAN} "Lime di aiuto."
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_ITALIAN} "Per pubblicare o generare i modelli che dell'oggetto 3D dovete installare Wings3D. \
+Wings3D ed il manuale di utente possono provenire trasferimento dal sistema centrale verso i satelliti liberamente dal Web \
+page di Wings3D. Controlli questa scatola per aprire il Web page di Wings3D."
+
+LangString UNINST_PROMPT ${LANG_ITALIAN} "Siete sicuri voi desiderate completamente rimuovere $(^name) e tutti i relativi componenti? $\n\
+Ci inoltre rimuover tutti i lime, biblioteche e moduli modificati e nuovi nell'indice di programma"
+
+LangString UNINST_SUCCESS ${LANG_ITALIAN} "$(^Name) con successo stato rimosso dal vostro calcolatore."
+LangString INSTALLER_RUNNING ${LANG_ITALIAN} "L'installatore gi sta funzionando."
+LangString UNINSTALLER_RUNNING ${LANG_ITALIAN} "Il uninstaller gi sta funzionando."
+LangString ALREADY_INSTALLED ${LANG_ITALIAN} "${product_name} gi installato. Installi questo pacchetto scriver sopra le lime attuali. Desiderate continuare?"
diff --git a/packaging/windows/nsis/Japanese.nsh b/packaging/windows/nsis/Japanese.nsh
new file mode 100644
index 0000000..97cb0ae
--- /dev/null
+++ b/packaging/windows/nsis/Japanese.nsh
@@ -0,0 +1,28 @@
+;Additional text definitions for Japanese
+
+;File name of license file
+LicenseLangString MUILicense ${LANG_JAPANESE} "..\COPYRIGHT.txt"
+
+;Component option
+LangString TITLE_SEC01 ${LANG_JAPANESE} "C AvP[V"
+LangString TITLE_SEC02 ${LANG_JAPANESE} "CuƃR|[lg"
+LangString TITLE_SEC03 ${LANG_JAPANESE} "fXg[V vWFNg"
+LangString TITLE_SEC04 ${LANG_JAPANESE} "wv t@C"
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_JAPANESE} "C AvP[V t@C"
+LangString DESC_SEC02 ${LANG_JAPANESE} "CuƃR|[lg͈ȑOCXg[ĂȂꍇKvłB"
+LangString DESC_SEC03 ${LANG_JAPANESE} "fXg[Vt@Cƃ`[gA"
+LangString DESC_SEC04 ${LANG_JAPANESE} "PDF`̃wvt@C"
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_JAPANESE} "3DIuWFNgf̍쐬AҏWs߂ɂ Wings3DCXg[Kv܂B\
+Wings3D ƃ[U[}jÁÃ{bNXɃ`FbN Wings3D EFuy[W JƂŃ_E[hł܂B"
+
+LangString UNINST_PROMPT ${LANG_JAPANESE} "$(^Name) ƑSẴR|[lgSɍ폜܂BXł $\n\
+̑͑SĂ̐Vt@CACꂽt@CAvOfBNg̃CuƃW[폜܂B"
+
+LangString UNINST_SUCCESS ${LANG_JAPANESE} "$(^Name) ͂Ȃ̃Rs[^犮Sɍ폜܂B"
+LangString INSTALLER_RUNNING ${LANG_JAPANESE} "CXg[͊ɋNĂ܂B"
+LangString UNINSTALLER_RUNNING ${LANG_JAPANESE} "ACXg[͊ɋNĂ܂B"
+LangString ALREADY_INSTALLED ${LANG_JAPANESE} "${PRODUCT_NAME} ͊ɃCXg[Ă܂B̃pbP[WCXg[͊̃t@C㏑܂BƂ𑱂܂H"
diff --git a/packaging/windows/nsis/Polish.nsh b/packaging/windows/nsis/Polish.nsh
new file mode 100644
index 0000000..74a4525
--- /dev/null
+++ b/packaging/windows/nsis/Polish.nsh
@@ -0,0 +1,28 @@
+;Additional text definitions for Polish
+
+;File name of license file
+LicenseLangString MUILicense ${LANG_POLISH} "..\COPYRIGHT.txt"
+
+;Component option
+LangString TITLE_SEC01 ${LANG_POLISH} "Pliki aplikacji"
+LangString TITLE_SEC02 ${LANG_POLISH} "Biblioteki i elementy"
+LangString TITLE_SEC03 ${LANG_POLISH} "Przykadowe projekty"
+LangString TITLE_SEC04 ${LANG_POLISH} "Pliki pomocy."
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_POLISH} "Gwne pliki aplikacji."
+LangString DESC_SEC02 ${LANG_POLISH} "Biblioteki i elementy s potrzebne jeeli wczeniej nie zostay zainstalowane."
+LangString DESC_SEC03 ${LANG_POLISH} "Kilka przykadowych projektw i tutoriali."
+LangString DESC_SEC04 ${LANG_POLISH} "Pliki pomocy."
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_POLISH} "Aby edytowa lub tworzy modele obiektw 3D musisz zainstalowa Wings3D. \
+Wings3D oraz instrukcja obsugi mog zosta pobrane za darmo ze strony Wings3D. Zaznacz t opcj, aby otworzy stron gwn Wings3D"
+
+LangString UNINST_PROMPT ${LANG_POLISH} "Czy jeste pewny, e chcesz usun $(^Name) i jego wszystkie komponenty? $\n\
+Zostan rwnie usunite wszystkie zmodyfikowane i nowe pliki, biblioteki i moduy znajdujce si w katalogu programu"
+
+LangString UNINST_SUCCESS ${LANG_POLISH} "$(^Name) zosta pomylnie usunity z twojego komputera."
+LangString INSTALLER_RUNNING ${LANG_POLISH} "Instalator jest ju uruchomiony."
+LangString UNINSTALLER_RUNNING ${LANG_POLISH} "Deinstalator jest ju uruchomiony."
+LangString ALREADY_INSTALLED ${LANG_POLISH} "${PRODUCT_NAME} jest ju zainstalowany. Ponowna instalacja nadpisze istniejce pliki. Czy kontynuowa?"
diff --git a/packaging/windows/nsis/Portuguese.nsh b/packaging/windows/nsis/Portuguese.nsh
new file mode 100644
index 0000000..860f156
--- /dev/null
+++ b/packaging/windows/nsis/Portuguese.nsh
@@ -0,0 +1,30 @@
+;Additional text definitions for Portuguese
+;These text definition have been translated from English using an automated translation tool
+;Please correct as required
+
+;File name of license file
+LicenseLangString MUILicense ${LANG_PORTUGUESE} "..\COPYRIGHT.txt"
+
+;Component option
+LangString TITLE_SEC01 ${LANG_PORTUGUESE} "Aplicativo principal"
+LangString TITLE_SEC02 ${LANG_PORTUGUESE} "Bibliotecas e componentes"
+LangString TITLE_SEC03 ${LANG_PORTUGUESE} "Projetos de Demostrao"
+LangString TITLE_SEC04 ${LANG_PORTUGUESE} "Arquivos de ajuda"
+
+;Component option descriptions
+LangString DESC_SEC01 ${LANG_PORTUGUESE} "Arquivos do aplicativo principal."
+LangString DESC_SEC02 ${LANG_PORTUGUESE} "As bibliotecas e os componentes so necessrios, a menos se j foram instalados previamente."
+LangString DESC_SEC03 ${LANG_PORTUGUESE} "Alguns projetos e tutoriais de demonstrao."
+LangString DESC_SEC04 ${LANG_PORTUGUESE} "Arquivos de ajuda."
+
+;General messages
+LangString WINGS3D_PROMPT ${LANG_PORTUGUESE} "Para editar ou criar modelos de objetos 3D voc necessita instalar o Wings3D. \
+Wings3D e o manual de usurio podem ser baixados livremente da Web page do Wings3D. Marque esta caixa para abrir a Web page do Wings3D."
+
+LangString UNINST_PROMPT ${LANG_PORTUGUESE} "Voc est certo que quer remover completamente $(^Name) e todos seus componentes? $\n\
+Isto remover tambm todos os arquivos, bibliotecas e mdulos modificados, e novos no diretrio do programa"
+
+LangString UNINST_SUCCESS ${LANG_PORTUGUESE} "$(^Name) foi removido com sucesso de seu computador."
+LangString INSTALLER_RUNNING ${LANG_PORTUGUESE} "O instalador j est executando."
+LangString UNINSTALLER_RUNNING ${LANG_PORTUGUESE} "O uninstaller j est executando."
+LangString ALREADY_INSTALLED ${LANG_PORTUGUESE} "${product_name} j est instalado. Instalar este pacote ir sobrepor os arquivos existentes. Voc quer continuar?"
diff --git a/packaging/windows/nsis/Russian.nsh b/packaging/windows/nsis/Russian.nsh
new file mode 100644
index 0000000..c5e5c1c
--- /dev/null
+++ b/packaging/windows/nsis/Russian.nsh
@@ -0,0 +1,30 @@
+;Additional text definitions for French
+
+;file name of license file
+LicenseLangString MUILicense ${LANG_RUSSIAN} "..\COPYRIGHT.txt"
+
+;component option
+LangString TITLE_SEC01 ${LANG_RUSSIAN} " "
+LangString TITLE_SEC02 ${LANG_RUSSIAN} " "
+LangString TITLE_SEC03 ${LANG_RUSSIAN} " "
+LangString TITLE_SEC04 ${LANG_RUSSIAN} " "
+
+;component option descriptions
+LangString DESC_SEC01 ${LANG_RUSSIAN} " ."
+LangString DESC_SEC02 ${LANG_RUSSIAN} " ."
+LangString DESC_SEC03 ${LANG_RUSSIAN} " ."
+LangString DESC_SEC04 ${LANG_RUSSIAN} " ."
+
+;warning messages
+LangString WINGS3D_PROMPT ${LANG_RUSSIAN} " , 3D Wings3D. \
+Wings3D download web page Wings3D \
+ web page Wings3D."
+
+LangString UNINST_PROMPT ${LANG_RUSSIAN} " $(^name) ? $\n \
+ , "
+
+LangString UNINST_SUCCESS ${LANG_RUSSIAN} "$(^name) ."
+LangString INSTALLER_RUNNING ${LANG_RUSSIAN} " ."
+LangString UNINSTALLER_RUNNING ${LANG_RUSSIAN} " ."
+LangString ALREADY_INSTALLED ${LANG_RUSSIAN} "${product_name} . overwrite existing . \
+ ?"
diff --git a/packaging/windows/nsis/Spanish.nsh b/packaging/windows/nsis/Spanish.nsh
new file mode 100644
index 0000000..1c023de
--- /dev/null
+++ b/packaging/windows/nsis/Spanish.nsh
@@ -0,0 +1,31 @@
+;Additional text definitions for Spanish
+;These text definition have been translated from English using an automated translation tool
+;Please correct as required
+
+;file name of license file
+LicenseLangString MUILicense ${LANG_SPANISH} "..\COPYRIGHT.txt"
+
+;component option
+LangString TITLE_SEC01 ${LANG_SPANISH} "Uso principal"
+LangString TITLE_SEC02 ${LANG_SPANISH} "Bibliotecas y componentes"
+LangString TITLE_SEC03 ${LANG_SPANISH} "Proyectos de Demostration"
+LangString TITLE_SEC04 ${LANG_SPANISH} "Archivos de la ayuda"
+
+;component option descriptions
+LangString DESC_SEC01 ${LANG_SPANISH} "Archivos del uso principal."
+LangString DESC_SEC02 ${LANG_SPANISH} "Se requieren las bibliotecas y los componentes a menos que hayan estado instaladas previamente."
+LangString DESC_SEC03 ${LANG_SPANISH} "Algunos proyectos y clases particulares del demostration."
+LangString DESC_SEC04 ${LANG_SPANISH} "Archivos de la ayuda."
+
+;warning messages
+LangString WINGS3D_PROMPT ${LANG_SPANISH} "Para corregir o crear modelos del objeto 3D que usted necesita instalar Wings3D. \
+Wings3D y el manual de usuario pueden ser transferencia directa libremente del Web page de Wings3D. Compruebe esta caja \
+para abrir el Web page de Wings3D."
+
+LangString UNINST_PROMPT ${LANG_SPANISH} "Es usted seguro usted desea quitar totalmente $(^name) y todos sus componentes? $\n\
+Esto tambin quitar todos los archivos, bibliotecas y mdulos modificados y nuevos en el directorio del programa."
+
+LangString UNINST_SUCCESS ${LANG_SPANISH} "$(^Name) fue quitado con xito de su computadora."
+LangString INSTALLER_RUNNING ${LANG_SPANISH} "El instalador est funcionando ya."
+LangString UNINSTALLER_RUNNING ${LANG_SPANISH} "El uninstaller est funcionando ya."
+LangString ALREADY_INSTALLED ${LANG_SPANISH} "${product_name} est instalado ya. Instale este paquete sobreescribir archivos existentes. Usted desea continuar?"
diff --git a/packaging/windows/nsis/install.ico b/packaging/windows/nsis/install.ico
new file mode 100644
index 0000000..bc25e62
--- /dev/null
+++ b/packaging/windows/nsis/install.ico
Binary files differ
diff --git a/packaging/windows/nsis/install.nsi b/packaging/windows/nsis/install.nsi
new file mode 100644
index 0000000..5e93e99
--- /dev/null
+++ b/packaging/windows/nsis/install.nsi
@@ -0,0 +1,304 @@
+; Installation script for KiCad generated by Alastair Hoyle
+;
+; This installation script requires NSIS (Nullsoft Scriptable Install System) version 2.18 http://nsis.sourceforge.net/Main_Page
+; This script was created with HM NIS Edit version 2.0.3 http://hmne.sourceforge.net/
+;
+; This script is provided as is with no warranties and has only been tested on Windows XP.
+; Copyright (C) 2006 Alastair Hoyle <ahoyle@hoylesolutions.co.uk>
+; This program is free software; you can redistribute it and/or modify it under the terms of the
+; GNU General Public License as published by the Free Software Foundation. This program is distributed
+; in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+;
+; This script should be in a subdirectory of the full build directory (Kicad/NSIS by default)
+; When the build is updated the product and installer versions should be updated before recompiling the installation file
+;
+; This script expects the install.ico, uninstall.ico, language and license files to be in the same directory as this script
+
+; General Product Description Definitions
+!define PRODUCT_NAME "KiCad"
+!define PRODUCT_VERSION "2014.03.05"
+!define ALT_DOWNLOAD_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
+!define LIBRARIES_WEB_SITE "https://github.com/KiCad/"
+!define KICAD_MAIN_SITE "www.kicad-pcb.org/"
+!define COMPANY_NAME ""
+!define TRADE_MARKS ""
+!define COPYRIGHT "Kicad Developers Team"
+!define COMMENTS ""
+!define HELP_WEB_SITE "http://groups.yahoo.com/group/kicad-users/"
+!define DEVEL_WEB_SITE "https://launchpad.net/kicad/"
+!define WINGS3D_WEB_SITE "http://www.wings3d.com"
+
+!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
+!define UNINST_ROOT "HKLM"
+
+
+;Comment out the following SetCompressor command while testing this script
+;SetCompressor /final /solid lzma
+
+CRCCheck force
+XPStyle on
+Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
+OutFile "${PRODUCT_NAME}_stable-${PRODUCT_VERSION}-BZR4xxx_Win_full_version.exe"
+;InstallDir "$PROGRAMFILES\KiCad"
+InstallDir "C:\KiCad"
+ShowInstDetails hide
+ShowUnInstDetails hide
+
+; MUI 1.67 compatible ------
+!include "MUI.nsh"
+
+; MUI Settings
+!define MUI_ABORTWARNING
+!define MUI_ICON "install.ico"
+!define MUI_UNICON "uninstall.ico"
+
+; Language Selection Dialog Settings
+!define MUI_LANGDLL_REGISTRY_ROOT "${UNINST_ROOT}"
+!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
+!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
+
+; Installer pages
+!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit
+!define MUI_CUSTOMFUNCTION_UNGUIINIT un.myGuiInit
+!insertmacro MUI_PAGE_WELCOME
+!insertmacro MUI_PAGE_LICENSE $(MUILicense)
+!insertmacro MUI_PAGE_COMPONENTS
+!insertmacro MUI_PAGE_DIRECTORY
+!insertmacro MUI_PAGE_INSTFILES
+!define MUI_FINISHPAGE_SHOWREADME ${WINGS3D_WEB_SITE}
+!define MUI_FINISHPAGE_SHOWREADME_TEXT "text"
+!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+!define MUI_PAGE_CUSTOMFUNCTION_PRE ModifyFinishPage
+!insertmacro MUI_PAGE_FINISH
+
+; Uninstaller pages
+!insertmacro MUI_UNPAGE_INSTFILES
+
+; Language files
+; - To add another language; add an insert macro line here and include a language file as below
+; - This must be after all page macros have been inserted
+!insertmacro MUI_LANGUAGE "English" ;first language is the default language
+!insertmacro MUI_LANGUAGE "French"
+!insertmacro MUI_LANGUAGE "Italian"
+!insertmacro MUI_LANGUAGE "Polish"
+!insertmacro MUI_LANGUAGE "Portuguese"
+!insertmacro MUI_LANGUAGE "Dutch"
+!insertmacro MUI_LANGUAGE "Russian"
+!insertmacro MUI_LANGUAGE "Japanese"
+
+!include "English.nsh"
+!include "French.nsh"
+!include "Dutch.nsh"
+!include "Italian.nsh"
+!include "Japanese.nsh"
+!include "Polish.nsh"
+!include "Portuguese.nsh"
+!include "Russian.nsh"
+
+; MUI end ------
+
+Function .onInit
+ ReserveFile "install.ico"
+ ReserveFile "uninstall.ico"
+ ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
+ ReserveFile "${NSISDIR}\Plugins\LangDLL.dll"
+ ReserveFile "${NSISDIR}\Plugins\System.dll"
+ ReserveFile "${NSISDIR}\Contrib\Modern UI\ioSpecial.ini"
+ !insertmacro MUI_LANGDLL_DISPLAY
+FunctionEnd
+
+Function myGuiInit
+ Call PreventMultiInstances
+ Call CheckAlreadyInstalled
+FunctionEnd
+
+Function ModifyFinishPage
+ !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" $(WINGS3D_PROMPT)
+ !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Bottom" 168 ;make more space for prompt
+ !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "CancelShow" "0" ;hide cancel button - already installed!!
+FunctionEnd
+
+Section $(TITLE_SEC01) SEC01
+ SectionIn RO
+ SetOverwrite try
+ SetOutPath "$INSTDIR"
+ File /nonfatal "..\AUTHORS.txt"
+ File /nonfatal "..\COPYRIGHT.txt"
+ File /nonfatal "..\license_for_documentation.txt"
+ SetOutPath "$INSTDIR\share\kicad\template"
+ File /nonfatal /r "..\share\kicad\template\*"
+ SetOutPath "$INSTDIR\bin"
+ File /r "..\bin\*"
+ SetOutPath "$INSTDIR\share\kicad\internat"
+ File /r "..\share\kicad\internat\*"
+SectionEnd
+
+Section $(TITLE_SEC02) SEC02
+ SetOverwrite try
+ SetOutPath "$INSTDIR\share\library"
+ File /nonfatal /r "..\share\library\*"
+ SetOutPath "$INSTDIR\share\modules"
+ File /nonfatal /r "..\share\modules\*"
+SectionEnd
+
+Section $(TITLE_SEC03) SEC03
+ SetOverwrite try
+ SetOutPath "$INSTDIR\share\kicad\demos"
+ File /nonfatal /r "..\share\kicad\demos\*"
+ SetOutPath "$INSTDIR\share\doc\kicad\tutorials"
+ File /nonfatal /r "..\share\doc\kicad\tutorials\*"
+SectionEnd
+
+Section $(TITLE_SEC04) SEC04
+ SetOverwrite try
+ SetOutPath "$INSTDIR\share\doc\kicad\help"
+ File /nonfatal /r "..\share\doc\kicad\help\*"
+SectionEnd
+
+Section -CreateShortcuts
+ SetOutPath $INSTDIR
+ WriteIniStr "$INSTDIR\HomePage.url" "InternetShortcut" "URL" "${KICAD_MAIN_SITE}"
+ WriteIniStr "$INSTDIR\AltDownloadSite.url" "InternetShortcut" "URL" "${ALT_DOWNLOAD_WEB_SITE}"
+ WriteIniStr "$INSTDIR\UserGroup.url" "InternetShortcut" "URL" "${HELP_WEB_SITE}"
+ WriteIniStr "$INSTDIR\DevelGroup.url" "InternetShortcut" "URL" "${DEVEL_WEB_SITE}"
+ WriteIniStr "$INSTDIR\LibrariesGroup.url" "InternetShortcut" "URL" "${LIBRARIES_WEB_SITE}"
+ WriteIniStr "$INSTDIR\Wings3D.url" "InternetShortcut" "URL" "${WINGS3D_WEB_SITE}"
+ SetShellVarContext all
+ CreateDirectory "$SMPROGRAMS\KiCad"
+ CreateShortCut "$SMPROGRAMS\KiCad\Home Page.lnk" "$INSTDIR\HomePage.url"
+ CreateShortCut "$SMPROGRAMS\KiCad\Kicad Alternate Download.lnk" "$INSTDIR\AltDownloadSite.url"
+ CreateShortCut "$SMPROGRAMS\KiCad\Kicad Libraries.lnk" "$INSTDIR\LibrariesGroup.url"
+ CreateShortCut "$SMPROGRAMS\KiCad\Wings3D.lnk" "$INSTDIR\Wings3D.url"
+ CreateShortCut "$SMPROGRAMS\KiCad\User Group.lnk" "$INSTDIR\UserGroup.url"
+ CreateShortCut "$SMPROGRAMS\KiCad\Devel Group.lnk" "$INSTDIR\DevelGroup.url"
+ CreateShortCut "$SMPROGRAMS\KiCad\Uninstall.lnk" "$INSTDIR\uninstaller.exe"
+ CreateShortCut "$SMPROGRAMS\KiCad\KiCad.lnk" "$INSTDIR\bin\kicad.exe"
+ CreateShortCut "$DESKTOP\KiCad.lnk" "$INSTDIR\bin\kicad.exe"
+SectionEnd
+
+Section -CreateAddRemoveEntry
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "Publisher" "${COMPANY_NAME}"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninstaller.exe"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${KICAD_MAIN_SITE}"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\bin\kicad.exe"
+ WriteRegDWORD ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "NoModify" "1"
+ WriteRegDWORD ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "NoRepair" "1"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "Comments" "${COMMENTS}"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "HelpLink" "${HELP_WEB_SITE}"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "URLUpdateInfo" "${KICAD_MAIN_SITE}"
+ WriteRegStr ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "InstallLocation" "$INSTDIR"
+
+ WriteUninstaller "$INSTDIR\uninstaller.exe"
+SectionEnd
+
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} $(DESC_SEC01)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} $(DESC_SEC02)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} $(DESC_SEC03)
+ !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} $(DESC_SEC04)
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+Function un.onInit
+ !insertmacro MUI_UNGETLANGUAGE
+FunctionEnd
+
+Function un.myGuiInit
+ Call un.PreventMultiInstances
+ MessageBox MB_ICONEXCLAMATION|MB_YESNO|MB_DEFBUTTON2 $(UNINST_PROMPT) /SD IDYES IDYES +2
+ Abort
+FunctionEnd
+
+Function un.onUninstSuccess
+ HideWindow
+ MessageBox MB_ICONINFORMATION|MB_OK $(UNINST_SUCCESS) /SD IDOK
+FunctionEnd
+
+Section Uninstall
+ ;delete uninstaller first
+ Delete "$INSTDIR\uninstaller.exe"
+
+ ;remove start menu shortcuts and web page links
+ SetShellVarContext all
+ Delete "$SMPROGRAMS\KiCad\Home Page.lnk"
+ Delete "$SMPROGRAMS\KiCad\Kicad Libraries.lnk"
+ Delete "$SMPROGRAMS\KiCad\Kicad Alternate Download.lnk"
+ Delete "$SMPROGRAMS\KiCad\Devel Group.lnk"
+ Delete "$SMPROGRAMS\KiCad\User Group.lnk"
+ Delete "$SMPROGRAMS\KiCad\Uninstall.lnk"
+ Delete "$SMPROGRAMS\KiCad\KiCad.lnk"
+ Delete "$SMPROGRAMS\KiCad\Wings3D.lnk"
+ Delete "$DESKTOP\KiCad.lnk"
+ Delete "$INSTDIR\Wings3D.url"
+ Delete "$INSTDIR\HomePage.url"
+ Delete "$INSTDIR\UserGroup.url"
+ Delete "$INSTDIR\AltDownloadSite.url"
+ Delete "$INSTDIR\DevelGroup.url"
+ Delete "$INSTDIR\LibrariesGroup.url"
+ RMDir "$SMPROGRAMS\KiCad"
+
+ ;remove all program files now
+ RMDir /r "$INSTDIR\bin"
+ RMDir /r "$INSTDIR\library"
+ RMDir /r "$INSTDIR\modules"
+ RMDir /r "$INSTDIR\template"
+ RMDir /r "$INSTDIR\internat"
+ RMDir /r "$INSTDIR\demos"
+ RMDir /r "$INSTDIR\tutorials"
+ RMDir /r "$INSTDIR\help"
+ RMDir /r "$INSTDIR\share\library"
+ RMDir /r "$INSTDIR\share\modules"
+ RMDir /r "$INSTDIR\share\kicad\template"
+ RMDir /r "$INSTDIR\share\kicad\internat"
+ RMDir /r "$INSTDIR\share\kicad\demos"
+ RMDir /r "$INSTDIR\share\doc\kicad\tutorials"
+ RMDir /r "$INSTDIR\share\doc\kicad\help"
+ RMDir /r "$INSTDIR\wings3d"
+ ;don't remove $INSTDIR recursively just in case the user has installed it in c:\ or
+ ;c:\program files as this would attempt to delete a lot more than just this package
+ Delete "$INSTDIR\*.txt"
+ RMDir "$INSTDIR"
+
+ ;Note - application registry keys are stored in the users individual registry hive (HKCU\Software\kicad".
+ ;It might be possible to remove these keys as well but it would require a lot of testing of permissions
+ ;and access to other people's registry entries. So for now we will leave the application registry keys.
+
+ ;remove installation registary keys
+ DeleteRegKey ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}"
+ SetAutoClose true
+SectionEnd
+
+;Setup.exe file version information
+ VIProductVersion "${PRODUCT_VERSION}.01" ;must be in x.x.x.x format - product version plus last digit for installer version number
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}"
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "${COMMENTS}"
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${COMPANY_NAME}"
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "${TRADE_MARKS}"
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" " ${COPYRIGHT}"
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer"
+ VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${PRODUCT_VERSION}"
+
+Function PreventMultiInstances
+ System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
+ Pop $R0
+ StrCmp $R0 0 +3
+ MessageBox MB_OK|MB_ICONEXCLAMATION $(INSTALLER_RUNNING) /SD IDOK
+ Abort
+FunctionEnd
+
+Function un.PreventMultiInstances
+ System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e'
+ Pop $R0
+ StrCmp $R0 0 +3
+ MessageBox MB_OK|MB_ICONEXCLAMATION $(UNINSTALLER_RUNNING) /SD IDOK
+ Abort
+FunctionEnd
+
+Function CheckAlreadyInstalled
+ ReadRegStr $R0 ${UNINST_ROOT} "${PRODUCT_UNINST_KEY}" "DisplayName"
+ StrCmp $R0 "" +3
+ MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION $(ALREADY_INSTALLED) /SD IDOK IDOK +2
+ Abort
+FunctionEnd
diff --git a/packaging/windows/nsis/uninstall.ico b/packaging/windows/nsis/uninstall.ico
new file mode 100644
index 0000000..84cce22
--- /dev/null
+++ b/packaging/windows/nsis/uninstall.ico
Binary files differ