Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added registry keys to detect if iisnode is installed #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/setup/iisnode-dev-msi/iisnode.wxs
Expand Up @@ -26,8 +26,21 @@
</Directory>
</Directory>

<DirectoryRef Id="TARGETDIR">
<Component Id="RegistryEntries" Guid="{204F256A-E453-453B-AFC6-49844892EE62}">
<RegistryKey Root="HKLM"
Key="Software\Microsoft\IIS Extensions\iisnode"
Action="createAndRemoveOnUninstall">
<RegistryValue Type="integer" Name="Install" Value="1" KeyPath="yes"/>
<RegistryValue Type="string" Name="Version" Value="$(var.version)"/>
<RegistryValue Type="string" Value=""/>
</RegistryKey>
</Component>
</DirectoryRef>

<Feature Id="iisnode4iis" Title="Hosting node.js applications in IIS 7.x" Level="1" Description="IIS 7.x native module for hosting node.js applications in IIS 7.x">
<ComponentGroupRef Id="allfiles" />
<ComponentRef Id="RegistryEntries" />
</Feature>

<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\..\iisnode-msi\License.rtf" />
Expand Down
13 changes: 13 additions & 0 deletions src/setup/iisnode-express-msi/iisnode.wxs
Expand Up @@ -52,8 +52,21 @@
</Directory>
</Directory>

<DirectoryRef Id="TARGETDIR">
<Component Id="RegistryEntries" Guid="{BB4D6F3A-AC2E-4393-AD1B-1BDC0A2CD4B7}">
<RegistryKey Root="HKLM"
Key="Software\Microsoft\IIS Extensions\iisnode-express"
Action="createAndRemoveOnUninstall">
<RegistryValue Type="integer" Name="Install" Value="1" KeyPath="yes"/>
<RegistryValue Type="string" Name="Version" Value="$(var.version)"/>
<RegistryValue Type="string" Value=""/>
</RegistryKey>
</Component>
</DirectoryRef>

<Feature Id="iisnode4iis" Title="Hosting node.js applications in IIS Express 7.x" Level="1" Description="IIS 7.x native module for hosting node.js applications in IIS Express 7.x">
<ComponentGroupRef Id="allfiles" />
<ComponentRef Id="RegistryEntries" />
</Feature>

<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\..\iisnode-msi\License.rtf" />
Expand Down
13 changes: 13 additions & 0 deletions src/setup/iisnode-msi/iisnode.wxs
Expand Up @@ -60,11 +60,24 @@
<?endif?>
</Directory>

<DirectoryRef Id="TARGETDIR">
<Component Id="RegistryEntries" Guid="{204F256A-E453-453B-AFC6-49844892EE62}">
<RegistryKey Root="HKLM"
Key="Software\Microsoft\IIS Extensions\iisnode"
Action="createAndRemoveOnUninstall">
<RegistryValue Type="integer" Name="Install" Value="1" KeyPath="yes"/>
<RegistryValue Type="string" Name="Version" Value="$(var.version)"/>
<RegistryValue Type="string" Value=""/>
</RegistryKey>
</Component>
</DirectoryRef>

<Feature Id="iisnode4iis" Title="Hosting node.js applications in IIS 7.x" Level="1" Description="IIS 7.x native module for hosting node.js applications in IIS">
<ComponentGroupRef Id="allfiles" />
<?if $(var.isWin64) = "yes" ?>
<ComponentGroupRef Id="allfileswow" />
<?endif?>
<ComponentRef Id="RegistryEntries" />
</Feature>

<?if $(var.ProjectName) = iisnode-msi-full ?>
Expand Down