mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
fix bad type in setup
This commit is contained in:
parent
f2bf953939
commit
43f8306a83
1 changed files with 7 additions and 3 deletions
|
@ -957,7 +957,6 @@ Root: {#EnvironmentRootKey}; Subkey: "{#EnvironmentKey}"; ValueType: expandsz; V
|
|||
// Don't allow installing conflicting architectures
|
||||
function InitializeSetup(): Boolean;
|
||||
var
|
||||
RegRootKey: String;
|
||||
RegKey: String;
|
||||
ThisArch: String;
|
||||
AltArch: String;
|
||||
|
@ -965,10 +964,15 @@ begin
|
|||
Result := True;
|
||||
|
||||
#if "user" == InstallTarget
|
||||
if '{#Arch}' = 'ia32' then RegRootKey := 'HKLM32' else RegRootKey := 'HKLM64';
|
||||
#if "ia32" == Arch
|
||||
#define IncompatibleArchRootKey "HKLM32"
|
||||
#else
|
||||
#define IncompatibleArchRootKey "HKLM64"
|
||||
#endif
|
||||
|
||||
RegKey := 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + copy('{#IncompatibleTargetAppId}', 2, 38) + '_is1';
|
||||
|
||||
if RegKeyExists(RegRootKey, RegKey) then begin
|
||||
if RegKeyExists({#IncompatibleArchRootKey}, RegKey) then begin
|
||||
if MsgBox('{#NameShort} is already installed on this system for all users. Are you sure you want to install it for this user?', mbConfirmation, MB_YESNO) = IDNO then begin
|
||||
Result := false;
|
||||
end;
|
||||
|
|
Loading…
Reference in a new issue