Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Tweaks to installer
Browse files Browse the repository at this point in the history
- Fixed overlapping IntermediateOutputPath causing Installer build
  nightmares (ref wix 4661)

- Execute removal logic at install, eliminating previously failed installs
  if present (closes #1, closes #3)
  • Loading branch information
riverar committed Mar 1, 2015
1 parent c1941a0 commit 04458bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions code/installer/CustomActions.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Sequence="execute" Before="RemoveDriver_Cmd" />

<CustomAction Id="RemoveDriver_Cmd" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="deferred" Return="check" Impersonate="no"/>
Execute="deferred" Return="ignore" Impersonate="no"/>

<SetProperty Id="StartDriver_Cmd"
Value='"sc.exe" start uxstyle'
Expand All @@ -30,9 +30,7 @@
Execute="deferred" Return="check" Impersonate="no"/>

<InstallExecuteSequence>
<Custom Action="RemoveDriver_Cmd" After="DeleteServices">
?elytsxu.sys = 3
</Custom>
<Custom Action="RemoveDriver_Cmd" After="DeleteServices" />

<Custom Action="StopDriver_Cmd" After="StopServices">
?elytsxu.sys = 3
Expand Down
8 changes: 4 additions & 4 deletions code/installer/Installer.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>..\..\bin\x86\debug\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug;</DefineConstants>
<LinkerAdditionalOptions>-ext WixUtilExtension -ext WixUIExtension</LinkerAdditionalOptions>
<WixVariables>
Expand All @@ -25,7 +25,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>..\..\bin\x86\release\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<LinkerAdditionalOptions>-ext WixUtilExtension -ext WixUIExtension -cultures:en-us</LinkerAdditionalOptions>
<WixVariables>
</WixVariables>
Expand All @@ -38,7 +38,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>..\..\bin\x64\debug\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug;</DefineConstants>
<LinkerAdditionalOptions>-ext WixUtilExtension -ext WixUIExtension</LinkerAdditionalOptions>
<WixVariables>
Expand All @@ -51,7 +51,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<OutputPath>..\..\bin\x64\release\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
<LinkerAdditionalOptions>-ext WixUtilExtension -ext WixUIExtension -cultures:en-us</LinkerAdditionalOptions>
<WixVariables>
</WixVariables>
Expand Down
2 changes: 1 addition & 1 deletion code/installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ServiceInstall Id="UnsignedThemes_ServiceInstall" Name="UnsignedThemes" Type="ownProcess" LoadOrderGroup="AudioGroup" Start="auto" DisplayName="Unsigned Themes"
Description="Enables the use of unsigned third-party themes." ErrorControl="ignore" />

<ServiceControl Id="UnsignedThemes_ServiceControl" Name="UnsignedThemes" Start="install" Stop="uninstall" Remove="uninstall" Wait="yes" />
<ServiceControl Id="UnsignedThemes_ServiceControl" Name="UnsignedThemes" Start="install" Stop="uninstall" Remove="both" Wait="yes" />

<RegistryValue Id="EnableLogging" Action="write" Root="HKLM" Key="SYSTEM\CurrentControlSet\services\uxstyle\Parameters" Type="integer" Name="EnableLogging" Value="0" />
<RegistryValue Id="LogFile" Action="write" Root="HKLM" Key="SYSTEM\CurrentControlSet\services\uxstyle\Parameters" Type="string" Name="LogFile" Value="" />
Expand Down

0 comments on commit 04458bd

Please sign in to comment.