dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.21k stars 661 forks source link

Passive installation v2.0.3.1000 #1068

Closed pp111 closed 2 years ago

pp111 commented 2 years ago

Hi,

When I run the installer like this:

DokanSetup.exe /passive

Dokan is installed correctly. However if I run again the same command again, dokan is uninstalled.

What I expect is the same behavior than in version 1 installer. If dokan is already installed the installation aborts (since it can not be updated), and it remains installed. It should be only uninstalled if I run the command with /uninstall parameter.

Liryna commented 2 years ago

@pp111 Have you tried this: /install /passive

pp111 commented 2 years ago

Hi, even if I use /install the driver is uninstalled

A few files files are not removed and remain in the folder C:\Program Files\Dokan\Dokan Library-2.0.3 these files are not removed even with normal uninstall, so it seems another issue.

Liryna commented 2 years ago

1.5.1 installer run when the app is already installed:

[1D38:21F8][2022-02-16T08:19:06]i001: Burn v3.11.2.4516, Windows v10.0 (Build 19044: Service Pack 0), path: C:\Windows\Temp\{9D092C29-D613-423C-AAC7-A6E2453BEDC8}\.cr\DokanSetup (1).exe
[1D38:21F8][2022-02-16T08:19:06]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles6432Folder]Dokan\Dokan Library-1.5.0'
[1D38:21F8][2022-02-16T08:19:06]i000: Initializing numeric variable 'DevFilesCheckbox' to value '1'
[1D38:21F8][2022-02-16T08:19:06]i009: Command Line: '"-burn.clean.room=C:\Users\adrienj\Downloads\DokanSetup (1).exe" -burn.filehandle.attached=528 -burn.filehandle.self=536 /passive'
[1D38:21F8][2022-02-16T08:19:06]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\adrienj\Downloads\DokanSetup (1).exe'
[1D38:21F8][2022-02-16T08:19:06]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\adrienj\Downloads\'
[1D38:21F8][2022-02-16T08:19:06]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\adrienj\AppData\Local\Temp\Dokan_Library_1.5.0.3000_Bundle_20220216081906.log'
[1D38:21F8][2022-02-16T08:19:06]i000: Setting string variable 'WixBundleManufacturer' to value 'Dokany Project'
[1D38:06B0][2022-02-16T08:19:06]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[1D38:06B0][2022-02-16T08:19:06]i000: Setting version variable 'WixBundleFileVersion' to value '1.5.0.3000'
[1D38:21F8][2022-02-16T08:19:06]i100: Detect begin, 2 packages
[1D38:21F8][2022-02-16T08:19:06]i000: Setting version variable 'WINTRUSTVERSION' to value '10.0.19041.1503'

[1D38:21F8][2022-02-16T08:19:06]i101: Detected package: Dokan_x86.msi, state: Absent, cached: None
[1D38:21F8][2022-02-16T08:19:06]i101: Detected package: Dokan_x64.msi, state: Present, cached: Complete
[1D38:21F8][2022-02-16T08:19:06]i052: Condition 'Installed OR VersionNT > v6.1 OR (VersionNT = v6.1 AND ServicePackLevel >= 1)' evaluates to true.
[1D38:21F8][2022-02-16T08:19:06]i052: Condition 'Installed OR VersionNT > v6.1 OR (VersionNT = v6.1 AND (WINTRUSTVERSION >= v6.1.7601.24382))' evaluates to true.
[1D38:21F8][2022-02-16T08:19:06]i199: Detect complete, result: 0x0
[1D38:21F8][2022-02-16T08:19:06]i200: Plan begin, 2 packages, action: Modify
[1D38:21F8][2022-02-16T08:19:06]i052: Condition 'NOT VersionNT64' evaluates to false.

[1D38:21F8][2022-02-16T08:19:06]i052: Condition 'VersionNT64' evaluates to true.
[1D38:21F8][2022-02-16T08:19:06]i201: Planned package: Dokan_x86.msi, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1D38:21F8][2022-02-16T08:19:06]i201: Planned package: Dokan_x64.msi, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register
[1D38:21F8][2022-02-16T08:19:06]i299: Plan complete, result: 0x0
[1D38:21F8][2022-02-16T08:19:06]i300: Apply begin
[1D38:21F8][2022-02-16T08:19:06]i010: Launching elevated engine process.
[1D38:21F8][2022-02-16T08:19:06]i011: Launched elevated engine process.
[1D38:21F8][2022-02-16T08:19:06]i012: Connected to elevated engine.
[1024:1814][2022-02-16T08:19:07]i358: Pausing automatic updates.
[1024:1814][2022-02-16T08:19:07]i359: Paused automatic updates.
[1024:1814][2022-02-16T08:19:07]i360: Creating a system restore point.
[1024:1814][2022-02-16T08:19:07]w363: Could not create system restore point, error: 0x80070422. Continuing...
[1024:1814][2022-02-16T08:19:07]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{397bbe7f-d02b-4f1c-805f-57e0040e21dc}, resume: Active, restart initiated: No, disable resume: No

2.0.3

