[wix-users] SourceDir - Odd Behaviour

Marc Beaudry mbeaudry at matrox.com
Mon Mar 14 11:06:35 PDT 2016


Hello All,

I have been reading on SourceDir property and how it works, and I have a weird behaviour in one of my MSI's.

I have a CA that gets execute in the InstallExecuteSequence "After" installInitialize. Inside my CA written in C# I have this line:
string sourceFolder = session["SourceDir"];

This works as expected, when I simply run (double click) my MSI, I get the folder that my cab files are located in.

The odd thing is that when I run my MSI from a batch file (this allows me to set some public properties), and right click "run as admin" my sourcedir is blank, as if ResolveSource was not yet executed.

Is there a subtlety I am missing here?

Thanks for the insight,
Marc





More information about the wix-users mailing list