How to share dialogs between multiple projects?

Got a problem you cannot solve? Try here.
Christoph Schneegans
Posts: 55
Joined: Tue Jan 09, 2007 12:20 pm

How to share dialogs between multiple projects?

Postby Christoph Schneegans » Thu Feb 08, 2007 5:17 am

Hello!

I'd like to share some scripts and dialogs between multiple projects. This works very well with scripts, I just have to edit the .mpr file with a text editor and specify an absolute path for the appropriate .mia file. (IIRC, this was the default behavior in earlier versions of InstallAware.)

However, the same approach fails with .dfm and .dfm.miaf files. InstallAware always uses the dialogs that have been copied to the project directory. Is it possible to change this behavior?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Feb 08, 2007 1:41 pm

No, dialogs are always copied to the local project folder. What you can do is create a new dialog theme, in case you have your own theme that you want to re-use across multiple projects.

Also for sharing scripts - the IDE now saves each script file reference using paths relative to the project folder. So now it should be easier and more intuitive to share scripts between projects.

Note that the IDE will discard absolute paths as long as it is possible and safe to do so.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Postby jweksej » Fri Mar 30, 2007 3:34 am

MichaelNesmith wrote: the IDE now saves each script file reference using paths relative to the project folder.


It works only for local drives. When project is located on network mapped drive, then relative path is exchanged to full starting from \\\\hostname.
In such case preserving relative path is also possible and safe.
Why IA changes the paths?


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 115 guests