stascorp / rdpwrap

RDP Wrapper Library
Apache License 2.0
14.5k stars 3.8k forks source link

System32 Install causes update failure #293

Open Juesto opened 7 years ago

Juesto commented 7 years ago

PS: where is the log file? Commands i've ran:

C:\Windows\System32>RDPWInst.exe -?
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

USAGE:
RDPWInst.exe [-l|-i[-s][-o]|-w|-u[-k]|-r]

-l          display the license agreement
-i          install wrapper to Program Files folder (default)
-i -s       install wrapper to System32 folder
-i -o       online install mode (loads latest INI file)
-w          get latest update for INI file
-u          uninstall wrapper
-u -k       uninstall wrapper and keep settings
-r          force restart Terminal Services

C:\Windows\System32>RDPWInst.exe -w -s -o
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Checking for updates...
[-] Failed to read INI file.

C:\Windows\System32>RDPWInst.exe -u -k
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Uninstalling...
[+] TermService found (pid 556).
[*] No shared services found.
[*] Resetting service library...
[*] Terminating service...
[*] Removing files...
[+] Removed file: C:\windows\system32\rdpwrap.ini
[+] Removed file: C:\windows\system32\rdpwrap.dll
[-] RemoveDirectory error (code 32).
[*] Starting TermService...
[+] Successfully uninstalled.

C:\Windows\System32>RDPWInst.exe -i -s -o
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Notice to user:
  - By using all or any portion of this software, you are agreeing
  to be bound by all the terms and conditions of the license agreement.
  - To read the license agreement, run the installer with -l parameter.
  - If you do not agree to any terms of the license agreement,
  do not use the software.
[*] Installing...
[*] Terminal Services version: 10.0.14393.0
[+] This version of Terminal Services is fully supported.
[+] TermService found (pid 11084).
[*] No shared services found.
[*] Extracting files...
[*] Downloading latest INI file...
[+] Latest INI file -> C:\windows\system32\rdpwrap.ini
[+] Extracted rdpw64 -> C:\windows\system32\rdpwrap.dll
[*] Configuring service library...
[*] Checking dependencies...
[*] Checking CertPropSvc...
[*] Checking SessionEnv...
[*] Terminating service...
[*] Starting TermService...
[*] Configuring registry...
[*] Configuring firewall...
Ok.

[+] Successfully installed.

C:\Windows\System32>RDPWInst.exe -w -s -o
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Checking for updates...
[-] Failed to read INI file.

C:\Windows\System32>RDPWInst.exe -w
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Checking for updates...
[-] Failed to read INI file.

C:\Windows\System32>RDPWInst.exe -u -k
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Uninstalling...
[+] TermService found (pid 4352).
[*] No shared services found.
[*] Resetting service library...
[*] Terminating service...
[*] Removing files...
[+] Removed file: C:\windows\system32\rdpwrap.ini
[+] Removed file: C:\windows\system32\rdpwrap.dll
[-] RemoveDirectory error (code 32).
[*] Starting TermService...
[+] Successfully uninstalled.

C:\Windows\System32>RDPWInst.exe -i -o
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Notice to user:
  - By using all or any portion of this software, you are agreeing
  to be bound by all the terms and conditions of the license agreement.
  - To read the license agreement, run the installer with -l parameter.
  - If you do not agree to any terms of the license agreement,
  do not use the software.
[*] Installing...
[*] Terminal Services version: 10.0.14393.0
[+] This version of Terminal Services is fully supported.
[+] TermService found (pid 9516).
[*] No shared services found.
[*] Extracting files...
[+] Folder created: C:\Program Files\RDP Wrapper\
[*] Downloading latest INI file...
[+] Latest INI file -> C:\Program Files\RDP Wrapper\rdpwrap.ini
[+] Extracted rdpw64 -> C:\Program Files\RDP Wrapper\rdpwrap.dll
[*] Configuring service library...
[*] Checking dependencies...
[*] Checking CertPropSvc...
[*] Checking SessionEnv...
[*] Terminating service...
[*] Starting TermService...
[*] Configuring registry...
[*] Configuring firewall...
Ok.

[+] Successfully installed.

C:\Windows\System32>RDPWInst.exe -w
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Checking for updates...
[*] Current update date: 2017.08.04
[*] Latest update date:  2017.08.04
[*] Everything is up to date.

C:\Windows\System32>RDPWInst.exe -u -k
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Uninstalling...
[+] TermService found (pid 11156).
[*] No shared services found.
[*] Resetting service library...
[*] Terminating service...
[*] Removing files...
[+] Removed file: C:\Program Files\RDP Wrapper\rdpwrap.ini
[+] Removed file: C:\Program Files\RDP Wrapper\rdpwrap.dll
[+] Removed folder: C:\Program Files\RDP Wrapper\
[*] Starting TermService...
[+] Successfully uninstalled.

C:\Windows\System32>RDPWInst.exe -i -s -o
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Notice to user:
  - By using all or any portion of this software, you are agreeing
  to be bound by all the terms and conditions of the license agreement.
  - To read the license agreement, run the installer with -l parameter.
  - If you do not agree to any terms of the license agreement,
  do not use the software.
[*] Installing...
[*] Terminal Services version: 10.0.14393.0
[+] This version of Terminal Services is fully supported.
[+] TermService found (pid 12004).
[*] No shared services found.
[*] Extracting files...
[*] Downloading latest INI file...
[+] Latest INI file -> C:\windows\system32\rdpwrap.ini
[+] Extracted rdpw64 -> C:\windows\system32\rdpwrap.dll
[*] Configuring service library...
[*] Checking dependencies...
[*] Checking CertPropSvc...
[*] Checking SessionEnv...
[*] Terminating service...
[*] Starting TermService...
[*] Configuring registry...
[*] Configuring firewall...
Ok.

[+] Successfully installed.

C:\Windows\System32>RDPWInst.exe -w
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Checking for updates...
[-] Failed to read INI file.

C:\Windows\System32>RDPWInst.exe -w -s
RDP Wrapper Library v1.6
Installer v2.3
Copyright (C) Stas'M Corp. 2016

[*] Checking for updates...
[-] Failed to read INI file.

C:\Windows\System32>
binarymaster commented 7 years ago

I know about this issue on Windows 10 but not solved it yet. This is somehow related to access rights.

Juesto commented 7 years ago

Strange since administrative rights are correct. Could be due to special folder treatment? PS: Server 2016 here

Odeivo commented 7 years ago

Perhaps trustedinstaller permissions??

Juesto commented 7 years ago

i doubt since rdpwarp files aren't trustedinstaller protected /!\ it is attempting to delete system32 on uninstall!?

binarymaster commented 7 years ago

it is attempting to delete system32 on uninstall!?

Yes, but it wouldn't, since directory is not empty.

Juesto commented 7 years ago

anyway, it doesn't make any sense that it can't find the INI while it does have permissions to update it!

it is attempting to delete system32 on uninstall!? Yes, but it wouldn't, since directory is not empty.

Would the same behavior happen if you place additional files in the default folder for example?