TurboPack / MustangpeakVirtualshellTools

Delphi and CBuilder Components to create Explorer type programs
Other
49 stars 24 forks source link

VirtualShellMRU possible bug: Windows 11 and VMWare Workstation don't play nicely together #25

Closed mhietan closed 2 years ago

mhietan commented 2 years ago

Hi,

  1. Drop VirtualExplorerTreeview and VirtualShellMRU in form.
  2. Link MRU to ExplorerTreeview
  3. In code:
    
    procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
    begin
    VirtualShellMRU1.SaveToFile(ExtractFilePath(Application.ExeName) + '\TestMRU.cfg');
    end;

procedure TForm1.FormShow(Sender: TObject); begin if FileExists(ExtractFilePath(Application.ExeName) + '\TestMRU.cfg') then begin VirtualShellMRU1.LoadFromFile(ExtractFilePath(Application.ExeName) + '\TestMRU.cfg'); end; end;


4. Try running...
5. Note! Example C:\Users\userprofile\Pictures\Camera Roll will be "restored" nicely, but not example: D:\Program Files (x86)\Embarcadero. It will be reverted previous state, not the Emb folder.
6. Try running in host machine it works.
mhietan commented 2 years ago

Hi,

My bad. It seems that the extra drive under VMWare was Removable drive. So VirtualShellMRU: SaveRemovableDrivePaths to True solved this issue.