Skip to content

Commit 66b7721

Browse files
committedDec 13, 2015
Implement 32-bit installer
1 parent 5099410 commit 66b7721

File tree

3 files changed

+59
-28
lines changed

3 files changed

+59
-28
lines changed
 

‎SarInstaller/Product.wxs

+56-23
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,27 @@
2424
<UIRef Id="WixUI_Minimal"/>
2525

2626
<Feature Id="Main" Title="Synchronous Audio Router" Level="1">
27-
<ComponentRef Id="KernelDriver64"/>
28-
<?if $(var.Platform) = x86 ?>
27+
<?if $(var.Platform) = x64 ?>
28+
<ComponentRef Id="KernelDriver64"/>
29+
<?else ?>
2930
<ComponentRef Id="KernelDriver32"/>
3031
<?endif ?>
31-
<ComponentRef Id="AsioDriver64"/>
32-
<ComponentRef Id="AsioDriver64_32"/>
33-
<!--<ComponentRef Id="AsioDriver32"/>-->
32+
33+
<?if $(var.Platform) = x64 ?>
34+
<ComponentRef Id="AsioDriver64"/>
35+
<ComponentRef Id="AsioDriver64_32"/>
36+
<?else ?>
37+
<ComponentRef Id="AsioDriver32"/>
38+
<?endif ?>
3439
</Feature>
3540

36-
<Binary Id="SarInstallerActions"
37-
SourceFile="..\x64\Release\SarInstallerActions.dll"/>
41+
<?if $(var.Platform) = x64 ?>
42+
<Binary Id="SarInstallerActions"
43+
SourceFile="..\x64\Release\SarInstallerActions.dll"/>
44+
<?else ?>
45+
<Binary Id="SarInstallerActions"
46+
SourceFile="..\Release\SarInstallerActions.dll"/>
47+
<?endif ?>
3848

3949
<CustomAction Id="CreateDeviceNode"
4050
BinaryKey="SarInstallerActions"
@@ -68,6 +78,7 @@
6878
</Directory>
6979
</Directory>
7080

81+
<?if $(var.Platform) = x64 ?>
7182
<DirectoryRef Id="INSTALLDIR64">
7283
<Component Id="KernelDriver64"
7384
Guid="{48C7E358-9797-42F7-B86D-5AA1DD3E0E44}"
@@ -190,24 +201,34 @@
190201
Action="write" />
191202
</Component>
192203
</DirectoryRef>
193-
204+
<?else ?>
194205
<DirectoryRef Id="INSTALLDIR">
195-
<?if $(var.Platform) = x86 ?>
196-
<Component Id="KernelDriver32"
197-
Guid="{865DF004-18BD-448C-A63B-BF3B758CAE99}"
198-
Win64="no">
199-
<File Id="SynchronousAudioRouter.sys"
200-
Source="..\Release\SynchronousAudioRouter.sys"
201-
KeyPath="yes"/>
202-
</Component>
203-
<?endif ?>
204-
205-
<!--<Component Id="AsioDriver32"
206-
Guid="{FFBEFDDB-FBC6-4CE5-9187-267DE9BB93D9}"
206+
<Component Id="KernelDriver32"
207+
Guid="{865DF004-18BD-448C-A63B-BF3B758CAE99}"
207208
Win64="no">
209+
<File Id="SynchronousAudioRouter.sys"
210+
Name="SynchronousAudioRouter.sys"
211+
Source="..\Release\SynchronousAudioRouter.sys"
212+
KeyPath="yes"/>
213+
<File Id="SynchronousAudioRouter.cat"
214+
Name="SynchronousAudioRouter.cat"
215+
Source="..\Release\SynchronousAudioRouter\SynchronousAudioRouter.cat"
216+
KeyPath="no"/>
217+
<File Id="SynchronousAudioRouter.inf"
218+
Name="SynchronousAudioRouter.inf"
219+
Source="..\Release\SynchronousAudioRouter\SynchronousAudioRouter.inf"
220+
KeyPath="no"/>
221+
<difx:Driver PlugAndPlayPrompt="no"/>
222+
</Component>
223+
224+
<Component Id="AsioDriver32"
225+
Guid="{FFBEFDDB-FBC6-4CE5-9187-267DE9BB93D9}"
226+
Win64="no">
208227
<File Id="SarAsio.dll"
228+
Name="SarAsio.dll"
209229
Source="..\Release\SarAsio.dll"
210230
KeyPath="yes"/>
231+
<!--<File Id="SarCtl.exe" Source="..\x64\Release\SarCtl.exe" KeyPath="no"/>-->
211232
<RegistryValue Root="HKCR"
212233
Key="CLSID\{0569D852-1F6A-44A7-B7B5-EFB78B66BE21}\InProcServer32"
213234
Value="[#SarAsio.dll]"
@@ -219,6 +240,17 @@
219240
Value="Apartment"
220241
Type="string"
221242
Action="write" />
243+
<RegistryValue Root="HKCR"
244+
Key="CLSID\{9FB96668-9EDD-4574-AD77-76BD89659D5D}\InProcServer32"
245+
Value="[#SarAsio.dll]"
246+
Type="string"
247+
Action="write" />
248+
<RegistryValue Root="HKCR"
249+
Key="CLSID\{9FB96668-9EDD-4574-AD77-76BD89659D5D}\InProcServer32"
250+
Name="ThreadingModel"
251+
Value="both"
252+
Type="string"
253+
Action="write" />
222254
<RegistryValue Root="HKCR"
223255
Key="CLSID\{0569D852-1F6A-44A7-B7B5-EFB78B66BE21}\ProgID"
224256
Value="SynchronousAudioRouter.1"
@@ -229,17 +261,18 @@
229261
Value="Synchronous Audio Router ASIO"
230262
Type="string"
231263
Action="write" />
232-
<RegistryValue Root="HKLM" Key="Software\ASIO\Synchronous Audio Router"
264+
<RegistryValue Root="HKLM" Key="SOFTWARE\ASIO\Synchronous Audio Router"
233265
Name="CLSID" Value="{0569D852-1F6A-44A7-B7B5-EFB78B66BE21}"
234266
Type="string"
235267
Action="write" />
236268
<RegistryValue Root="HKLM"
237-
Key="Software\ASIO\Synchronous Audio Router"
269+
Key="SOFTWARE\ASIO\Synchronous Audio Router"
238270
Name="Description"
239271
Value="Synchronous Audio Router"
240272
Type="string"
241273
Action="write" />
242-
</Component>-->
274+
</Component>
243275
</DirectoryRef>
276+
<?endif ?>
244277
</Product>
245278
</Wix>

