mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-11-29 01:06:26 +08:00
Added a manual installer, courtesy @heri16. Closes #20.
This commit is contained in:
15
bin/install.cmd
Normal file
15
bin/install.cmd
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
4
nvm.iss
4
nvm.iss
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user