Jump to content

Recommended Posts

Posted

I have done this several times and checked the context, but I can't get these few folders to disappear.

ALL USERS documents\shared music, pictures, and videos.

Current User\Documents\MyMusic

Current User\MyPictures\Sample Pictures

Current User\Favorites directory

ALL USERS Start Menu programs \Alcohol 120% (also cant get desktop link for all users to delete)

Here is my code in cleanup.cmd

RD /S /Q "%AllUsersProfile%\Documents\Shared Music"
RD /S /Q "%AllUsersProfile%\Documents\Shared Pictures"
RD /S /Q "%AllUsersProfile%\Documents\Shared Video"
RD /S /Q "%UserProfile%\Documents\My Music"
RD /S /Q "%UserProfile%\Documents\My Pictures\Sample Pictures"
RD /S /Q "%UserProfile%\Favorites"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Alcohol 120%"
DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"

The other start menu folders and desktop links delete like normal, but Alcohol is being tricky. Also, I know I can delete those Shared folders because I always do so manually. Any ideas?


Posted

You can try deleting "MYDOCS.DL_" from the I386 folder. Setup will give a file-missing error, then continue. But it prevents creation of those folders - that's what you want.

Keep in mind though, that that file might have other functions as well, which might break when you delete that file.

Having the code below, in your winnt.sif will prevent the "file-missing" error dialog-box from appearing. Because if it appears then your setup is not unattended anymore!

[SetupParams]
  skipmissingfiles=yes

Try deleting the file. Test it. If your windows installation seems fine and it achieved what you want, then good. Otherwise, we can try something else.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...