Relative path problem - 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!

torbjorn.eide
Posts: 2
Joined: Thu Sep 15, 2011 10:22 am

Relative path problem

I am new to Advanced Installer and to be able to move my installer from one machine to another I want to use relative paths:

I do the folowing:
- open a new project and set the project root path to say "c:\dev\proda".
- add a file in Application Folder: "C:\dev\proda\mytext.txt" (There is no way to see if this is indeed a relative path?)
- change the projetct root path to "c:\dev\prodb".
- make sure I have a copy of mytext.txt in c:\dev\prodb.

After this I would assume that mytext.txt was referred to as "C:\dev\prodb\mytext.txt", but it appears that my relative path is absolute and stays put at c:\dev\proda\mytext.txt. what am I missing?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Relative path problem

Hi and welcome to Advanced Installer forums,

If you want to move your project to another computer, there is no need to modify any of the default settings. Simply copy the folder containing the project file( normally this folder would contain all other resources ) to the other machine.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
torbjorn.eide
Posts: 2
Joined: Thu Sep 15, 2011 10:22 am

Re: Relative path problem

What if you wanted to move the project file to a different place in the directory tree, or you wanted to keep the project file in a totally different place alltogether?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Relative path problem

Hi,

Having an absolute path for each file allows you to move the project file (.AIP) anywhere on your disk (even on different partitions). The application will still be able to find all the files. But 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.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”