Permalink
Browse files

Added a manual installer, courtesy @heri16. Closes #20.

1 parent 494d7f5 commit 36c592d2f8f96fc6434c9fb0ef3804bb3750c944 @coreybutler committed Nov 18, 2014
Showing with 18 additions and 3 deletions.
  1. +15 −0 bin/install.cmd
  2. +1 −1 build.bat
  3. +2 −2 nvm.iss
View
@@ -0,0 +1,15 @@
+@echo off
+set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: "
+setx /M NVM_HOME "%NVM_PATH%"
+setx /M NVM_SYMLINK "C:\Program Files\nodejs"
+setx /M PATH "%PATH%;%NVM_HOME%;%NVM_SYMLINK%"
+
+if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
+set SYS_ARCH=64
+) else (
+set SYS_ARCH=32
+)
+(echo root: %NVM_HOME% && echo path: %NVM_SYMLINK% && echo arch: %SYS_ARCH% && echo proxy: none) > %NVM_HOME%\settings.txt
+
+notepad %NVM_HOME%\settings.txt
+@echo on
View
@@ -39,7 +39,7 @@ REM Create the installer
echo Generating nvm-setup.zip
buildtools\iscc %INNOSETUP% /o%DIST%
buildtools\zip -j -9 -r "%DIST%\nvm-setup.zip" "%DIST%\nvm-setup.exe"
-rm "%DIST%\nvm-setup.exe"
+REM rm "%DIST%\nvm-setup.exe"
echo --------------------------
echo Release %version% available in %DIST%
GOTO COMPLETE
View
@@ -6,7 +6,7 @@
#define MyAppURL "http://github.com/coreybutler/nvm"
#define MyAppExeName "nvm.exe"
#define MyIcon "bin\nodejs.ico"
-#define ProjectRoot "C:\Users\Corey\Documents\workspace\Experiments\nvm"
+#define ProjectRoot "C:\Users\Corey\Documents\workspace\Applications\nvm"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
@@ -44,7 +44,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
-Source: "{#ProjectRoot}\bin\*"; DestDir: "{app}"; BeforeInstall: PreInstall; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "{#ProjectRoot}\bin\*"; DestDir: "{app}"; BeforeInstall: PreInstall; Flags: ignoreversion recursesubdirs createallsubdirs; Excludes: "{#ProjectRoot}\bin\install.cmd"
[Icons]
Name: "{group}\{#MyAppShortName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{#MyIcon}"

0 comments on commit 36c592d

Please sign in to comment.