Skip to content

Commit

Permalink
Added VC runtime DLL in case it's missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-r committed Oct 1, 2023
1 parent 640285b commit b338a0e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions ASCOM.HomeMade.SBIGCamera.iss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[Setup]
AppID={{3a7e63ad-c913-44f0-9489-e1744c9c2991}}
AppName=ASCOM HomeMade Camera
AppVerName=ASCOM HomeMade SBig Camera Driver 1.2.19
AppVersion=1.2.19
AppVerName=ASCOM HomeMade SBig Camera Driver 1.2.20.14
AppVersion=1.2.20.14
AppPublisher=Cedric Raguenaud <cedric@raguenaud.earth>
AppPublisherURL=mailto:cedric@raguenaud.earth
AppSupportURL=https://github.com/cedric-r/ASCOM.HomeMade.SBIGCamera
AppUpdatesURL=https://github.com/cedric-r/ASCOM.HomeMade.SBIGCamera
VersionInfoVersion=1.2.19
VersionInfoVersion=1.2.20.14
MinVersion=0,6.1
DefaultDirName="{cf}\ASCOM\Camera\HomeMade SBIGCamera\"
DisableDirPage=yes
Expand Down Expand Up @@ -35,8 +35,11 @@ Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\readme.txt"; DestDir: "{app}"; Flags
; TODO: Add other files needed by your driver here (add subfolders above)
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.Astrometry.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.Attributes.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGCamera\bin\Debug\ASCOM.Cache.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.Controls.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.DeviceInterfaces.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGCamera\bin\Debug\ASCOM.DriverAccess.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGCamera\bin\Debug\sensors.txt"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.Exceptions.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.HomeMade.SBIGCommon.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\ASCOM.HomeMade.SBIGClient.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Expand All @@ -58,6 +61,7 @@ Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\SbigSharp.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\x86\HomeMade.SBIGUDrv.dll"; DestDir: "{app}\x86\"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\x64\HomeMade.SBIGUDrv.dll"; DestDir: "{app}\x64\"; Flags: comparetimestamp overwritereadonly ignoreversion
Source: "k:\astro\ASCOM.HomeMade.SBIGCamera\ASCOM.HomeMade.SBIGImagingCamera\bin\Debug\vcruntime140.dll"; DestDir: "{app}"; Flags: comparetimestamp overwritereadonly ignoreversion

; Only if driver is .NET
[Run]
Expand Down
4 changes: 2 additions & 2 deletions ASCOM.HomeMade.SBIGCommon/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
// by using the '*' as shown below:
//
// TODO - Set your driver's version here
[assembly: AssemblyVersion("1.2.19.0")]
[assembly: AssemblyFileVersion("1.2.19.0")]
[assembly: AssemblyVersion("1.2.20.14")]
[assembly: AssemblyFileVersion("1.2.20.14")]
Binary file modified HomeMade SBIG Camera Setup.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions SbigSharp/SBIGDLL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ static SBIGDLL()
if (Environment.Is64BitProcess)
{
//File.AppendAllText(@"c:\temp\SBIGDLL.txt", "Loading DLL from " + Path.Combine(AssemblyDirectory, @"x64\HomeMade.SBIGUDrv.dll") + "\n");
LoadLibrary(Path.Combine(AssemblyDirectory, @"x64\HomeMade.SBIGUDrv.dll"));
LoadLibrary(Path.Combine(Path.Combine(AssemblyDirectory, @"x64"), "HomeMade.SBIGUDrv.dll"));
}
else
{
//File.AppendAllText(@"c:\temp\SBIGDLL.txt", "Loading DLL from " + Path.Combine(AssemblyDirectory, @"x86\HomeMade.SBIGUDrv.dll") + "\n");
LoadLibrary(Path.Combine(AssemblyDirectory, @"x86\HomeMade.SBIGUDrv.dll"));
LoadLibrary(Path.Combine(Path.Combine(AssemblyDirectory, @"x86"), "HomeMade.SBIGUDrv.dll"));
}
}

Expand Down
4 changes: 4 additions & 0 deletions SbigSharp/SbigSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
</PropertyGroup>

<ItemGroup>
<None Remove="vcruntime140.dll" />
<None Remove="x64\HomeMade.SBIGUDrv.dll" />
<None Remove="x86\HomeMade.SBIGUDrv.dll" />
</ItemGroup>

<ItemGroup>
<Content Include="vcruntime140.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="x64\HomeMade.SBIGUDrv.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
Binary file added SbigSharp/vcruntime140.dll
Binary file not shown.

0 comments on commit b338a0e

Please sign in to comment.