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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -