Revision 2c94fd57 common_windows.sh

b/common_windows.sh
42 42
    # Write the initial Unattend.xml to %SystemDrive%
43 43
    cat unattend.xml > "$target/Unattend.xml"
44 44

  
45
    #TODO: I need to add code here that configures Windows to remove
46
    # Unattend.xml after the setup finishes. Leaving Unattend.xml in place
47
    # raises security concerns
45
    # Make sure Unattend.xml is removed after setup has finished
46
    mkdir -p "$target/Windows/Setup/Scripts"
47
    echo "del /Q /F C:\Unattend.xml" > "$target/Windows/Setup/Scripts/SetupComplete.cmd"
48 48
}
49 49

  

Also available in: Unified diff