Skip to content

Commit

Permalink
Update nvm.iss
Browse files Browse the repository at this point in the history
  • Loading branch information
awdr74100 committed May 4, 2022
1 parent 5803c4f commit 4b4a072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nvm.iss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define MyAppURL "https://github.com/coreybutler/nvm-windows"
#define MyAppExeName "nvm.exe"
#define MyIcon "bin\nodejs.ico"
#define MyAppId "40078385-F676-4C61-9A9C-F9028599D6D3"
#define ProjectRoot "."

[Setup]
Expand All @@ -15,7 +16,7 @@
PrivilegesRequired=admin
; SignTool=MsSign $f
; SignedUninstaller=yes
AppId=40078385-F676-4C61-9A9C-F9028599D6D3
AppId={#MyAppId}
AppName={#MyAppName}
AppVersion={%AppVersion}
AppVerName={#MyAppName} {%AppVersion}
Expand Down Expand Up @@ -260,6 +261,8 @@ begin
RegWriteExpandStringValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'NVM_SYMLINK', SymlinkPage.Values[0]);
RegWriteExpandStringValue(HKEY_CURRENT_USER, 'Environment', 'NVM_HOME', ExpandConstant('{app}'));
RegWriteExpandStringValue(HKEY_CURRENT_USER, 'Environment', 'NVM_SYMLINK', SymlinkPage.Values[0]);
RegWriteStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#MyAppId}_is1', 'DisplayVersion', '{#MyAppVersion}');
// Update system and user PATH if needed
RegQueryStringValue(HKEY_LOCAL_MACHINE,
Expand Down

0 comments on commit 4b4a072

Please sign in to comment.