Deleting files on Target PC - 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!

cinoaz
Posts: 3
Joined: Sat Dec 08, 2007 10:13 pm

Deleting files on Target PC

As the application grows, there are files in certain directories that I want to delete. I don't want to do a complete uninstall as user created files could be affected.

I've created properties based folders in the past to find files on the hard drive, how do I instruct AI to delete files in a particular folder before it starts to copy updated and additional files into the target directories?
Gray_Lensman
Posts: 2
Joined: Sun Feb 24, 2008 5:58 am

ditto. I've just downloaded this product and I've got the identical question.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure I understand why you need this. Please note that if you delete files and folders registered in the MSI, an on-demand installation may be performed when launching your application.

This on-demand installation is controlled by Windows Installer and it detects which files are missing and reinstalls them.

Can you please give me more details about how you are updating the installation?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Gray_Lensman
Posts: 2
Joined: Sun Feb 24, 2008 5:58 am

I am trying to use this software to create a patch for already installed software. The already installed software has some files that are obsolete and in some cases can interfere with the operation of the main program itself, so as the patch installs, I would like to know if I can have the patch delete specified files that are obsolete prior to the installation of new patch files.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using File Removal file operations. You can read more about this here:
http://www.advancedinstaller.com/user-g ... ialog.html

Basically, you need to create the File Removal operations only in the Upgraded package to include them in the patch. Also, a file removal should be placed in the folder in which the file exists (in the "Files and Folders" page).

For example, if the file "test.txt" which you want removed is placed in "Application Folder" -> "My folder", then the file operation should be created in "Application Folder" -> "My folder".

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

Return to “Common Problems”