< prev index next >
src/jdk.jpackage/windows/native/msiwrapper/MsiWrapper.cpp
Print this page
*** 26,36 ****
// Setup executor to run msiexec
Executor msiExecutor(SysInfo::getWIPath());
msiExecutor.arg(L"/i").arg(msiPath);
const auto args = SysInfo::getCommandArgs();
! std::for_each(args.begin(), args.end(), [&msiExecutor] (const tstring& arg) {
msiExecutor.arg(arg);
});
// Install msi file.
return msiExecutor.execAndWaitForExit();
--- 26,37 ----
// Setup executor to run msiexec
Executor msiExecutor(SysInfo::getWIPath());
msiExecutor.arg(L"/i").arg(msiPath);
const auto args = SysInfo::getCommandArgs();
! std::for_each(args.begin(), args.end(),
! [&msiExecutor] (const tstring& arg) {
msiExecutor.arg(arg);
});
// Install msi file.
return msiExecutor.execAndWaitForExit();
< prev index next >