Prevent file replacement. Is there another way? - 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!

catsaremyfriends
Posts: 33
Joined: Thu Mar 26, 2009 9:21 pm

Prevent file replacement. Is there another way?

The how to tutorial How do I prevent a file from being replaced by a newer version? describes a way of doing this with two custom actions.

Is it possible to do this within the tool rather than having to rely upon external scripts?

For example, the Help file for the Files and Folders page (The File Copy/Move Dialog) seems to imply that you can at least do the backup part of this within the tool.

You can:
- define a folder to receive the copy
- name the file to be copied
- associate a component whose install will trigger the file copy/move operation.

Can the trigger for this be defined to be "before install" rather than being dependent upon the install of a particular component?

Is there not something similar in the tool that can copy the backed up file back (i.e. does not rely on external script)?

thanks,

cats
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prevent file replacement. Is there another way?

Hi,

Currently this is not supported by Advanced Installer or Windows Installer. This is why we created the how-to with the sample custom actions. However, a future version of Advanced Installer will include a more user-friendly approach.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
catsaremyfriends
Posts: 33
Joined: Thu Mar 26, 2009 9:21 pm

Re: Prevent file replacement. Is there another way?

Cosmin, could you be more specific please in your answer to my two questions. I am not sure if you are saying "no" to both or just one?

Thanks,

cats
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Prevent file replacement. Is there another way?

Hi,

Unfortunately the answer is for both questions. Advanced Installer doesn't support this directly and there isn't another approach for copying a file at the end of install. Also, The file copy/move operation must be linked to a component install or uninstall.

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

Return to “Common Problems”