Hello, I have a problem when trying to use FileInfo or DirectoryInfo classes in a managed C# CA.
Project Layout: 1. BootstrapperApplication - Install VCR8, VCR9, NetFX3.5, Apache, PHP, MySQL Server - Install our software (the wix project for our software is referenced by the BA, see point 2) 2. Software MSI - Call MySQLInstanceConfig.exe (after InstallInitialize) - Copy all files - Create some registry keys - Call CA (before InstallFinalize) Well, I have a strange behavior with the last mentioned CA: In my product node I declare a property: <Property Id="PROP_MYSQL_PATH" Value="[ProgramFilesFolder]$(var.MYSQL_NAME)\" /> Then, in my CA I do the following: String givenPath = session["PROP_MYSQL_PATH"]; When I log that string variable, it looks completely fine: Ø LOG: "got string givenPath as param: C:\Programme\MySQL Server 5\" BUT, when I create a FileInfo or DirectoryInfo with that string: DirectoryInfo d = new DirectoryInfo(givenPath); Ø DirectoryInfo object created from 'C:\Programme\MySQL Server 5\' Ø d.FullName => C:\WINDOWS\Installer\MSI19.tmp-\C:\Programme\MySQL Server 5\ Of course, now when checking if the directory or file exists, it returns false and an exception is thrown. So, anyone has an idea, on how to get rid of that 'C:\WINDOWS\Installer\MSI19.tmp-\'-part of the DirectoryInfo/FileInfo objects ? Any suggestion is highly appreciated! Herzliche Grüße / Kind regards Hendryk Irmischer ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users