jstuardo
Posts: 87
Joined: Mon Nov 09, 2015 10:44 pm

How to change path of source files?

Hello...

My installer included a lot of DLL and EXE files from certain directory.

Then, that directory was moved to other location, causing Advanced Installer not to find the source files to create the installer file.

Is there a way to update the path quickly? I have opened .AIP file but the source path is not stored there.

Regards
Jaime
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: How to change path of source files?

Hello Jaime,

Yes, it is possible to update this quickly if you remember where the initial folder was located. It is possible to achieve this through path variables.


Let's work through this with an example so you can better understand:

Let's say we have a folder containing three files:
Capture.PNG
Capture.PNG (216.27 KiB) Viewed 3946 times

After that, let's say that we move our "Original" folder from desktop to "C:\".

Now, in order to not have to manually point for each file, here is how we can proceed:

1. Create a dummy folder in the original location. In our example, the original location was on desktop, so we will create the folder on desktop.

2. After doing so, please open Advanced Installer --> "File" --> "Settings" --> "Path Varaibles". You should see a dialog like this:

Capture1.PNG
Capture1.PNG (10.42 KiB) Viewed 3946 times

3. In order to create a new path variable, click on the "New..." button.

4. Give the Path Variable a name and then press on the "Select" button --> "Folder on disk...":

Capture3.PNG
Capture3.PNG (10.17 KiB) Viewed 3946 times


5. Now select the dummy folder that we have created earlier:

Capture4.PNG
Capture4.PNG (275.35 KiB) Viewed 3946 times

6. Click "Ok"

7. Click "Ok"

8. Now we should "update" our path variable to point to the location where we have moved the folder. To do so, please click on the "Wizards" tab from the toolbar and then click on the "Convert Paths":
Capture5.PNG
Capture5.PNG (24.44 KiB) Viewed 3946 times

9. In the spawned Wizard, click "Next". The Wizard should auto detect the paths that you want to convert, like this:
Capture6.PNG
Capture6.PNG (18.32 KiB) Viewed 3946 times

10. "Next" --> "Next" --> "Next" --> "Finish"

11. Now it is time to modify our path variable to point to our new location. To do so:

"File" --> "Settings" --> "Path Variables" --> double click on the path variable we have earlier created --> "Select" --> select the folder that you have moved --> "Ok" --> "Ok".

12. Build the project.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”