Skip to content

Commit

Permalink
J2534_WIN: Change DLL name to a more standard name.
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondman committed Oct 16, 2017
1 parent c41d823 commit b035df4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions drivers/windows/pandaJ2534DLL Test/j2534_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace pandaJ2534DLLTest

TEST_METHOD(J2534DriverInit)
{
long err = LoadJ2534Dll("PandaJ2534.dll");
long err = LoadJ2534Dll("pandaJ2534_0404_32.dll");
Assert::IsTrue(err == 0, _T("Library failed to load properly. Check the export names and library location."));
}

Expand All @@ -31,7 +31,7 @@ namespace pandaJ2534DLLTest
public:

TEST_METHOD_INITIALIZE(init) {
LoadJ2534Dll("PandaJ2534.dll");
LoadJ2534Dll("pandaJ2534_0404_32.dll");
}

TEST_METHOD_CLEANUP(deinit) {
Expand Down Expand Up @@ -112,7 +112,7 @@ namespace pandaJ2534DLLTest
public:

TEST_METHOD_INITIALIZE(init) {
LoadJ2534Dll("PandaJ2534.dll");
LoadJ2534Dll("pandaJ2534_0404_32.dll");
}

TEST_METHOD_CLEANUP(deinit) {
Expand Down Expand Up @@ -477,7 +477,7 @@ namespace pandaJ2534DLLTest
public:

TEST_METHOD_INITIALIZE(init) {
LoadJ2534Dll("PandaJ2534.dll");
LoadJ2534Dll("pandaJ2534_0404_32.dll");
}

TEST_METHOD_CLEANUP(deinit) {
Expand Down
4 changes: 2 additions & 2 deletions drivers/windows/pandaJ2534DLL/pandaJ2534DLL.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)$(Configuration)_$(PlatformShortName)\</OutDir>
<TargetName>pandaJ2534</TargetName>
<TargetName>pandaJ2534_0404_32</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)$(Configuration)_$(PlatformShortName)\</OutDir>
<TargetName>pandaJ2534</TargetName>
<TargetName>pandaJ2534_0404_32</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down
8 changes: 4 additions & 4 deletions drivers/windows/panda_install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Section "panda driver (required)"

; Write the uninstall keys for Windows
;WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Install_Name}" "DisplayVersion" ""
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Install_Name}" "DisplayIcon" '"$INSTDIR\pandaJ2534.dll"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Install_Name}" "DisplayIcon" '"$INSTDIR\pandaJ2534_0404_32.dll"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Install_Name}" "DisplayName" "panda J2534 Drivers"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Install_Name}" "Publisher" "comma.ai"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Install_Name}" "UninstallString" '"$INSTDIR\uninstall.exe"'
Expand Down Expand Up @@ -114,11 +114,11 @@ Section "J2534 Driver"

SetOutPath $INSTDIR

File Release_x86\pandaJ2534.dll
File Release_x86\pandaJ2534_0404_32.dll

SetRegView 32
WriteRegDWORD HKLM "${J2534_Reg_Path}" "CAN" 00000001
WriteRegStr HKLM "${J2534_Reg_Path}" "FunctionLibrary" "$INSTDIR\pandaJ2534.dll"
WriteRegStr HKLM "${J2534_Reg_Path}" "FunctionLibrary" "$INSTDIR\pandaJ2534_0404_32.dll"
WriteRegDWORD HKLM "${J2534_Reg_Path}" "ISO15765" 00000001
WriteRegDWORD HKLM "${J2534_Reg_Path}" "J1850VPW" 00000000
WriteRegDWORD HKLM "${J2534_Reg_Path}" "SCI_A_ENGINE" 00000000
Expand Down Expand Up @@ -173,7 +173,7 @@ Section "Uninstall"

; Remove files and uninstaller
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\pandaJ2534.dll"
Delete "$INSTDIR\pandaJ2534_0404_32.dll"

; Remove directories used
RMDir "$INSTDIR"
Expand Down

0 comments on commit b035df4

Please sign in to comment.