How to share dialogs between multiple projects?

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

How to share dialogs between multiple projects?

Post by Christoph Schneegans »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post by jweksej »

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?
Post Reply