|
|
|
|
|
|
|
|
, postinstallsteps : function() { return sysAddPathVar('%USERPROFILE%\\AppData/Local\\Microsoft\\WindowsApps') } |
|
|
, postinstallsteps : function() { return sysAddPathVar('%USERPROFILE%\\AppData/Local\\Microsoft\\WindowsApps') } |
|
|
, exists : exists |
|
|
, exists : exists |
|
|
} |
|
|
} |
|
|
|
|
|
, { |
|
|
|
|
|
shellcmd: 'sqlexpress', |
|
|
|
|
|
url: 'https://go.microsoft.com/fwlink/?linkid=866658' |
|
|
|
|
|
, installer: 'SQL2019-SSEI-Expr.exe' |
|
|
|
|
|
, installcmd: ['cmd', ['/c', 'start', |
|
|
|
|
|
'/WAIT', downloadsdir + '/' + 'SQL2019-SSEI-Expr.exe' |
|
|
|
|
|
, '/Quiet' |
|
|
|
|
|
//, 'SSMSInstallRoot=%systemdrive%\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio' |
|
|
|
|
|
]] |
|
|
|
|
|
, install : install |
|
|
|
|
|
, exists : exists |
|
|
|
|
|
, preinstallsteps: function() { |
|
|
|
|
|
var self = this; |
|
|
|
|
|
console.log('Node preinstall steps') |
|
|
|
|
|
|
|
|
|
|
|
var steps = []; |
|
|
|
|
|
steps.push( |
|
|
|
|
|
function(){ |
|
|
|
|
|
if (!existsSync(downloadsdir + '/' + self.installer)) { |
|
|
|
|
|
return nodeShellExec(selectedinstance.root + '/.elxr/run-' + runtimestamp + '/download.bat', ['"' + self.url + '"', downloadsdir + '/' + self.installer] |
|
|
|
|
|
, { waitmsg : 'downloading '+ self.shellcmd +' please wait' }) |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
console.log(self.installer + ' Already exits Download skipped.') |
|
|
|
|
|
return Promise.resolve(true) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
return any(steps) |
|
|
|
|
|
// return any([any(steps), any(prompts)]) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
, { |
|
|
|
|
|
shellcmd: 'Ssms2019.exe', |
|
|
|
|
|
url: 'https://aka.ms/ssmsfullsetup' |
|
|
|
|
|
, installer: 'SSMS-Setup-ENU.exe' |
|
|
|
|
|
, installcmd: ['cmd', ['/c', 'start', |
|
|
|
|
|
'/WAIT', downloadsdir + '/' + 'SSMS-Setup-ENU.exe' |
|
|
|
|
|
, '/Quiet' |
|
|
|
|
|
//, 'SSMSInstallRoot=%systemdrive%\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio' |
|
|
|
|
|
]] |
|
|
|
|
|
, install : install |
|
|
|
|
|
, exists : exists |
|
|
|
|
|
, preinstallsteps: function() { |
|
|
|
|
|
var self = this; |
|
|
|
|
|
console.log('smss preinstall steps') |
|
|
|
|
|
|
|
|
|
|
|
var steps = []; |
|
|
|
|
|
steps.push( |
|
|
|
|
|
function(){ |
|
|
|
|
|
if (!existsSync(downloadsdir + '/' + self.installer)) { |
|
|
|
|
|
console.log(self.url) |
|
|
|
|
|
return nodeShellExec(selectedinstance.root + '/.elxr/run-' + runtimestamp + '/download.bat', ['"' + self.url + '"', downloadsdir + '/' + self.installer] |
|
|
|
|
|
, { waitmsg : 'downloading '+ self.shellcmd +' please wait' }) |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
console.log(self.installer + ' Already exits Download skipped.') |
|
|
|
|
|
return Promise.resolve(true) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
return any(steps) |
|
|
|
|
|
// return any([any(steps), any(prompts)]) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
, { |
|
|
, { |
|
|
shellcmd: 'Ssms.exe', |
|
|
shellcmd: 'Ssms.exe', |
|
|
url: 'https://go.microsoft.com/fwlink/?linkid=2043154&clcid=0x409' |
|
|
url: 'https://go.microsoft.com/fwlink/?linkid=2043154&clcid=0x409' |