mirror of
https://github.com/bobranten/Ext4Fsd.git
synced 2025-10-30 13:28:31 -05:00
updated project files and install files
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
||||||
<assembly
|
|
||||||
xmlns="urn:schemas-microsoft-com:asm.v1"
|
|
||||||
manifestVersion="1.0">
|
|
||||||
<assemblyIdentity version=SXS_ASSEMBLY_VERSION
|
|
||||||
processorArchitecture=SXS_PROCESSOR_ARCHITECTURE
|
|
||||||
name=SXS_ASSEMBLY_NAME/>
|
|
||||||
<description>Ext2Mgr</description>
|
|
||||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
|
||||||
<security>
|
|
||||||
<requestedPrivileges>
|
|
||||||
<requestedExecutionLevel
|
|
||||||
level="requireAdministrator"
|
|
||||||
uiAccess="false"
|
|
||||||
/>
|
|
||||||
</requestedPrivileges>
|
|
||||||
</security>
|
|
||||||
</trustInfo>
|
|
||||||
</assembly>
|
|
||||||
@@ -107,6 +107,7 @@
|
|||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
@@ -123,6 +124,7 @@
|
|||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
@@ -143,6 +145,7 @@
|
|||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
@@ -163,6 +166,7 @@
|
|||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
c:\tools\mt -nologo -manifest Ext2Mgr.manifest -outputresource:Ext2Mgr.exe;#1
|
|
||||||
@@ -14,7 +14,7 @@ ULONG g_nVols = 0;
|
|||||||
EXT2_LETTER drvLetters[26];
|
EXT2_LETTER drvLetters[26];
|
||||||
EXT2_LETTER drvDigits[10];
|
EXT2_LETTER drvDigits[10];
|
||||||
|
|
||||||
ULONGLONG Ext2DrvLetters[2] = {-1, -1};
|
ULONGLONG Ext2DrvLetters[2] = {(ULONGLONG)-1, (ULONGLONG)-1};
|
||||||
|
|
||||||
PEXT2_DISK gDisks = NULL;
|
PEXT2_DISK gDisks = NULL;
|
||||||
PEXT2_CDROM gCdroms = NULL;
|
PEXT2_CDROM gCdroms = NULL;
|
||||||
|
|||||||
@@ -160,8 +160,7 @@ Ext2Fsd.sys,,,%DELFLG_IN_USE%
|
|||||||
|
|
||||||
[Strings]
|
[Strings]
|
||||||
Ext2Fsd*Author = "Matt Wu"
|
Ext2Fsd*Author = "Matt Wu"
|
||||||
Ext2Fsd*Class = "File System"
|
Ext2Fsd*Description = "Ext2,Ext3,Ext4 filesystem driver"
|
||||||
Ext2Fsd*Description = "Ext2,Ext3,Ext4 file system driver"
|
|
||||||
Ext2Fsd*eMail = "matt@ext2fsd.com"
|
Ext2Fsd*eMail = "matt@ext2fsd.com"
|
||||||
Ext2Fsd*Key = "Ext2Fsd"
|
Ext2Fsd*Key = "Ext2Fsd"
|
||||||
Ext2Fsd*URL = "http://www.ext2fsd.com"
|
Ext2Fsd*URL = "http://www.ext2fsd.com"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
; ext2, ext3 and ext4 filesystems)
|
; ext2, ext3 and ext4 filesystems)
|
||||||
;
|
;
|
||||||
Unicode true
|
Unicode true
|
||||||
Name "Ext2,Ext3,Ext4 file system driver"
|
Name "Ext2,Ext3,Ext4 filesystem driver"
|
||||||
!define PROJECTNAME "Ext2Fsd"
|
!define PROJECTNAME "Ext2Fsd"
|
||||||
!define DRIVERNAME "Ext2Fsd"
|
!define DRIVERNAME "Ext2Fsd"
|
||||||
Icon "..\Ext2Mgr\res\Ext2Mgr.ico"
|
Icon "..\Ext2Mgr\res\Ext2Mgr.ico"
|
||||||
@@ -30,12 +30,13 @@ OutFile "${PROJECTNAME}-setup.exe"
|
|||||||
!define SRVPATH_X64 "..\Ext2Srv\Release\x64"
|
!define SRVPATH_X64 "..\Ext2Srv\Release\x64"
|
||||||
!define SYSPATH_X86 "..\Ext4Fsd\Release\x86"
|
!define SYSPATH_X86 "..\Ext4Fsd\Release\x86"
|
||||||
!define SYSPATH_X64 "..\Ext4Fsd\Release\x64"
|
!define SYSPATH_X64 "..\Ext4Fsd\Release\x64"
|
||||||
!define MSVPATH_X86 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\x86\Microsoft.VC142.CRT"
|
!define MSVPATH_X86 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x86\Microsoft.VC142.CRT"
|
||||||
!define MSVPATH_X64 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\x64\Microsoft.VC142.CRT"
|
!define MSVPATH_X64 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT"
|
||||||
!define MFCPATH_X86 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\x86\Microsoft.VC142.MFC"
|
!define MFCPATH_X86 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x86\Microsoft.VC142.MFC"
|
||||||
!define MFCPATH_X64 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\x64\Microsoft.VC142.MFC"
|
!define MFCPATH_X64 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.MFC"
|
||||||
|
!define VCDLL_X86 "vcruntime140"
|
||||||
|
!define VCDLL_X64 "vcruntime140_1"
|
||||||
!define MFCDLL "mfc140"
|
!define MFCDLL "mfc140"
|
||||||
!define VCDLL "vcruntime140"
|
|
||||||
|
|
||||||
; the paths to the binaries when compiled with an older WDK to support Windows XP - Windows 8.1.
|
; the paths to the binaries when compiled with an older WDK to support Windows XP - Windows 8.1.
|
||||||
; (remember to sign or testsign the driver files before packing the installation program)
|
; (remember to sign or testsign the driver files before packing the installation program)
|
||||||
@@ -49,8 +50,9 @@ OutFile "${PROJECTNAME}-setup.exe"
|
|||||||
;!define MSVPATH_X64 "c:\windows\syswow64" ; "c:\windows\sysnative"
|
;!define MSVPATH_X64 "c:\windows\syswow64" ; "c:\windows\sysnative"
|
||||||
;!define MFCPATH_X86 "c:\windows\syswow64"
|
;!define MFCPATH_X86 "c:\windows\syswow64"
|
||||||
;!define MFCPATH_X64 "c:\windows\syswow64" ; "c:\windows\sysnative"
|
;!define MFCPATH_X64 "c:\windows\syswow64" ; "c:\windows\sysnative"
|
||||||
|
;!define VCDLL_X86 "msvcrt"
|
||||||
|
;!define VCDLL_X64 "msvcrt"
|
||||||
;!define MFCDLL "mfc42"
|
;!define MFCDLL "mfc42"
|
||||||
;!define VCDLL "msvcrt"
|
|
||||||
; note that when building the installation program on a 64-bit system
|
; note that when building the installation program on a 64-bit system
|
||||||
; the 32-bit system dll's will be in the "\windows\syswow64" directory while
|
; the 32-bit system dll's will be in the "\windows\syswow64" directory while
|
||||||
; the 64-bit system dll's will be in the "\windows\system32" directory and
|
; the 64-bit system dll's will be in the "\windows\system32" directory and
|
||||||
@@ -84,7 +86,7 @@ SetOutPath $INSTDIR
|
|||||||
; select the files.
|
; select the files.
|
||||||
IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
||||||
; 64-bit.
|
; 64-bit.
|
||||||
File "${MSVPATH_X64}\${VCDLL}.dll"
|
File "${MSVPATH_X64}\${VCDLL_X64}.dll"
|
||||||
File "${MFCPATH_X64}\${MFCDLL}.dll"
|
File "${MFCPATH_X64}\${MFCDLL}.dll"
|
||||||
File "${MGRPATH_X64}\Ext2Mgr.exe"
|
File "${MGRPATH_X64}\Ext2Mgr.exe"
|
||||||
File "${SRVPATH_X64}\Ext2Srv.exe"
|
File "${SRVPATH_X64}\Ext2Srv.exe"
|
||||||
@@ -93,7 +95,7 @@ IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
|||||||
Goto endif
|
Goto endif
|
||||||
else:
|
else:
|
||||||
; 32-bit.
|
; 32-bit.
|
||||||
File "${MSVPATH_X86}\${VCDLL}.dll"
|
File "${MSVPATH_X86}\${VCDLL_X86}.dll"
|
||||||
File "${MFCPATH_X86}\${MFCDLL}.dll"
|
File "${MFCPATH_X86}\${MFCDLL}.dll"
|
||||||
File "${MGRPATH_X86}\Ext2Mgr.exe"
|
File "${MGRPATH_X86}\Ext2Mgr.exe"
|
||||||
File "${SRVPATH_X86}\Ext2Srv.exe"
|
File "${SRVPATH_X86}\Ext2Srv.exe"
|
||||||
@@ -110,12 +112,16 @@ File "..\ext4fsd\notes.txt"
|
|||||||
File "..\ext4fsd\readme.txt"
|
File "..\ext4fsd\readme.txt"
|
||||||
|
|
||||||
; install the driver.
|
; install the driver.
|
||||||
CopyFiles $INSTDIR\${DRIVERNAME}.sys $SYSDIR\drivers\${DRIVERNAME}.sys
|
IfFileExists $WINDIR\SysWOW64\*.* 0 else32
|
||||||
ExecWait '"rundll32.exe" setupapi.dll,InstallHinfSection DefaultInstall 132 $INSTDIR\${DRIVERNAME}.inf'
|
ExecWait '"$WINDIR\sysnative\rundll32.exe" setupapi.dll,InstallHinfSection DefaultInstall 132 $INSTDIR\${DRIVERNAME}.inf'
|
||||||
|
Goto endif32
|
||||||
|
else32:
|
||||||
|
ExecWait '"rundll32.exe" setupapi.dll,InstallHinfSection DefaultInstall 132 $INSTDIR\${DRIVERNAME}.inf'
|
||||||
|
endif32:
|
||||||
|
|
||||||
; create the uninstaller.
|
; create the uninstaller.
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROJECTNAME}" \
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROJECTNAME}" \
|
||||||
"DisplayName" "Ext2,Ext3,Ext4 file system driver"
|
"DisplayName" "Ext2,Ext3,Ext4 filesystem driver"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROJECTNAME}" \
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROJECTNAME}" \
|
||||||
"UninstallString" '"$INSTDIR\Uninstall.exe"'
|
"UninstallString" '"$INSTDIR\Uninstall.exe"'
|
||||||
WriteUninstaller "Uninstall.exe"
|
WriteUninstaller "Uninstall.exe"
|
||||||
@@ -130,8 +136,8 @@ createShortCut "$SMPROGRAMS\${PROJECTNAME}\Documents\FAQ.lnk" "$INSTDIR\Document
|
|||||||
createShortCut "$SMPROGRAMS\${PROJECTNAME}\Documents\Release notes.lnk" "$INSTDIR\Documents\notes.txt" "" "" "" SW_SHOWNORMAL "" "Release notes"
|
createShortCut "$SMPROGRAMS\${PROJECTNAME}\Documents\Release notes.lnk" "$INSTDIR\Documents\notes.txt" "" "" "" SW_SHOWNORMAL "" "Release notes"
|
||||||
createShortCut "$SMPROGRAMS\${PROJECTNAME}\Documents\README.lnk" "$INSTDIR\Documents\readme.txt" "" "" "" SW_SHOWNORMAL "" "README"
|
createShortCut "$SMPROGRAMS\${PROJECTNAME}\Documents\README.lnk" "$INSTDIR\Documents\readme.txt" "" "" "" SW_SHOWNORMAL "" "README"
|
||||||
|
|
||||||
; try to start the driver but a reboot may be needed if an old driver
|
; install Ext2Srv and start the driver.
|
||||||
; was already loaded or if Windows check for signing was not disabled.
|
ExecWait '"$INSTDIR\Ext2Srv.exe" /installasservice'
|
||||||
ExecWait '"net.exe" start ${DRIVERNAME}'
|
ExecWait '"net.exe" start ${DRIVERNAME}'
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
@@ -153,13 +159,19 @@ FunctionEnd
|
|||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
|
|
||||||
; stop Ext2Srv and delete the reg key.
|
; stop and uninstall Ext2Srv.
|
||||||
ExecWait '"net.exe" stop ext2srv'
|
ExecWait '"net.exe" stop ext2srv'
|
||||||
DeleteRegKey HKLM "System\CurrentControlSet\Services\Ext2Srv"
|
ExecWait '"$INSTDIR\Ext2Srv.exe" /removeservice'
|
||||||
|
|
||||||
; uninstall the driver.
|
; uninstall the driver.
|
||||||
ExecWait '"rundll32.exe" setupapi.dll,InstallHinfSection DefaultUninstall 132 $INSTDIR\${DRIVERNAME}.inf'
|
IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
||||||
Delete $SYSDIR\drivers\${DRIVERNAME}.sys
|
ExecWait '"$WINDIR\sysnative\rundll32.exe" setupapi.dll,InstallHinfSection DefaultUninstall 132 $INSTDIR\${DRIVERNAME}.inf'
|
||||||
|
Delete $INSTDIR\${VCDLL_X64}.dll"
|
||||||
|
Goto endif
|
||||||
|
else:
|
||||||
|
ExecWait '"rundll32.exe" setupapi.dll,InstallHinfSection DefaultUninstall 132 $INSTDIR\${DRIVERNAME}.inf'
|
||||||
|
Delete $INSTDIR\${VCDLL_X86}.dll"
|
||||||
|
endif:
|
||||||
|
|
||||||
; delete the start menu items.
|
; delete the start menu items.
|
||||||
Delete "$SMPROGRAMS\${PROJECTNAME}\Documents\COPYRIGHT.lnk"
|
Delete "$SMPROGRAMS\${PROJECTNAME}\Documents\COPYRIGHT.lnk"
|
||||||
@@ -181,10 +193,8 @@ Delete $INSTDIR\${DRIVERNAME}.inf
|
|||||||
Delete $INSTDIR\${DRIVERNAME}.pdb
|
Delete $INSTDIR\${DRIVERNAME}.pdb
|
||||||
Delete $INSTDIR\${DRIVERNAME}.sys
|
Delete $INSTDIR\${DRIVERNAME}.sys
|
||||||
Delete $INSTDIR\${MFCDLL}.dll"
|
Delete $INSTDIR\${MFCDLL}.dll"
|
||||||
Delete $INSTDIR\${VCDLL}.dll"
|
|
||||||
Delete $INSTDIR\Ext2Mgr.exe"
|
Delete $INSTDIR\Ext2Mgr.exe"
|
||||||
Delete $INSTDIR\Ext2Srv.exe"
|
Delete $INSTDIR\Ext2Srv.exe"
|
||||||
|
|
||||||
Delete $INSTDIR\Uninstall.exe
|
Delete $INSTDIR\Uninstall.exe
|
||||||
|
|
||||||
RMDir $INSTDIR\Documents
|
RMDir $INSTDIR\Documents
|
||||||
|
|||||||
Reference in New Issue
Block a user