I am using wix sharp to develop my installer and everything is working fine except I'm unable to provide the install directory location at run time. While installation, I'm taking input from user and storing them in environment variable as "InstallFolder" and in wix sharp code I'm taking this from Environment variable.
var installLocation = Environment.GetEnvironmentVariable("installLocation",
EnvironmentVariableTarget.User);
var XYZ_project = new ManagedProject("xyz_Product",
new Dir(installLocation,new Files(@"xxx\yyy\*.*"))
Ideally it should take the instalLocation from env variable but it is not taking it at runtime. If I set this value before building the installer itself it is taking the value.
I need to get the values from user on runtime and set them. Please suggest on this.