My WIX setup needs to install a website into a folder. Since we have a lot of legacy installations where this folder has already been created, the script needs to retrieve the physical folder of a previous website, or propose to install into a new folder.
About checking the website, I found some solutions in the following links: http://wixuser.blogspot.com/ http://blogs.msdn.com/david.wang/archive/2006/06/08/HOWTO-Enumerate-IIS- website-and-ftpsite-configuration-VBScript-using-ADSI.aspx Here is how my code looks: <CustomAction Id="DetectDefaultFolder" Execute="immediate" Script="vbscript" Return="check"> ' include detection here (not finished yet) Property("TARGETDIR") = "C:\Example" </CustomAction> And in the UI sequence: <Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" /> <Publish Dialog="WebDirDlg" Control="Next" Event="DoAction" Value="DetectDefaultFolder">1</Publish> While reading more documents, I found that Rob Mensching is strongly against VbScript and managed CustomAction: http://robmensching.com/blog/archive/2007/04/19/Managed-Code-CustomActio ns-no-support-on-the-way-and-heres.aspx http://blogs.msdn.com/robmen/archive/2004/05/20/136530.aspx It's true that antiviruses tend to block VBS, but I'm not sure if the above VbScript will be blocked, since it's not into a separate file. Also I found a page explaining how to code a managed CustomAction: http://blogs.msdn.com/josealmeida/archive/2004/11/08/253831.aspx So now, I'm completely confused. Should I or should I not use VbScript for this CustomAction ? Should I or should I not use managed code for this CustomAction ? Another consideration is that it will take one day to recode the small VBS part into a clean C++ DLL... JC ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users