Can I move files, folders, and subfolders using move/copy? - 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!

pay_dro
Posts: 1
Joined: Mon Apr 26, 2010 8:19 pm

Can I move files, folders, and subfolders using move/copy?

Hi,

I've built an installer that upgrades an existing installation but puts the new version into a different installation folder (i.e. used to be in c:\program files\... now installing to c:\app_dir). In an effort to preserve a large data folder and it's contents from the old installation I've done the following:
- created custom property in install parameters called old_data_folder
- created a property based folder with same name
- created a search for the old data folder
- created a custom action, if search result is not blank, set value of old_data_folder to search result
- in files and folders I've created a file copy/move that takes all contents of the old_data_folder (*) and moves them to a new data folder under APP_DIR

This works great. Problem is I need to move not only the file contents of the old_data_folder, but also any folders and subfolders that may exist. Can I use this technique to accomplish this?

Thanks,

Pedro
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Can I move files, folders, and subfolders using move/copy?

Hi Pedro,

I am afraid File Operations do not support this behavior. It would be best if you used a bat file for this, it's probably the easiest to implement.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”