‎SarInstallerActions/SarInstallerActions.vcxproj

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<ProjectGuid>{D7CBDD84-368E-4E50-8196-8BF372DF648E}</ProjectGuid>
2323
<RootNamespace>SarInstallerActions</RootNamespace>
2424
<Keyword>Win32Proj</Keyword>
25+
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
2526
</PropertyGroup>
2627
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2728
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
@@ -66,8 +67,6 @@
6667
<_ProjectFileVersion>14.0.23107.0</_ProjectFileVersion>
6768
</PropertyGroup>
6869
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
69-
<OutDir>bin\$(Configuration)\</OutDir>
70-
<IntDir>obj\$(Configuration)\</IntDir>
7170
<LinkIncremental>true</LinkIncremental>
7271
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
7372
<CodeAnalysisRules />
@@ -80,8 +79,6 @@
8079
<CodeAnalysisRuleAssemblies />
8180
</PropertyGroup>
8281
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
83-
<OutDir>bin\$(Configuration)\</OutDir>
84-
<IntDir>obj\$(Configuration)\</IntDir>
8582
<LinkIncremental>false</LinkIncremental>
8683
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
8784
<CodeAnalysisRules />

‎SynchronousAudioRouter.sln

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.23107.0
4+
VisualStudioVersion = 14.0.24720.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SynchronousAudioRouter", "SynchronousAudioRouter\SynchronousAudioRouter.vcxproj", "{E918EA5F-86DD-4175-A879-D0C143290750}"
77
EndProject
@@ -80,6 +80,7 @@ Global
8080
{C13B0688-9AE1-412F-83C7-1745C303C4B3}.Release|x64.ActiveCfg = Release|x64
8181
{C13B0688-9AE1-412F-83C7-1745C303C4B3}.Release|x64.Build.0 = Release|x64
8282
{C13B0688-9AE1-412F-83C7-1745C303C4B3}.Release|x86.ActiveCfg = Release|x86
83+
{C13B0688-9AE1-412F-83C7-1745C303C4B3}.Release|x86.Build.0 = Release|x86
8384
{D7CBDD84-368E-4E50-8196-8BF372DF648E}.Debug|ARM.ActiveCfg = Debug|Win32
8485
{D7CBDD84-368E-4E50-8196-8BF372DF648E}.Debug|ARM64.ActiveCfg = Debug|Win32
8586
{D7CBDD84-368E-4E50-8196-8BF372DF648E}.Debug|x64.ActiveCfg = Debug|Win32

0 commit comments

Comments
 (0)
Please sign in to comment.