Merge pull request #79 from wk6768/master

Fixed the issue that the RDP file was locked under the administrator …
This commit is contained in:
Kim Knight 2023-06-16 23:04:11 +10:00 committed by GitHub
commit 6a766fe113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,9 @@ Public Class RDP
If Not WixInstalled() Then Exit Sub
'Get RDP file parent folder path
Dim rdpParentFolder = My.Computer.FileSystem.GetParentPath(rdpFilePath)
'Dim rdpParentFolder = My.Computer.FileSystem.GetParentPath(rdpFilePath)
Dim lastSlashIndex = rdpFilePath.LastIndexOf("\")
Dim rdpParentFolder = Left(rdpFilePath, lastSlashIndex)
'Get the RDP filename and filename minus extension
Dim rdpFileName = My.Computer.FileSystem.GetFileInfo(rdpFilePath).Name