Skip to content

Commit e2fbebb

Browse files
committed
update wizard.setup.exe, fix bug of cmd.exe can't be found after install soui wizard.
1 parent 4eaeb97 commit e2fbebb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

wizard/wizard.setup.exe

-235 KB
Binary file not shown.

wizard/wizard.setup.src/MainDlg.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class CMainDlg : public CDialogImpl<CMainDlg>
1717
CString strScriptSrc;
1818
};
1919

20-
LPCTSTR const Ver[2] = { _T("[15.0,16.0]") ,_T("[16.0,17.0]") };
21-
22-
2320
public:
2421
enum { IDD = IDD_MAINDLG };
2522

@@ -61,6 +58,8 @@ class CMainDlg : public CDialogImpl<CMainDlg>
6158

6259
CString GetVSDir(LPCTSTR pszEnvName)
6360
{
61+
const LPCTSTR Ver[2] = { _T("[15.0,16.0]") ,_T("[16.0,17.0]") };
62+
6463
if (_tcscmp(_T("VS141COMNTOOLS"), pszEnvName) == 0)
6564
return GetVs2017OrLaterDir(Ver[0]);
6665

@@ -375,7 +374,7 @@ class CMainDlg : public CDialogImpl<CMainDlg>
375374
str = strSouiBin;
376375
else
377376
str = strSouiBin + _T(";") + str;
378-
reg.SetStringValue(_T("Path"), str);
377+
reg.SetStringValue(_T("Path"), str,REG_EXPAND_SZ);
379378
}
380379
}
381380
reg.Close();

0 commit comments

Comments
 (0)