Deployment :: Setup & Deployment - Copy/import 2 Folders And There Sub-files/folders Into S&d Project?

May 7, 2012

Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?

When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?

View 5 Replies


ADVERTISEMENT

Deployment - Relative Project Folders

Jul 24, 2009

PROBLEM #1: I have a program that accesses several XML files that are located in a subfolder called "xmlfiles." This folder is a sub-folder in my project. I am using "Application.Settings" to store the locations of the XML files. For example, I have an entry for "JobsXML" that has a string with the file path of the XML file to load. To get these files to load, I had to use relative references: The path settings for "JobsXML" is "......xmlfilesjobs.xml"

I have to go up 3 directories because the files are in "debugin" during design. This will not be the case at runtime. This arrangement works fine in the editor, but when I make a "ClickOnce" package, the relative path will no longer work for installed applications. The directory will be different.

How can I setup my code so that the "xmlfiles" subfolder will be correctly used at runtime? I need to be able to run this from my project folder under "My Documents/Visual Studio 2005/Projects/etc..." and also, I need it to work from the runtime directory that the user installs the program to. So if the user installs the package to "C:temp" then the code should use the setting for "JobsXML" by going to "C:empxmlfilesjobs.xml."

PROBLEM #2: There is an attribute in some of my XML files that is also, a relative file reference. I have another subfolder called "images" that also resides in my project. This folder contains images that are loaded at runtime. In my XML file, each node has an attribute, "filepath" that has a value of "......imagesfilename.jpg". I also need to be able to access this relatively, just like the XMLfiles I mentioned in PROBLEM #1.

I have tried different combinations of StartupPath, Path.Combine and a few others, with no success. I am new to this so I could use some sample code to put this together correctly.

View 7 Replies

Deployment :: Setup And Deployment Project With Ms Sql Server?

Nov 3, 2009

i'm developing an application vb.net with mssql server as database. on my pc it works. but i don't know how to make it works on my customer's pc.anybody have some tutorial regarding the creation of a setup and deployment project with ms sql server.my first doubt is: how can i determinate the right connection string?

View 1 Replies

Deployment :: Deplyment With SQl And Folders?

Jun 9, 2009

I have to deploy some server-side configurations to support a client application. This configuration actually doesn't have to do more than copy a specific folder to a %programfiles% location and run SQL scripts.

How can I do that using a setup project in VS 2003?

View 5 Replies

How To Use The Setup/deployment Project

Jun 21, 2010

My suggestion is how to use the setup/deployment project - and also how to add it/incorporate it into the project being built.

View 3 Replies

Created A Setup And Deployment Project?

Oct 2, 2010

ive just completed my app and i created a setup and deployment project.Complier forced me to exclude wmp.dll

i get this error for about a second before the app launches. Losing my splash screen because of it

I thinks it has to do with the .dll, but ive no clue how to fix

View 4 Replies

Setup And Deployment Project Walkthru?

Jul 7, 2010

setup and deployment project walkthru? creating a setup and deployment project in Vs2008

View 7 Replies

VS 2010 Setup & Deployment Project?

Apr 26, 2012

For my .Net desktop apps I usually create an MSI installer (I create a 2nd project in my solution, a Setup & Deployment project) and I zip the setup.exe file with the <appname>.msi files together and put them up for download on my site. The installer will go through the process of asking where they would like to install the application (it creates the needed shortcuts and everything).

Right now I'm looking at adding a feature to some of these programs where it'll periodically check it's corresponding xml file on my web server and see if there's a newer version of itself available. I have this portion working just fine, where I'm stuck is that I would like to have it download a separate msi installer to update itself.

The idea is that it would download this different msi file, execute it while the app closes itself. This msi would not ask any questions, it would simply update the needed files in whatever location the first msi installer put the app. When this updater msi is done, it would just re-start the application.How would I go about making an msi installer that doesn't have any prompts and installs the application where ever the first msi installer put it (where ever the user chose to install it to)?

View 8 Replies

Add Icons To Shortcut In Setup/deployment Project

Jun 30, 2010

