Groups | Blog | Home
all groups > visual studio .net ide > september 2004 >

visual studio .net ide : Setup project with custom-only folders not working


rss
9/8/2004 12:32:35 PM
I have created a setup project that consists of 4 custom folders - only.
The files being installed are:

1) an xml file in 1 custom folder, whose location is [TARGETDIR]\folder1
2) a single DLL assembly in the remaining custom folders, where each
location is [TARGETDIR]\folder[2,3,4] respectively

There are no files going to any of the predefined folders. The problem I am
seeing is that TARGETDIR is not being set by the initial dialog where the
user browses for the installation location. Only if I set the Application
Folder's "DefaultLocation" property to the desired installation path, does
the install work. And then, it will only put the files in the
DefaultLocation\folder[1-4] locations. It will not use the value entered by
the user (i.e. if they change it from the default).

Any help or suggestions would be greatly appreciated,
Bob

rss
9/9/2004 5:37:07 AM
Felix,

Thanks. It turns out I misunderstood how to use custom folders. I was
creating them outside the ApplicationFolder root - thinking that they would
use the TARGETDIR defined by the dialog. After I placed my custom folders
under the AppFolder built-in folder and set the defaultLocation of the
AppFolder, everything worked.

[quoted text, click to view]
v-felwa NO[at]SPAM online.microsoft.com
9/9/2004 10:16:08 AM
Hello Bob,

I am not very sure about what you would like to achieve. I did the
following test and it works fine:

1. Create folder "A" under "Application Folder" and put a file under "A".
2. Create folder "B" under "Application Folder" and put a file under "B".
3. Install the MSI on a test machine. In the "Select Installation Folder"
dialog, change the path in "Folder" by using the "Browse" button.
4. After the installation, the files are in the folder "A" or "B" under the
folder I specify.

Could you let me know the detailed steps to reproduce the problem you
mentioned? Please also let me know the expected result.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
v-felwa NO[at]SPAM online.microsoft.com
9/10/2004 7:04:39 AM
Hi Bob,

Thanks for your update. I am glad to hear the issue has been fixed. Please
feel free to post here if you have any further concerns.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button