Well sure it is! Actually there are a lot of ways to control this. Can
you provide more info about what you are trying to do?
The simplest way is to set the value on the commandline like so:
msiexec /i mypackage.msi TARGETDIR="C:\Program Files\Foo"
Michael Sanford
Windows Installer MVP
> I'm using VS 2003, I have been research on the web by 3 days, if is
> possible to change the value of the TARGETDIR at runtime. And how set
> default dialogs values at runtime.
>
> Is there a way? perhaps using the installer class?
>
> Thanks for your comments
>
For more information refer to the following:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/targetdir.asp
I actually I'm looking for a file ascent.dll; if I found it I want to use
its path otherwise I'll use my predefined path.
Thanks guys
Ok, so you need to create a file search action, and if the property containing
the result is not null, then set TARGETDIR to that value. I'm not sure how
to do this in VS.NET, but a combination of a System Search and a Custom Action
should do the trick.
If you can't get it working, let me know and I'll take a look as VS.NET.
Michael Sanford
Windows Installer MVP
Assign the Property created to TARGETDIR