[20CC:0758][2022-02-16T08:19:18]i001: Burn v3.11.2.4516, Windows v10.0 (Build 19044: Service Pack 0), path: C:\Windows\Temp\{5BAA8740-C8BF-43EE-BD8B-A79BA2185495}\.cr\DokanSetup.exe
[20CC:0758][2022-02-16T08:19:18]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles6432Folder]Dokan\Dokan Library-2.0.3'
[20CC:0758][2022-02-16T08:19:18]i000: Initializing numeric variable 'DevFilesCheckbox' to value '1'
[20CC:0758][2022-02-16T08:19:18]i009: Command Line: '-burn.clean.room=C:\Users\adrienj\Downloads\DokanSetup.exe -burn.filehandle.attached=528 -burn.filehandle.self=692 /passive'
[20CC:0758][2022-02-16T08:19:18]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\adrienj\Downloads\DokanSetup.exe'
[20CC:0758][2022-02-16T08:19:18]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\adrienj\Downloads\'
[20CC:0758][2022-02-16T08:19:18]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\adrienj\AppData\Local\Temp\Dokan_Library_2.0.3.1000_Bundle_20220216081918.log'
[20CC:0758][2022-02-16T08:19:18]i000: Setting string variable 'WixBundleManufacturer' to value 'Dokany Project'
[20CC:1B80][2022-02-16T08:19:18]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[20CC:1B80][2022-02-16T08:19:18]i000: Setting version variable 'WixBundleFileVersion' to value '2.0.3.1000'
[20CC:0758][2022-02-16T08:19:18]i100: Detect begin, 2 packages
[20CC:0758][2022-02-16T08:19:18]i000: Setting version variable 'WINTRUSTVERSION' to value '10.0.19041.1503'
[20CC:0758][2022-02-16T08:19:18]w120: Detected partially cached package: Dokan_x86.msi, invalid payload: Dokan_x86.msi, reason: 0x80070002
[20CC:0758][2022-02-16T08:19:18]i101: Detected package: Dokan_x86.msi, state: Present, cached: Partial
[20CC:0758][2022-02-16T08:19:18]i101: Detected package: Dokan_x64.msi, state: Present, cached: Complete
[20CC:0758][2022-02-16T08:19:18]i052: Condition 'Installed OR VersionNT > v6.1 OR (VersionNT = v6.1 AND ServicePackLevel >= 1)' evaluates to true.
[20CC:0758][2022-02-16T08:19:18]i052: Condition 'Installed OR VersionNT > v6.1 OR (VersionNT = v6.1 AND (WINTRUSTVERSION >= v6.1.7601.24382))' evaluates to true.
[20CC:0758][2022-02-16T08:19:18]i199: Detect complete, result: 0x0
[20CC:0758][2022-02-16T08:19:18]i200: Plan begin, 2 packages, action: Modify
[20CC:0758][2022-02-16T08:19:18]i052: Condition 'NOT VersionNT64' evaluates to false.
[20CC:0758][2022-02-16T08:19:18]w208: Plan disabled rollback for package: Dokan_x86.msi, due to incomplete cache: Partial, original rollback action: Install
[20CC:0758][2022-02-16T08:19:18]i000: Setting string variable 'WixBundleLog_Dokan_x86.msi' to value 'C:\Users\adrienj\AppData\Local\Temp\Dokan_Library_2.0.3.1000_Bundle_20220216081918_000_Dokan_x86.msi.log'
[20CC:0758][2022-02-16T08:19:18]i052: Condition 'VersionNT64' evaluates to true.
[20CC:0758][2022-02-16T08:19:18]i201: Planned package: Dokan_x86.msi, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: None, cache: No, uncache: Yes, dependency: Unregister
[20CC:0758][2022-02-16T08:19:18]i201: Planned package: Dokan_x64.msi, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register
[20CC:0758][2022-02-16T08:19:18]i299: Plan complete, result: 0x0
[20CC:0758][2022-02-16T08:19:18]i300: Apply begin
[20CC:0758][2022-02-16T08:19:18]i010: Launching elevated engine process.
[20CC:0758][2022-02-16T08:19:18]i011: Launched elevated engine process.
[20CC:0758][2022-02-16T08:19:18]i012: Connected to elevated engine.
[1724:26B8][2022-02-16T08:19:18]i358: Pausing automatic updates.
[1724:26B8][2022-02-16T08:19:18]i359: Paused automatic updates.
[1724:26B8][2022-02-16T08:19:18]i360: Creating a system restore point.
[1724:26B8][2022-02-16T08:19:18]w363: Could not create system restore point, error: 0x80070422. Continuing...
[1724:26B8][2022-02-16T08:19:18]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{600d2149-9152-4419-a3cf-835b960ce7a1}, resume: Active, restart initiated: No, disable resume: No
[1724:26B8][2022-02-16T08:19:18]i326: Removed dependency: {600d2149-9152-4419-a3cf-835b960ce7a1} on package provider: {DB21E410-4FE3-0200-0003-220213223853}, package Dokan_x86.msi
[1724:26B8][2022-02-16T08:19:18]i329: Removed package dependency provider: {DB21E410-4FE3-0200-0003-220213223853}, package: Dokan_x86.msi
[1724:26B8][2022-02-16T08:19:18]i301: Applying execute package: Dokan_x86.msi, action: Uninstall, path: (null), arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" MSIUNINSTALLSUPERSEDEDCOMPONENTS="1" INSTALLDIR="C:\Program Files\Dokan\Dokan Library-2.0.3" INSTALLDEVFILES="1"'

The diff is :

[20CC:0758][2022-02-16T08:19:18]i101: Detected package: Dokan_x86.msi, state: Present, cached: Partial

[20CC:0758][2022-02-16T08:19:18]i201: Planned package: Dokan_x86.msi, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: None, cache: No, uncache: Yes, dependency: Unregister

I expect it to be fixed by https://github.com/dokan-dev/dokany/commit/4a8979aee178d543bcb863fdf697d73827d6fa75

Thanks for the report!