Skip to content

Missing desktop.ini file #75

Closed
Closed

Description

@schrebra

Checklist

Report



Describe what is happening
When booting up a freshly made PE.iso there is a missing file and asks if It can save a new one. The file is called desktop.ini . I have built 8 different versions of PE.isos with different settings and windows sources. Ive tried looking at the newly made PE.iso install.wim file and went to the directory where it said the file was missing and it shows the file as being there. I did thorough research to see if this issue was documented before with no luck.

I looked through the PheonixPE log file and the only thing relevant to this error are these lines below. Ill attach the full log in case I missed anything.

PhoenixPE.log

14:23:45:826 Loading the Shell...
14:23:45:826 The Shell is already running.
14:23:45:826 PostShell Processing...
14:23:45:826 RunProgram(): [X:\windows\system32\attrib.exe +s +h X:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup] PID 2420 started.

The missing file is desktop.ini

The location of the missing file is X:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Current source build is Windows 10 20H2

Seems like something is deleting that file after the fact.

To Reproduce
Step-by-step instructions on how to reproduce the behavior:

  1. Boot into the WindowsPE.iso
  2. Wait until it shows the error message below.

Expected behavior
When booting into the PE.iso I expect there to be no errors.

Screenshots/Logs
If applicable provide any error messages, log files, screenshots, scripts, etc. that may be helpful for troubleshooting or further explain your issue.

image

image

image

Activity

  1. added
    bug
    on Jan 20, 2024
  2. self-assigned this
    on Jan 20, 2024
  3. homes32 commented on Jan 20, 2024

    @homes32
    Contributor

    I'm able to reproduce this with a Win10 source and have an idea where the problem might be. Thanks for reporting.

  4. schrebra commented on Jan 21, 2024

    @schrebra
    Author

    I wanted to give more information while I try out different configurations. I tried Windows 10 20H1 as a source and got the same issue with the missing file. However, with 20H1 with the notepad2 script removed and no third party notepad installed. I got it to open with regular notepad but did not say it was missing. I did check though and it was missing.
    Capture
    Capture1

  5. homes32 commented on Jan 22, 2024

    @homes32
    Contributor

    This was an interesting one. File attributes were being stripped when the WIM file was extracted, however PECMD was either intentionally or unintentionally suppressing execution of the start menu Startup folder. This is not documented behavior. With the move to AU3 the desktop.ini files did not have the hidden and system attributes applied so it executed like a regular program. The file attributes have been corrected so this issue should no longer occur.

  6. schrebra commented on Jan 22, 2024

    @schrebra
    Author

    You're awesome. Thank you for your time and dedication to an awesome project. I plan on trying out new releases in the future so I'll try to submit anything not working. :)

  7. Mikka-TheOne commented on Jan 22, 2024

    @Mikka-TheOne

    One last note before the issue is closed:

    In the new release, I noticed that on the Desktop, in addition to shortcuts, the Desktop.ini file is also displayed (partially transparent due to its hidden attribute). I finally edited line 477 in 001-Explorer.script:
    RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","ShowSuperHidden",0
    If Show Hidden & System Files is now ticked in 001-Explorer.script, no Desktop.ini appears on the Desktop.

  8. homes32 commented on Jan 23, 2024

    @homes32
    Contributor

    One last note before the issue is closed:

    In the new release, I noticed that on the Desktop, in addition to shortcuts, the Desktop.ini file is also displayed (partially transparent due to its hidden attribute). I finally edited line 477 in 001-Explorer.script: RegWrite,HKLM,0x4,"Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","ShowSuperHidden",0 If Show Hidden & System Files is now ticked in 001-Explorer.script, no Desktop.ini appears on the Desktop.

    Easy enough to add as an option. I don't really like hidden/system/extensions lumped together anyway.

  9. Mikka-TheOne commented on Jan 23, 2024

    @Mikka-TheOne

    I'm using a personalised version of 001-Explorer.script in MyApps.
    Apart from special requirements for me (commented out lines), it also comes with a few useful changes for everyone.
    They are indicated in the comments ["(Mikka)"]. I've attached it even if it's somewhat off-topic.

    001-Explorer_(mod).zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions