Uninstall: delete all except one folder - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tarnic
Posts: 26
Joined: Mon May 18, 2009 10:41 am

Uninstall: delete all except one folder

Hi! I'm very sad because it's one week that I'm trying to resolve this problem, no success!

My program is structured like this:

MyProgramFolder (under C:\ProgramFiles)
| Data
|- Folder1
|- Folder2
|- Projects
|- ImportantFilesAndFolders
|- Folder3
| Other
|- Folders

When uninstalling, I'll want that ALL files and folders were removed, ALSO new files created by my program, EXCEPT ALL in Projects folder.
For example, I'll want that remain this:
MyProgramFolder (under C:\ProgramFiles)
| Data
|- Projects
|- ImportantFilesAndFolders

I have tried with Uninstall CleanUp Wizard, nothing help me, tried with Custom Action and a my VBscript... nothing. Windowsinstaller remove all except new files...
Also, the program is under ProgramFiles in Windows Vista, so to launch vbs script I need elevated privileges, right?

I hope you can help me... Any ideas?

Thank you in advance!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall: delete all except one folder

Hi,
When uninstalling, I'll want that ALL files and folders were removed, ALSO new files created by my program, EXCEPT ALL in Projects folder.
If you want to remove only some of the files you can use file removal operations. To remove a folder you can use the Remove tab of the "Edit Folder" dialog.
Also, the program is under ProgramFiles in Windows Vista, so to launch vbs script I need elevated privileges, right?
Yes, a custom action which removes something from the "Program Files" folder needs Administrator privileges. However, what you need can be done by using the Advanced Installer features I mentioned.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”