including external folders in ur deployment package?

hey...

Can anyone tell me if it is possible to include folders and files
within them in the deployment package?
I am trying to include 2 folders with files in these folder with the
deployment package, so that when my program is installed on a system
the two folders are placed in the same folder as the application path.
I know that it is possible to add files, but I can't seem to find a way
to include these folders.

i am using VS2005

thanks in advance

[499 byte] By [Amody] at [2007-12-24]
# 1

Right Click on the SetupProject you have built in Solution Explorer and View File System.

On the left pane you'll see Folders like Application Folder, User's Dektop etc.

Right click on Application Folder Add -> Folder Now select the newly Created Folder and Right Click Add File... Browns the file. When you install the application you'll see same heirarchy in installed Directory.

Cheers ;)

RizwanSharp at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2

Sorry but it seems i wasnot very clear in describing my problem

the folder content is different each time you run the setup program

the folder reside beside the setup program (setup.exe) so i need to include the folder names not the files inside this folders

i hope i clear it well

thanks vry much

Amody at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3

Sorry, I didnot get what u mean:

"the folder content is different each time you run the setup program"

Which folder you are talking about and what contents are changed?

the folder reside beside the setup program (setup.exe) so i need to include the folder names not the files inside this folders

Best Regards,

RizwanSharp at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 4

hey

all the problem is i want to copy folder from specfic location to my setup folder when i run my deployment project

the folder contains data that changed from one user to another .

thanks

Amody at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 5
Amody wrote:

all the problem is i want to copy folder from specfic location to my setup folder when i run my deployment project

the folder contains data that changed from one user to another .

You mean you need to copy any files or folder thorugh setup when it is running? Not yet Clear!!!!!!!! Please leave an example in steps so one can try to understand and help accordingly.

Best Regards,

RizwanSharp at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 6

ok i will try to be Clear

i have file setup.exe and folder named MyFolder the setup.exe and MyFolder are in the same folder in my machine ok .

i want when running setup.exe the MyFolder Folder being Copied To my setup directory say (C:\\Programe files\myApplication )

i hope i am being Clear

thanks

Amody at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 7

I think you'll need to write a custom action. If you use an installer class you should be able to use the CurrentDirectory to get the directory the installer is running from.

I would caution you though, make sure you write the uninstall and rollback methods so that you clean up and remove that folder when the app is uninstalled. Otherwise, you are going to leave junk behind ! :-)

HTH

DavidGuyerMS at 2007-8-31 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...