mirror of
https://github.com/bobranten/Ext4Fsd.git
synced 2026-05-21 21:30:40 -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>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
@@ -123,6 +124,7 @@
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
@@ -143,6 +145,7 @@
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
@@ -163,6 +166,7 @@
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<AdditionalDependencies>ntdll.lib;setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<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 drvDigits[10];
|
||||
|
||||
ULONGLONG Ext2DrvLetters[2] = {-1, -1};
|
||||
ULONGLONG Ext2DrvLetters[2] = {(ULONGLONG)-1, (ULONGLONG)-1};
|
||||
|
||||
PEXT2_DISK gDisks = NULL;
|
||||
PEXT2_CDROM gCdroms = NULL;
|
||||
|
||||
@@ -160,7 +160,6 @@ Ext2Fsd.sys,,,%DELFLG_IN_USE%
|
||||
|
||||
[Strings]
|
||||
Ext2Fsd*Author = "Matt Wu"
|
||||
Ext2Fsd*Class = "File System"
|
||||
Ext2Fsd*Description = "Ext2,Ext3,Ext4 filesystem driver"
|
||||
Ext2Fsd*eMail = "matt@ext2fsd.com"
|
||||
Ext2Fsd*Key = "Ext2Fsd"
|
||||
|
||||
+26
-16
@@ -30,12 +30,13 @@ OutFile "${PROJECTNAME}-setup.exe"
|
||||
!define SRVPATH_X64 "..\Ext2Srv\Release\x64"
|
||||
!define SYSPATH_X86 "..\Ext4Fsd\Release\x86"
|
||||
!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_X64 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\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_X64 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.24.28127\x64\Microsoft.VC142.MFC"
|
||||
!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.25.28508\x64\Microsoft.VC142.CRT"
|
||||
!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.25.28508\x64\Microsoft.VC142.MFC"
|
||||
!define VCDLL_X86 "vcruntime140"
|
||||
!define VCDLL_X64 "vcruntime140_1"
|
||||
!define MFCDLL "mfc140"
|
||||
!define VCDLL "vcruntime140"
|
||||
|
||||
; 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)
|
||||
@@ -49,8 +50,9 @@ OutFile "${PROJECTNAME}-setup.exe"
|
||||
;!define MSVPATH_X64 "c:\windows\syswow64" ; "c:\windows\sysnative"
|
||||
;!define MFCPATH_X86 "c:\windows\syswow64"
|
||||
;!define MFCPATH_X64 "c:\windows\syswow64" ; "c:\windows\sysnative"
|
||||
;!define VCDLL_X86 "msvcrt"
|
||||
;!define VCDLL_X64 "msvcrt"
|
||||
;!define MFCDLL "mfc42"
|
||||
;!define VCDLL "msvcrt"
|
||||
; 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 64-bit system dll's will be in the "\windows\system32" directory and
|
||||
@@ -84,7 +86,7 @@ SetOutPath $INSTDIR
|
||||
; select the files.
|
||||
IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
||||
; 64-bit.
|
||||
File "${MSVPATH_X64}\${VCDLL}.dll"
|
||||
File "${MSVPATH_X64}\${VCDLL_X64}.dll"
|
||||
File "${MFCPATH_X64}\${MFCDLL}.dll"
|
||||
File "${MGRPATH_X64}\Ext2Mgr.exe"
|
||||
File "${SRVPATH_X64}\Ext2Srv.exe"
|
||||
@@ -93,7 +95,7 @@ IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
||||
Goto endif
|
||||
else:
|
||||
; 32-bit.
|
||||
File "${MSVPATH_X86}\${VCDLL}.dll"
|
||||
File "${MSVPATH_X86}\${VCDLL_X86}.dll"
|
||||
File "${MFCPATH_X86}\${MFCDLL}.dll"
|
||||
File "${MGRPATH_X86}\Ext2Mgr.exe"
|
||||
File "${SRVPATH_X86}\Ext2Srv.exe"
|
||||
@@ -110,8 +112,12 @@ File "..\ext4fsd\notes.txt"
|
||||
File "..\ext4fsd\readme.txt"
|
||||
|
||||
; install the driver.
|
||||
CopyFiles $INSTDIR\${DRIVERNAME}.sys $SYSDIR\drivers\${DRIVERNAME}.sys
|
||||
IfFileExists $WINDIR\SysWOW64\*.* 0 else32
|
||||
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.
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROJECTNAME}" \
|
||||
@@ -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\README.lnk" "$INSTDIR\Documents\readme.txt" "" "" "" SW_SHOWNORMAL "" "README"
|
||||
|
||||
; try to start the driver but a reboot may be needed if an old driver
|
||||
; was already loaded or if Windows check for signing was not disabled.
|
||||
; install Ext2Srv and start the driver.
|
||||
ExecWait '"$INSTDIR\Ext2Srv.exe" /installasservice'
|
||||
ExecWait '"net.exe" start ${DRIVERNAME}'
|
||||
SectionEnd
|
||||
|
||||
@@ -153,13 +159,19 @@ FunctionEnd
|
||||
Section "Uninstall"
|
||||
SetShellVarContext all
|
||||
|
||||
; stop Ext2Srv and delete the reg key.
|
||||
; stop and uninstall Ext2Srv.
|
||||
ExecWait '"net.exe" stop ext2srv'
|
||||
DeleteRegKey HKLM "System\CurrentControlSet\Services\Ext2Srv"
|
||||
ExecWait '"$INSTDIR\Ext2Srv.exe" /removeservice'
|
||||
|
||||
; uninstall the driver.
|
||||
IfFileExists $WINDIR\SysWOW64\*.* 0 else
|
||||
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 $SYSDIR\drivers\${DRIVERNAME}.sys
|
||||
Delete $INSTDIR\${VCDLL_X86}.dll"
|
||||
endif:
|
||||
|
||||
; delete the start menu items.
|
||||
Delete "$SMPROGRAMS\${PROJECTNAME}\Documents\COPYRIGHT.lnk"
|
||||
@@ -181,10 +193,8 @@ Delete $INSTDIR\${DRIVERNAME}.inf
|
||||
Delete $INSTDIR\${DRIVERNAME}.pdb
|
||||
Delete $INSTDIR\${DRIVERNAME}.sys
|
||||
Delete $INSTDIR\${MFCDLL}.dll"
|
||||
Delete $INSTDIR\${VCDLL}.dll"
|
||||
Delete $INSTDIR\Ext2Mgr.exe"
|
||||
Delete $INSTDIR\Ext2Srv.exe"
|
||||
|
||||
Delete $INSTDIR\Uninstall.exe
|
||||
|
||||
RMDir $INSTDIR\Documents
|
||||
|
||||
Reference in New Issue
Block a user