Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Hidden 'Media' Folder; cannot delete #7

Open
bspach opened this issue Dec 9, 2015 · 2 comments
Open

Hidden 'Media' Folder; cannot delete #7

bspach opened this issue Dec 9, 2015 · 2 comments

Comments

@bspach
Copy link

bspach commented Dec 9, 2015

The program created a subfolder called "Media" when it extracted the ESD. However, it is not visible in Explorer; cannot take ownership; cannot delete. I found it when I ran TreeSize utility to see what was taking up space on my drive.

@gus33000
Copy link
Owner

hmm weird, can you try to reproduce it with the latest version? Never experienced this problem myself. Could be related to missing privileges on the folder when removing it. I'll try to look into it later. Also sorry for the delay between your report and my reply. But I was very busy lately.

@mgrinzPlayer
Copy link

Similar here, 4.0.0.0-march-2016-prev1

Fortunately, sources folder is empty.

log:

**********************
Windows PowerShell transcript start
Start time: 20160319155524
Username: USER-WIN10\User
RunAs User: USER-WIN10\User
Machine: USER-WIN10 (Microsoft Windows NT 10.0.14279.0)
Host Application: Powershell -windowstyle hidden -executionPolicy Bypass -File .\bin\main.ps1
Process ID: 2484
PSVersion: 5.0.14279.1000
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0.14279.1000
BuildVersion: 10.0.14279.1000
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************

Based on the script by abbodi1406
ESD Toolkit - December Tech Preview 2015 - Copyright 2015 (c) gus33000 - Version 4.0
For testing purposes only. Build 4.0.10122.0.rs1_release_multi(gus33000).151219-1115
Loading utilities module...

Gus's Common Utilities / Function Library
Version 1.9
Loading Utilities version 1.9...
Utilities have been loaded
Checking critical system files for a build string and build type information...
Checking registry for a more accurate build string...
Filename: 14291.1001.160314-2254.RS1_RELEASE_CLIENTPRO_RET_X64FRE_PL-PL.ISO
Volume Label: J_CPRA_X64FRE_PL-PL_DV5
SetupESD: D:\Install.esd
WinREESD: D:\Install.esd
D:\Install.esd
Index: 4
Gathering Timestamp information from the Setup Media...
Generating ISO...
You cannot call a method on a null-valued expression.
At C:\Users\User\Desktop\GusTools-March-2016-Preview-1\bin\main.ps1:1295 char:7
+                         $syncHash.$Control.Dispatcher.Invoke(
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Users\User\Desktop\GusTools-March-2016-Preview-1\bin\main.ps1:1295 char:7
+                         $syncHash.$Control.Dispatcher.Invoke(
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Remove-Item : Cannot remove item C:\Users\User\Desktop\GusTools-March-2016-Preview-1\Media\sources: Katalog nie jest p
usty.

At C:\Users\User\Desktop\GusTools-March-2016-Preview-1\bin\main.ps1:190 char:3
+         Remove-Item -recurse .\Media -force
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (sources:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\User\Desktop\GusTools-March-2016-Preview-1\Media\sources: Katalog nie jest
pusty.

At C:\Users\User\Desktop\GusTools-March-2016-Preview-1\bin\main.ps1:190 char:3
+         Remove-Item -recurse .\Media -force
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (sources:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\User\Desktop\GusTools-March-2016-Preview-1\Media: Katalog nie jest pusty.

At C:\Users\User\Desktop\GusTools-March-2016-Preview-1\bin\main.ps1:190 char:3
+         Remove-Item -recurse .\Media -force
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\User...Preview-1\Media:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot remove item C:\Users\User\Desktop\GusTools-March-2016-Preview-1\Media: Katalog nie jest pusty.

At C:\Users\User\Desktop\GusTools-March-2016-Preview-1\bin\main.ps1:190 char:3
+         Remove-Item -recurse .\Media -force
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\User...Preview-1\Media:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
False
PS>$global:?
True
**********************
Windows PowerShell transcript end
End time: 20160319160645
**********************

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants