473,387 Members | 1,435 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to add sub-directories to the target machine in a .NET setup project

Hi,

Please could someone tell me how to add sub-directories to the target
installation directory when during a .Net setup project installation.
I have added a setup project and my application EXE and DLLs are all
OK, but I cannot get my installer package to add additional items.

I am using VS.Net 2003. I need to add 4 folders and 2 .XSL files onto
the user's machine (and remove these if the application - a .Net
Windows service) is removed. Any guidance (i.e. links or steps) is
much appreciated.

Thanks.

Jimmy

Mar 1 '06 #1
4 1158
In your setup project, open the File System editor. Right click on the
Application Folder and choose Add Folder. Then right click on the
folder you just created and choose Add File... and add the files from
the project you want in those folders.

You might have to add the files to the project and set their Build
Action to Content.

Mar 1 '06 #2
Hi Chris,

I need to add empty folders only (no files). Is it possible to set the
Build Action for folders to Content?? I have tried to figure it out but
cannot.

Thanks,

Jimmy

Mar 9 '06 #3
I don't mean add the folder to your project, I mean in the setup
project, click on the File System Editor. Then right click on
"Application Folder" and choose New > Folder. Then select that folder
and set the "Always Create" property to True. Then when you install
the application, that folder will be created.

Mar 10 '06 #4

Chris Dunaway wrote:
I don't mean add the folder to your project, I mean in the setup
project, click on the File System Editor. Then right click on
"Application Folder" and choose New > Folder. Then select that folder
and set the "Always Create" property to True. Then when you install
the application, that folder will be created


Hi Chris,

Thanks for that. I can create/remove the folders now.

However, I also need to add some files, which are getting installed as
expected. The problem with these files is that they are not being
removed when I uninstall the application.

I have tried setting the file's Permanent property to TRUE and also
FALSE, but the same result occurs (i.e. they are not being removed).

Is it some other property that I need to set? Thanks.

Jimmy

Mar 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tshad | last post by:
I have an example I copied from "programming asp.net" (o'reilly) and can't seem to get the Sub (writefile) to execute. It displays all the response.write lines that are called directly, but not...
3
by: Kathy Burke | last post by:
Hi, I'm tired, so this question may be silly. I have a fairly long sub procedure. Based on one condition, I load another sub with the following: If Session("GRN") = "complete" Then txtScan.Text...
9
by: tshad | last post by:
I have an example I copied from "programming asp.net" (o'reilly) and can't seem to get the Sub (writefile) to execute. It displays all the response.write lines that are called directly, but not...
6
by: Greg Strong | last post by:
Hello All, Is is possible to use an ADO recordset to populate an unbound continuous Subform? I've done some Googling without much luck, so this maybe impossible, but let me try to explain...
6
by: Thom Little | last post by:
Using C# 3.5 I have a form that calls many other sub-forms. Typically there will be five forms open at the same time. If the main form is closed all the sub forms are also closed. Is there...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.