DavidPayne
Posts: 19
Joined: Fri Aug 31, 2007 1:26 pm

Moved .aip file & upgraded to 6.1 - file paths incorrect

Hi,

I'm not sure which activity caused the problem I just experienced, and I think I've fixed it, but thought I'd mention it in case it's something you're not aware of.

I recently upgraded to version 6.1, and, at the same time, I moved my .aip file - effectively up one level in the folder structure. For example, from C:\Users\David Payne\Versions\Installer Project Files, to C:\Users\David Payne\Installer Project Files.

When I next tried to build the project, I encountered several errors with file paths. I went through every menu option, and changed everything I could find (all references to icons, and the (synchronised) application folder), but was still seeing error messages about file paths. Eventually, I had to open the .aip file in a text editor, and amend the XML. It worked fine, I've just completed the build, but might be something that is important.

I'm afraid that I didn't make note of the changes I made, but one of them was referring to the 'control panel icon' - I think it had made a second instance of it in the '<COMPONENT cid="caphyon.advinst.msicomp.MsiIconsComponent">' element. I found '<ROW Name="controlPanelIcon.exe"' and '<ROW Name="controlPanelIcon_1.exe"' in there, one with the older file path, and one with the new file path. I changed the file path of the broken one, but still got an error (I think because the 'Index' attributes were both '0'), so I deleted the second entry, which fixed the problem. This removed the icon in the 'Product Details' screen, but I was able to simply re-add it with no problem.

Secondly, my bundled JRE broke - it's location changed from 'C:\Program Files\Java\JREXYX' to 'C:\Users\David Payne\Program Files\Java\JREXYZ' (the second file path might not be quite right, but it was a sub-directory of my 'Users' folder combined with the Program Files directory structure).

Hope this might be of some help, and sorry that I don't have a huge amount of detail. Probably worth saying that I'm using the Java version of AI, on Vista.

David.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This is the normal behavior of Advanced Installer. If you move the AIP file then the paths are no longer recognized (the paths are relative to the AIP file).

If you need to move the AIP then you can use absolute paths (they will be recognized when moving the AIP file). For this you use the "Project" -> "Options" menu and the "All paths are absolute" option:
http://www.advancedinstaller.com/user-g ... s-tab.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”