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!

o.p.davey
Posts: 6
Joined: Fri Jul 11, 2014 9:58 am

Changing the source for multiple files at once

I'm looking for a way to change the path of every single file in a project in exactly the same way.

The project was set out like such:

Code: Select all

C:\
    Projects
        ThisProject
            src
                file1.txt
                ...
                file10000.txt
            Project.aip
After deciding to tidy up, I made an 'Installers' directory and moved the .aip into there, so now it's like this:

Code: Select all

C:\
    Projects
        ThisProject
            src
                file1.txt
                ...
                file10000.txt
            Installers
                Project.aip
The result of this is that under "Files and Folders", all the Source paths now read

Code: Select all

C:\Projects\ThisProject\Installers\src\file1.txt
. I must have done something else that I can't remember, because moving the .aip back to the ThisProject directory does not resolve the issue. Is there any way to remove the "Installers" part from all of the source paths without doing so manually, even if it involves manually editing the .aip? Both recreating the installer and individually changing each source path will take many hours.

Regards,
Oliver
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Changing the source for multiple files at once

Hello Davey,
After deciding to tidy up, I made an 'Installers' directory and moved the .aip into there.
The result of this is that under "Files and Folders", all the Source paths now read:
C:\Projects\ThisProject\Installers\src\file1.txt
In the Path Variables Editor page you can create a new path variable before moving the project to another folder, then convert the existing absolute paths to path variables using the Convert Paths wizard (“Project” -> “Convert Paths...”).

In order to achieve that you can go in the Path Variables Editor page and add the new path variable.
I must have done something else that I can't remember, because moving the .aip back to the ThisProject directory does not resolve the issue. Is there any way to remove the "Installers" part from all of the source paths without doing so manually, even if it involves manually editing the .aip? Both recreating the installer and individually changing each source path will take many hours.
To fix your problem, you can select your "src" folder from the Files and Folders page, then go to "Properties" and use the Synchronized content with folder from disk option from the "Synchronize Folder" tab. Then, if you do not want to have your folder synchronized you can uncheck that option.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”