Page 1 of 1

Relative Paths To Source Files?

Posted: Sat Oct 30, 2010 3:39 pm
by simpsonp
Hi,

We have an InstallAware project located in a subversion repository, with a number of developers cheking out working copies. These working copies can be rooted at any location in the file system and while the relative paths from the root are always identical the full paths to files vary depending on the root used by the developer.

It seems that InstallAware only permits absolute paths to source files such as assemblies and not relative paths, which means that a project checked in from one person's working copy will not work on someone else's worlking copy unless they happen to have chosen an identical root.

We are using the InstallAware Developer version, is there a way round this, something that we've missed or can relative path support be considered for the next InstallAware update?

Thanks, Peter

Re: Relative Paths To Source Files?

Posted: Sun Oct 31, 2010 8:39 am
by bokkie
Great question! We also use subversion and like you say, each developer's root might not be the same. What I did try which seemed to work is this. I added a file to a test project and selected it using the designer so it added the file by full pathname. I then switched to the MSIcode tab and I edited the code and changed the full pathname to a relative "..\" pathname. It seemed to work ok. Is that something you could try?

My test was hardly conclusive and I recall not all versions of IA give you the code option. I have the Studio Admin version installed. Anyway, that's the best I can chip in with. :(

Re: Relative Paths To Source Files?

Posted: Mon Nov 01, 2010 9:42 pm
by mills
Relative paths can pose problems as well. However, it may be possible to support the option to have source file paths relative. I'll add this as a feature request.

Re: Relative Paths To Source Files?

Posted: Tue Nov 02, 2010 4:41 pm
by simpsonp
Peter, Andy,

Thanks for your replies, I'll try editing the paths manually and look forward to seeing this feature supported in the Design Tab GUI in an upcoming release.

Regards, Peter

Re: Relative Paths To Source Files?

Posted: Sun Apr 10, 2011 1:28 pm
by simpsonp
Hi,

Thanks for adding the relative paths feature to IA 10.10, I've converted all our hard coded paths to relative paths and with one exception everything is looking very good. My one outstanding difficulty is in the Icon File Path field of Create Shortcut. If I put a relative path here the icon does not appear in the shortcut but neither do I get a compile or runtime error of any kind; I'm using the MSI engine rather than the native engine.

Am I missing something or is there a workround for this in IA 10.10? If not, is it possible to allow a relative path in the Create Shortcut Icon File Path for the MSI engine in the next IA release?

Thanks, Peter

Re: Relative Paths To Source Files?

Posted: Sun Apr 10, 2011 1:34 pm
by giaviv
Dear Peter,

Setting icons to files on the target machine requires using the native engine - that is the reason it is not working for you.