Hi Carter,

If you know a fix for this issue can you please direct me in right
direction, as I am not too good at Wix and custom actions. I came up with
this issue when I was building some setups for my project as VS2012 has
stopped support for setup and deployment project.
Thanks in advance

Regards
Tony Jose



On Wed, Aug 20, 2014 at 3:36 PM, Tony Jose Mampilly <kooltonyj...@gmail.com>
wrote:

> Hi Carter,
>
> Thank you so much for the update. I will look into this and will try to
> resolve the issue.
> Thank you again.
>
> Regards
> Tony Jose
>
>
> On Tue, Aug 19, 2014 at 6:53 PM, Carter Young <ecyo...@grandecom.net>
> wrote:
>
>> The Problem is Here:
>>
>> {
>>              Site site = iisManager.Sites[webSite];
>>              basePath = site.Applications["/"].
>>                                  VirtualDirectories["/"].PhysicalPath;
>>          }
>>
>>          session.Log("SetInstallDir: Physical path : {0}", basePath);
>>
>>           // Environment variables are used in IIS7 so expand them.
>>          basePath = Environment.ExpandEnvironmentVariables(basePath);
>>
>>          // Get the web application name and poke that onto the end.
>>          String webAppName = session["WEB_APP_NAME"];
>>          String finalPath = Path.Combine(basePath, webAppName);
>>
>>          // Set INSTALLDIR to the calculate path.
>>          session.Log("SetInstallDir: Setting INSTALLDIR to {0}",
>>                      finalPath);
>>          session["INSTALLDIR"] = finalPath;
>>      }
>>
>> The BasePath and the Final Path are only Correct when the Default
>> Application Virtual Directory is used, because your grabbing the 1st
>> item in the collection...  You must treat the list of sites as a
>> Collection, therefore before assigning the final path you must iterate
>> the collection, and return the one the user selected.
>>
>> See this Post at StackOverflow for some pointers...
>>
>>
>> http://stackoverflow.com/questions/19415624/get-iis-default-installation-directory
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to