View Full Version : DestinationFolder Problem

01-02-2009, 03:32 PM
I am sure this is the most stupid question, but I am stumped...since I know my other installer projects are working just fine:

I created a new, simple installer but not able to make it install to a different destination folder than the default Program Files\Blah\Blah folder. What setting am I missing?


01-02-2009, 06:32 PM
To change the default, you can use General Information > Product Properties > INSTALLDIR in an MSI project, or General Information > Product Properties > TARGETDIR in InstallScript.

01-04-2009, 07:34 PM
Robert...thanks for your response.

I am sorry, I think I didn't phrase my question right. I do have set my default install folder exactly the way you have suggested. The problem is if I try to install the product to a different (say D:\TestFolder\) using the change destination folder screen, the installer still installs the product to the default location (C:\Program Files\Company\ProductName). Any ideas?

01-05-2009, 02:33 AM

give the ROOTDRIVE property in the property table



INSTALLDIR="destination location"

in the proeprty table.


01-05-2009, 09:27 AM
Thanks, but I am not sure I follow your suggestion.
By setting the value of the public property like you suggested, I can solve the problem of not being able to choose a different target location than the default "C:\Program Files\Company\Product" using the destination folder selection screen?

01-05-2009, 10:26 AM
Perhaps the features' destinations are INSTALLDIR, which is being set by the Destination dialog box or the Custom Setup dialog box, but the components have a different destination?

01-05-2009, 11:26 AM
I did found that discrepancy and fixed it too but now I am getting the error "Error 2343: Specified path is empty" :-(

Here's what I have right now:

General Information > Product Properties > INSTALLDIR set to {PRODUCT}[ProgramFilesFolder]Company\PRODUCT
The feature and component's (i just have one feature and one comp) Destination is also set to the same above

What am I missing?:confused:


01-05-2009, 11:31 AM
Are the feature and component going to [INSTALLDIR] or to [PRODUCT]? It should be [INSTALLDIR].

Otherwise, if you create an MSI log file, is there any more information?

01-05-2009, 11:39 AM
That did the trick! :-)

Thanks a lot for the help. I can move on to more tougher tasks of custom dialogs, custom actions etc., now!

Thanks again.