]
Denis Golovin commented on JBDS-4371:
-------------------------------------
Detecting locked files inside DevSuite installation folder could me done by this simple
script:
{code}(move C:\DevelopmentSuite C:\DevelopmentSuite${random} >nul 2>nul) &&
(move C:\DevelopmentSuite${random} C:\DevelopmentSuite >nul ) && echo nolock ||
echo lock
{code}
Windows will prevent renaming the folder if at leas one file inside the folder is locked
and output 'lock'.
Lot of errors printed when using uninstaller if the Studio has been
started
---------------------------------------------------------------------------
Key: JBDS-4371
URL:
https://issues.jboss.org/browse/JBDS-4371
Project: Red Hat JBoss Developer Studio (devstudio)
Issue Type: Bug
Components: platform-installer
Affects Versions: 10.4.0.AM3
Reporter: Aurélien Pupier
Assignee: Denis Golovin
Fix For: 11.0.0.AM1
Attachments: image-2017-04-24-17-33-11-098.png
{noformat}
Uninstalling Red Hat Development Suite
Removing shortcuts
Get-Content : Cannot find path
'C:\install\DevelopmentSuite-1.4.0-170424-1410\developer-studio\InstallConfigRecord.xml'
because it does not exist.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:50 char:25
+ ... stallConfig = Get-Content $devstudiofolder'\InstallConfigRecord.xml';
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\install\Deve...onfigRecord.xml:String)
[Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId :
PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Accessibility\Desktop.ini: You do not have sufficient access rights to
perform this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (Desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Accessibility
cannot be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Accessibility:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Accessories\Desktop.ini: You do not have sufficient access rights to
perform this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (Desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Accessories
cannot be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Accessories:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Administrative Tools\desktop.ini: You do not have sufficient access rights
to perform this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Administrative
Tools cannot be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Administrative Tools:DirectoryInfo)
[Remove-Item], IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Maintenance\Desktop.ini: You do not have sufficient access rights to
perform this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (Desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Maintenance
cannot be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Maintenance:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Startup\desktop.ini: You do not have sufficient access rights to perform
this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Startup cannot
be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Startup:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System
Tools\Desktop.ini: You do not have sufficient access rights to perform this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (Desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\System Tools
cannot be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (System Tools:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Windows PowerShell\desktop.ini: You do not have sufficient access rights to
perform this operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Windows
PowerShell cannot be removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Windows PowerShell:DirectoryInfo)
[Remove-Item], IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\Aurelien
Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\desktop.ini: You do not have sufficient access rights to perform this
operation.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (desktop.ini:FileInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Directory C:\Users\Aurelien Pupier\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\ cannot be
removed because it is not empty.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:60 char:7
+ Remove-Item $programs'\'$_ -Recurse;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\Aureli...
Menu\Programs\:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
DONE
Removing installation folder
C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\..\UNINST~1 - The process
cannot access the file because it is being used by another process.
Remove-Item : Cannot remove the item at
'C:\install\DevelopmentSuite-1.4.0-170424-1410' because it is in use.
At C:\install\DevelopmentSuite-1.4.0-170424-1410\uninstaller\uninstall.ps1:76 char:3
+ Remove-Item "$folder\.." -Recurse -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Remove-Item],
PSInvalidOperationException
+ FullyQualifiedErrorId :
InvalidOperation,Microsoft.PowerShell.Commands.RemoveItemCommand
DONE
Removing path entries
DONE
Press any key to exit
{noformat}
!image-2017-04-24-17-33-11-098.png|thumbnail!