I would like to add a choice of icons to the desktop shortcut I add in setup/deployment. I can add one icon, but when I run the project there is no option for changing it. The "change icon" button is greyed out. I've made a dll containing 3 icons and added it to the setup/deployment project (also added it to the test project).

View 1 Replies

Alternate For Setup And Deployment Project In Program?

Mar 5, 2010

Setup and deployment project template is missing in my installation

View 2 Replies

Deployment - Creating A Setup Project And Building?

Jun 21, 2009

When i am creating a setup project and building it then i am getting a setup file using which if i install then it is getting installed to single user only i want the setup to build run for every user in that system and the users can access it.

View 1 Replies

Make A Setup And Deployment Project In .net 2008?

Nov 25, 2009

Is it possible to make a setup and deployment project in VB.net 2008, every site i have looked at on google says to just select it from the project list. It isnt in the project list for me to select.Are these types of projects not available in the express version?How can I make an installer, other than using one of the setup and deployment projects? (I know there is a publish button, but that doesn't make a proper installer and installs to the appdata folder which is not what i want it to do)

View 3 Replies

Setup And Deployment Project That Installs My Application ?

Jan 21, 2009

I have a setup and deployment project that installs my application. During installation, I create a hierarchy of folders under the C: drive.

However, when I use add/remove programs to uninstall my application, I do NOT want this hierarchy of folders to be removed. How is this possible?

Also, when creating the folders, I set "AlwaysCreate" to True. If one of the folders already exists, will it be replaced with my new empty folder? If so, how can I prevent this.

View 8 Replies

Specific Condition In Setup And Deployment Project?

Jul 8, 2009

I have a VB.NET Application and I am developing a deployment project in VS 2008.

I need to give the user the choice to allow the application to start when windows start (but this should be optional)

Then in my application there should be an option to remove the application from the windows start up folder.

View 3 Replies

Setup Vb To Check If Files Are No More In The Folders?

Feb 22, 2011

I am trying to write a code to verify the existing files left in the folder. I have it when there are no more files left after sending it to anothere folder that the handler exception windows appears. I think it is be cause there are no files in the folder left and the system does not know what to do with an empty folder.

View 6 Replies

Deployment :: Add The Creation Of A Scheduled Task To The Setup Project?

Feb 8, 2009

how to add the creation of a scheduled task to the setup project of a solution so that it will install the main executable and also schedule it to run in windowsscheduled tasks. The project is in vb.net 2005?

View 6 Replies

Install Windows Service Via Setup And Deployment Project

Apr 27, 2009

I've been busy with work and other bits and bobs and not really had much time for programming... but anyway, I have just written a fairly simple windows service in VB.NET and although I can install it on my PCs/servers using the command line InstallUtil.exe component, this isnt ideal for other people that may need to install it without my assistance.

So basically I just need to know how to get a normal Setup and Deployment VS project to install this service itself... I thought it would be as simple as selecting the service assembly to include in the deployment project and building it, but unfortunately that seems to do naff all. Do I need to use a 'Custom Action' in the setup project (and if so, how/what do I do?)

View 6 Replies

Adding A Folder To A Setup Project And All Of Its Contents, Including Sub-folders?

Jan 14, 2010

I want to be able to add a folder (and inturn, all of it's contents including subfolders) to a setup project. I can manually add a folder, then manually add all of the files for that folder; but this is a NetHelp folder with lots of subfolders and files.

Is there a way to tell the setup to add everything in a folder to the setup files to be distributed??

View 7 Replies

C# - Setup Project Does Not Create File System Folders During Installation

Aug 31, 2010

I want to create personal folders during installation. I did the following steps:

Right click on your setup project ->
View -> File System
Right click on node "File system on

[Code]....

I know the above steps are correct and should work because i did it in the other application (solution) and worked fine. When i did same exact steps (of course i changed the folder name to be created), the application gets deployed but when i install, i don't get the Personal Folder under Documents? I wonder why did it work with my first solution and didn't work with the current one!

View 1 Replies

How To Create A Program That Can List Files, Folders And Sub Folders

Apr 7, 2010

I need help with file enumeration. I'm trying to create a program that can list files, folders and sub folders locations in a log file for diagnostic purposes. After it searches it can open notepad and display the results. The problem I'm having is that I'm a beginner and not familiar with file enumeration.

View 14 Replies

Setup And Deployment - Prevent Moving Files?

Mar 4, 2009

I am creating a setup file using features brought by Visual Studio.I have some files which can't be removed from the application's folder. How to put the condition on it? or how to prevent user moves it after installation is done?Those files are critical (eg .dll).I already set the 'Hidden' property to 'true', but I think that is not the correct way :)So I try to find another way to do that.

View 1 Replies

Process Of Creating A Setup And Deployment Project For Windows Application?

Jun 22, 2010

Step-by-Step Process of Creating a Setup and Deployment Project for windows application

View 2 Replies

Deployment - Move Files To A Specific Folder When Run The Setup File For Application?

Jan 4, 2010

I have created deployment package for VB.Net appolication and it runs fine. When setup is rnning, I want deployment package to move a file from bin folder to other specific folder. how can I move this file to specific folder.

View 1 Replies

Find Out Exactly Which Files / Folder Will Need To Copy Over For Deployment?

May 16, 2011

I (through a ton of help from everyone here at stack-o) have created a small WCF which is hosted as a Windows service using TCP..Last question for this little bugger; it's time for deployment. In my solution, there are 3 projects. One is the Windows service, another is the imported WCF, and finally a setup project I added for install.I can install/uninstall the service on my machine by going in the solution directory and finding "Setup.exe" or "Setup.msi". Executing either from explorer will install the service on my development box.Now there are a few directories associated with this solution. I'm betting that simply copying setup.exe or setup.msi to my target server and trying to run it will bomb out. How can I find out exactly which files/folder I will need to copy over for deployment?Or should I just copy the entire solution directory? That will be a little difficult for my coworkers as the setup routines are nested in directories 5 deep.

View 3 Replies

Copy Files Into Folders Without Providing Full Name Of The File?

Mar 13, 2012

Can i copy files into folders without providing full name of the file? Different files will be distributed into different folder, my files have current date at the end, it also has split before the date. I would like to copy the files name before the split. Here is an example

[Code]....

View 8 Replies

How To Code Recursively To Find .jpg Files In Folders And Subfolders Then Copy .jpg

Mar 8, 2011

I have been trying to get a .jpg files from subfolders that get's updated and a new subfolders is created. I have been trying to figure how to code to read the folders/subfolders and to get the .jpeg files copy or move to different folder.

View 8 Replies

.net - Listing Folders In Folders - Then Creating Arrays In JS For Each Of The Folders ?

Jun 21, 2010

I have a directory structure as follows;

ad_folder
--folderA
--folderB
--folderC[code]....

at I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.how I can display folder contents in VB.net and the code worked but couldn't figure out how to create the arrays and display only folders within folders starting with "ad_".

System.IO.DirectoryInfo and System.IO.FileInfo to be used for getting the folders.A literal control can be used to create javascript arrays in ASP.NET. These js arrays can then be used on the client side.

View 3 Replies

Create An .exe File Without Using "Setup And Deployment" Project?

Jan 8, 2010

i have studied very recently that an exe file could be created using "Setup and deployment" project, then by adding the required file to it,thus we can create a 'setup.msi' and 'setup.exe' But i want to know whether, we can create the same exe file , COMPLETELY THROUGH CODING....for example, when i click a button , then an exe file should be created...

View 1 Replies

Add Serial Number Requirement To Setup & Deployment > Setup Wizard For Application?

Apr 2, 2009

add serial number requirement to Setup & deployment > setup wizard for VB.net application

View 16 Replies

Create Package And Deployment (setup File Or Install File) File In VB 2010 Project?

Jan 8, 2011

I do one project in visual basic 2010.In visual basic 6 project can be make Package and deployment (setup file or install file) file using Package and deployment wizard.But in visual basic 2010 express edition does not have Package and deployment wizard.how to make Package and deployment (setup file or install file) file in visual basic 2010 project?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved