Using projects on different machines - Advanced Installer Community
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Using projects on different machines

I have two machines that I develop on. both have a "projects" directory but on one machine this is on the D drive and on the other machine it is on the E drive. Other than that the structure is exactly the same. I assumed that all file locations would be relative to the project. In some cases this appears to be the case. The projects will sometimes find files added to the project (and switch the drive) but other references (such as icon files) are not found.

Is there a way to get this to work consistently so that I do not have to change the references each time I switch machines.

Thanks

David
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using projects on different machines

Hello David,

Every file or folder you specify in the project has a source path assigned to it, which is saved in the project file. The path can be stored in two forms:
  • *as an absolute path (example: "C:\MyApplication\MyResources\Images\MyPicture.jpg")
    *as a relative path (example: "Images\MyPicture.jpg")
Using relative paths, you can easily move all the files used in your project to a different computer. Relative paths are relative to the “Project Root Path”.
Here's the Project Paths Tab article with related information for hints and guidance.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Using projects on different machines

Thanks I have seen that before. Does that mean that if the paths are relative then even if I change drive they will still be classed as relative. There is that clause that says paths are relative unless on another drive. Or does that refer to a different drive than the current project file?

David
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using projects on different machines

Hi David,

You should be able to move your project file from a machine to another as long as your resources files are relative to the “Project Root Path”.
Also, can you please make sure that you have a relative path for the ExeIconPath? (you can check this in your project file opened in a text editor e.g. notepad).

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Using projects on different machines

When looking in the .aip file in notepad I can see absolute paths. Will these get translated between machines? For example the following:

<ROW Property="AI_PROPPATH_DIR_PERBUILD_ZeidmanDevelopment.Lookup.dll" Value="D:\Projects\SCO\Import\Lookup\bin\Release"/>

This path works on one machine but on the other it would be on the E drive instead.

I cannot find any reference to the ExelconPath.

David
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using projects on different machines

Hi David,

Can you please tell us what version of Advanced Installer are you using?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Using projects on different machines

I am on 10.9.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using projects on different machines

Hi David,

In order to have a better view about this, can you please send us the .AIP(project file) to support at advancedinstaller dot com?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Using projects on different machines

I sent it through yesterday. (No rush I just wanted to make sure that you received it)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Using projects on different machines

Hi David,

Indeed, the absolute paths from your project cannot be resolved as a relative ones because they are on another drive partition than your project.

So, the project file cannot be moved to a different computer, unless you have the files in the exact location (and drive) as on the original computer.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”