jassing
06-14-2009, 04:36 AM
I had a client ask how he could re-use my "left over files" screen (in post uninstall, it shows a list of files still installed)
So I cleaned up the code a bit & exported as a gallery screen.
The default is (as an example)
c:\documents and settings\all users\indigorose\setup factory\8.0\screens\Remove Leftovers
but it can easily go into your setupdata folder screens\Remove Leftovers
what it does:
On loading of the screen, it scans the app folder & app-data folder (provided you use the convension of Companyname\ProductName) and finds left over files & folders.
The user then selects (via checkboxes) the file(s) they want to delete.
Press the delete button and the file(s) selected are removed
When "going to the next screen", any "empty" folders are removed.
Please note - I cleaned this up & ran it on my dev machine, so I'm fairly confident that it's 'good to go' -- but as with anything that deletes files & folders, you should test on a test machine -- I will not be held liable for any lost data. ie: Use at your own risk. It was late when I did this.
Feel free to post comments, praise, and yes, even gripes / problems -- if there's a real problem, I'll fix it.
So I cleaned up the code a bit & exported as a gallery screen.
The default is (as an example)
c:\documents and settings\all users\indigorose\setup factory\8.0\screens\Remove Leftovers
but it can easily go into your setupdata folder screens\Remove Leftovers
what it does:
On loading of the screen, it scans the app folder & app-data folder (provided you use the convension of Companyname\ProductName) and finds left over files & folders.
The user then selects (via checkboxes) the file(s) they want to delete.
Press the delete button and the file(s) selected are removed
When "going to the next screen", any "empty" folders are removed.
Please note - I cleaned this up & ran it on my dev machine, so I'm fairly confident that it's 'good to go' -- but as with anything that deletes files & folders, you should test on a test machine -- I will not be held liable for any lost data. ie: Use at your own risk. It was late when I did this.
Feel free to post comments, praise, and yes, even gripes / problems -- if there's a real problem, I'll fix it.