Skip to content

Instantly share code, notes, and snippets.

@jogibear9988
Created September 1, 2012 06:14
Show Gist options
  • Save jogibear9988/3565371 to your computer and use it in GitHub Desktop.
Save jogibear9988/3565371 to your computer and use it in GitHub Desktop.
Installers/MPExtended.Installers.WebMediaPortal/Product.wxs | 8 ++++++--
.../MPExtended.ServiceHosts.WebMediaPortal/IISExpressHost.cs | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Installers/MPExtended.Installers.WebMediaPortal/Product.wxs b/Installers/MPExtended.Installers.WebMediaPortal/Product.wxs
index ad3577f..8ec2192 100644
--- a/Installers/MPExtended.Installers.WebMediaPortal/Product.wxs
+++ b/Installers/MPExtended.Installers.WebMediaPortal/Product.wxs
@@ -61,8 +61,12 @@
<RegistrySearch Id="IISExpressInstalledSearch" Type="raw" Win64="no"
Root="HKLM" Key="SOFTWARE\Microsoft\IISExpress\7.5" Name="InstallPath" />
</Property>
- <Condition Message="The installer has detected that the prerequisite IIS Express 7.5 is not installed. Please install IIS Express 7.5 and run the installer again.">
- <![CDATA[Installed OR IISEXPRESSINSTALLED]]>
+ <Property Id="IISEXPRESS8INSTALLED">
+ <RegistrySearch Id="IISExpress8InstalledSearch" Type="raw" Win64="no"
+ Root="HKLM" Key="SOFTWARE\Microsoft\IISExpress\8.0" Name="InstallPath" />
+ </Property>
+ <Condition Message="The installer has detected that the prerequisite IIS Express 8.0 is not installed. Please install IIS Express 8.0 and run the installer again.">
+ <![CDATA[Installed OR IISEXPRESSINSTALLED OR IISEXPRESS8INSTALLED]]>
</Condition>
<!-- Service -->
diff --git a/ServiceHosts/MPExtended.ServiceHosts.WebMediaPortal/IISExpressHost.cs b/ServiceHosts/MPExtended.ServiceHosts.WebMediaPortal/IISExpressHost.cs
index 5ee91e6..a3e0082 100644
--- a/ServiceHosts/MPExtended.ServiceHosts.WebMediaPortal/IISExpressHost.cs
+++ b/ServiceHosts/MPExtended.ServiceHosts.WebMediaPortal/IISExpressHost.cs
@@ -67,6 +67,8 @@ public void Start()
// lookup IIS Express location
string iisExpress = null;
object iisExpressLocation = RegistryReader.ReadKeyAllViews(RegistryHive.LocalMachine, @"SOFTWARE\Microsoft\IISExpress\7.5", "InstallPath");
+ if (iisExpressLocation == null || iisExpressLocation.ToString().Trim() == "")
+ iisExpressLocation = RegistryReader.ReadKeyAllViews(RegistryHive.LocalMachine, @"SOFTWARE\Microsoft\IISExpress\8.0", "InstallPath");
string iisExpressDefault = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "IIS Express", "iisexpress.exe");
if (iisExpressLocation != null && File.Exists(Path.Combine(iisExpressLocation.ToString(), "iisexpress.exe")))
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment