; Non-destructive rollback. Keep binaries/settings/backups.
FailAt 10
If NOT EXISTS SYS:Prefs/TobysPinkMatrix-backup
 Echo "No installer backup found. No changes made."
 Wait 8
 Quit 20
EndIf
If EXISTS SYS:Prefs/TobysPinkMatrix-backup/TobysPinkMatrix-removed
 Echo "Already disabled. No changes made."
 Wait 8
 Quit 20
EndIf
If EXISTS SYS:WBStartup/Matrix
 Echo "Another Matrix startup is present. No changes made."
 Wait 8
 Quit 20
EndIf
If EXISTS SYS:WBStartup/Matrix.info
 Echo "Another Matrix icon is present. No changes made."
 Wait 8
 Quit 20
EndIf
If EXISTS SYS:WBStartup/TobysPinkMatrix
 Rename SYS:WBStartup/TobysPinkMatrix SYS:Prefs/TobysPinkMatrix-backup/TobysPinkMatrix-removed
EndIf
If EXISTS SYS:WBStartup/TobysPinkMatrix.info
 Rename SYS:WBStartup/TobysPinkMatrix.info SYS:Prefs/TobysPinkMatrix-backup/TobysPinkMatrix-removed.info
EndIf
If EXISTS SYS:Prefs/TobysPinkMatrix-backup/Matrix-disabled
 Copy SYS:Prefs/TobysPinkMatrix-backup/Matrix-disabled SYS:WBStartup/Matrix
EndIf
If EXISTS SYS:Prefs/TobysPinkMatrix-backup/Matrix-disabled.info
 Copy SYS:Prefs/TobysPinkMatrix-backup/Matrix-disabled.info SYS:WBStartup/Matrix.info
EndIf
Echo "Autostart restored. Please restart this operating system."
Echo "Application files and backups have been kept."
Wait 10
