fix reg export command
parent
98cb59272c
commit
a65235e960
|
|
@ -504,8 +504,9 @@ class Docker {
|
|||
//Setup prerequisite files/folders for a windows-based docker run
|
||||
static setupWindowsRun(platform, silent = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const makeRegKeyFolderCommand = 'mkdir c:/regkeys';
|
||||
yield exec_1.exec(makeRegKeyFolderCommand, undefined, { silent });
|
||||
if (!fs.existsSync('c:/regkeys')) {
|
||||
fs.mkdirSync('c:/regkeys');
|
||||
}
|
||||
switch (platform) {
|
||||
//These all need the Windows 10 SDK
|
||||
case 'StandaloneWindows':
|
||||
|
|
@ -523,7 +524,7 @@ class Docker {
|
|||
static generateWinSDKRegKeys(silent = false) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// Export registry keys that point to the location of the windows 10 sdk
|
||||
const exportWinSDKRegKeysCommand = 'echo Y| reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg';
|
||||
const exportWinSDKRegKeysCommand = 'reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg /y';
|
||||
yield exec_1.exec(exportWinSDKRegKeysCommand, undefined, { silent });
|
||||
});
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -184,8 +184,9 @@ class Docker {
|
|||
|
||||
//Setup prerequisite files/folders for a windows-based docker run
|
||||
static async setupWindowsRun(platform, silent = false) {
|
||||
const makeRegKeyFolderCommand = 'mkdir c:/regkeys';
|
||||
await exec(makeRegKeyFolderCommand, undefined, { silent });
|
||||
if (!fs.existsSync('c:/regkeys')) {
|
||||
fs.mkdirSync('c:/regkeys');
|
||||
}
|
||||
switch (platform) {
|
||||
//These all need the Windows 10 SDK
|
||||
case 'StandaloneWindows':
|
||||
|
|
@ -203,7 +204,7 @@ class Docker {
|
|||
static async generateWinSDKRegKeys(silent = false) {
|
||||
// Export registry keys that point to the location of the windows 10 sdk
|
||||
const exportWinSDKRegKeysCommand =
|
||||
'echo Y| reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg';
|
||||
'reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg /y';
|
||||
await exec(exportWinSDKRegKeysCommand, undefined, { silent });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue