c# - Directory.Exists not working in wix installer custom action -
i have customaction wix installer in checking whether directory exists. though directory exists, if condition resolving false. strange thing same snippet works in console application. here code.
string msonline = path.combine(environment.systemdirectory, "windowspowershell", "v1.0", "modules", "msonline"); session.log(msonline); //'c:\windows\system32\windowspowershell\v1.0\modules\msonline'. if (directory.exists(msonline)) { session.log("msonline module installed"); session["azure_module"] = "installed"; }
not being able head around why not working when same code works in console app.
Comments
Post a Comment