C# - Deploying A Winform Application Using Setup Project

Aug 31, 2010

When a user click the .msi, i want a folder called "Your Files", which comes with two small images by default, to be created in C:UsersYourNameDocuments. In short, MyDocuments.

What i did is put the following code in program.cs:

string myDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string downloadArea = System.IO.Path.Combine(myDocuments, "Your Files");
System.IO.Directory.CreateDirectory(downloadArea);

Just before:

Application.Run(new mainForm());

The problem is, this folder will be created every time the user runs the application which is not a good solution, also in this case there is no place to load the two images so it can be loaded while the folder is created. I want the folder to be created once preferably while installing the application, so even when i uninstall the folder "Your Files" and its sub files be deleted automatically along with the program files. I tried to do it via Setup Project, but i couldn't.

View 1 Replies


ADVERTISEMENT

Deploying Application With Setup.exe And Setup.msi?

Oct 29, 2011

I'm a Visual Basic beginner. There are many things that I didn't know about Windows software development as I've been a Mac user for 20 years and just started developing Windows programs several days ago.

Anyway, using Visual Studio Installer (File > Add > New Project > Visual Studio Installer), I have two files inside the Release folder - setup.exe and Setup.msi. I've got some information about these files. So when you publish your software, what do you do with these two files? According to one web site, you can put them together into one with IExpress, which produces a file with an extension of CAB. Another web site suggests SFX Compiler. In the meantime, I downloaded a dozen applications at Download.com earlier. If I click on the download button, the final delivery extension is .exe on most of them. I know that you won't go anywhere by double-clicking on setup.exe from the Release folder without Setup.msi. Meanwhile, Setup.msi is a tand-alone application. But nobody uses this file alone to distribute their product.

View 5 Replies

When Deploying A Windows Application With A Setup Program

Aug 26, 2011

When depolying a Windows Application with a CD How does one depoly Folders, with a large number pictures in them, along with the program that uses them!Further, when having the Control Panel utillities Uninstall the Program, how can you get it to remove the Folders containing the pictures along with the program that was installed with the pictures, assuming you can do so in the first place?Do not suggest using C or any other laguage please!

View 9 Replies

Deploying A 2005 WinForm App With A SQL Server Express Database?

Jun 2, 2006

I have a VB.NET 2005 WinForm app that accesses a SQL Sever Express database.I use the Microsoft Practices Enterprise library to handle my data access with the following appearing in my app.config file.

View 7 Replies

Setup Of Windows Application Project?

Aug 4, 2011

i have made a window application programme in vb.net.i want to make a setup sothat it can easily install on another computer.plz help me....Pramod Gupta

View 2 Replies

Selectively Deploying A File In The Setup.exe?

Jan 11, 2010

I want to know how to only deploy/copy the app.config file in a deployment project based on if it already exists or not. So if this is the first installation, I want to copy the app.config file to the installation directory. If it is already there, I don't want to write over it.

I also do not want this file un-installed if the either the user or the setup.exe uninstalls the program. The users will be updating this file with local information, and everytime i have a new update, I don't want to have to have them reenter it.

View 2 Replies

Add Files To A Project To Extract As Setup Application?

Dec 6, 2008

i don want to build a deploy project but just a normal VB.NET Project and that project is kind of extracting files so how can i include files (compress) to project executable app then when i click "Extract" it will extract.last time, I use CHILKATZIP and ZIPForge.NET but it only compress another exe howabout its own project.Thanx,Code Quest

View 1 Replies

Make A Setup File Of Project Application?

Nov 5, 2011

How to make a setup file of VB project application

View 1 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

Source Code For Setup Of Project Application

May 8, 2010

Source code for setup of vb.net project application?

View 3 Replies

2005 Setup Project Application Data Folder No Content

Dec 22, 2011

Under VB.Net 2005, I created a Setup Project which produced installation files for a windows application. I placed the mdb file in the User's Application Data Folder and remapped the DataDirectory to Environment.SpecialFolder.ApplicationData at runtime. Unfortunately, sometimes the system just did create the mdb file at the Application Directory.

An example was that I installed the program in Windows 7 under a normal user account. I chose inside the installer that the program would be made available to everyone. After installation, the mdb file would be created automatically for the Administrator account but not for the normal user account. For XP, the whole thing worked fine. I am tempted to write a routine to check and create the mdb file if it is not present, but why does this happens and what other opinions do I have?

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

.net - Error In Deploying Asp.net Project?

Dec 3, 2011

Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

[Code]...

View 1 Replies

Deploying A Project With Web References

Oct 26, 2011

I have a project that uses web references to make SOAP calls to several web services. When I'm working locally, the services are hosted on my local machine, so the URL of each web service is something like [URL]. When I deploy the project to a server, the URL needs to change to the production URL. Currently I am accomplishing this with a prebuild event that does a find-and-replace on each URL and overwrites it with the deployment URL before deploying. Surely there is a better way.

View 1 Replies

Add Project Setup Project For Project For Visual Studio 2008?

Nov 15, 2010

i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :

1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices

2- i try make it with Setup Factory 8.2.1

3- i try with MSI Factory 2.0

4 i try with Setup Factory 6.0

and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :

[Code]...

View 3 Replies

Setup Project - Run Only Setup, Not Default Setup

May 10, 2012

I want to create a real setup project for my application so when someone want to download it he can run only setup, not default setup that provide me VB . How can I do that?

View 4 Replies

Deploying A Com-enabled .Net Dll Reference In Project

Feb 22, 2009

When I reference the com-enabled .net dll in a VB6.0 project, how do I make an installer so the com-enabled .net dll will be registered on target machines? It seems I cannot use regsvr32.exe itself to register it so I have doubts that using the P&D wizard will not be able to properly register it.

View 1 Replies

Deploying A VB Project That Includes A Txt File

Jun 5, 2011

how to get my compiled program onto another computer. I'm using Visual Studio 2010 Professional.

I've read and tried ClickOnce deployment and Setup Installer, but I'm not getting it right.

With ClickOnce, I manage to install the program and it has the menu item and icon in the Start menu, but when I try and run it, it tells me that it can't find the text file. I put the file in the bin Debug and Release folders, selected 'Build' then 'Publish' and still no go.

I tried the other option of creating an Installer (using [URL] as my guide), but I get the same error - the txt file can't be found.

I've done this several times, but just can't seem to get it to work. Other resources online, like YouTube, just cover a project that doesn't include a text file or database file etc.

View 6 Replies

Steps To Follow For Deploying Project

Mar 25, 2011

I am ready to deploy my vb.net project to my client computer.In my development computer I have crystal report 9, sql server express and .net frame work 3.5 installed.My Client computer hasn't got anything installed there.I am trying to making msi installer so that it will be easy for my client to install.I created the new solutions -> setup type project, added the project on it and build it.it successfully created the msi installer but it doesn't installs the sql server express and crystal report.How do i make the installer with crystal report and sql server and also with db

View 1 Replies

Deploying Vb 2008 Express Edition Project?

May 2, 2010

i have a project and i used NSIS to create a Setup file. I am able to install it to my system but some parts of the program do not work (and they work when i run my project in VB). For example i have a Back Up option that creates a back up but this does not work when i run the application via the installation file. Probably it has something to do with the directories?

If System.IO.Directory.Exists(CurDirectory + "Backup Folder") = False Then
System.IO.Directory.CreateDirectory(CurDirectory + "Backup Folder")
End If

how can i make it work from the installation file? Do i need to copy something somewhere?

View 4 Replies

Deploying Winforms Application To Client Machines Application Failing On Start?

Jul 2, 2009

Deploying Winforms Application to Client Machines Application Failing on start

View 8 Replies

Using Visual Studio Installer For Deploying Windows Forms Project?

Feb 1, 2011

I'm trying to build a setup program using the built-in Visual Studio Installer. I'm using VS 2010 and working on VB.NET.For the most basic kind of program, I have an EXE file which works on a XML file (the XML file is treated like a database). So on a Windows 7 platform with UAC enabled, the best deployment is to install the EXE file in the Program Files folder, and the XML file in the application data folder, for security purposes of Windows. (Windows, now, does not allow creating/writing files inside the Program Files folder unless your application is running with administrative privileges).

So I have added VS Installer to my current project and have opened its File System Editor. So to create the above layout, I've added Primary Output to the Application Folder. Then I've added its shortcut to the User Desktop.Now I need to place my XML file to the application data folder. VS Installer gives the option of User's Application Data Folder, which is the %appdata% folder in the environment table. I need to access the All Users' Application Data Folder.

1) How do I access the All Users' Application Data Folder over here?

2) I tried using the User's Application Data Folder. It doesn't work. It doesn't create any folder in the %appdata% (e.g. C:UsersFarazAppDataRoaming). I tried to play around with various properties, like AlwaysCreate which is supposed to create a folder obligatorily. It doesn't create anything.

View 5 Replies

Release Setup Project / Setup

Feb 27, 2009

I've finally got a project compiled and tested and ready to roll out.I have discovered that the "Publish" option is not what it seems, and that we must create a separate "Setup Project" to carry out the task of installing the files.This is not the most intuitive process I've seen, and the online help on that subject is not easy to understand.I was hoping that someone could direct me to a tutorial or guide that would step me through the specific approach I need. Many of the other guides online are vague and address multiple scenarios and do not separate the approaches very well.I have the contents of my project in /bin/release. It runs nicely by iteself with no errors.Here's what I need:

1. To create a setup exe that I can distribute that will install my software, with all of the supporting (resource) files and folders.
2. I need the setup process to force the installer to "agree" to a EULA.
3. I'd would like to provide an image on the installation screen/popup.
4. I would like the software registered in the registry and rely on it being there in the registry.
5. I need it to default to program filesprojectname (it does by default)

View 6 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

Project Missing From Project Output Group During SetUp?

Nov 12, 2009

I new to this Forum and relatively new to VB programming. I have read some really good posts here and thought I would ask about a perplexing problem I'm having. I createdindows Form application, built it and deployed it with no problems. However, when I added a small block of code, re-built the app and went to add the app to the Project Output Group in the file system editor the project was not in the Project drop down list. I closed the Setup project and deleted it from the project folder and checked my code and re-built the app and tried the Set Up project again with the same result

View 2 Replies

Invalid Path To Database Error Message After Deploying Project Created In Program2010

Jul 6, 2011

Is there any literature which guides a user through the steps of deploying a vb project created with VS 2010 Professional and incorporating SQL 2008RE Database?

I have a VB project which incorporates 2 databases - 1 Access Db and 1 SQL Db. The project compiles and runs beautifully. However, after adding the databases in the project as existing items and deploying, the project opens/runs, but when I try to login the application I keep getting an error message telling me that the path to the .mdb (Access) database is not a valid path. I don't have a clue what else to do.

View 19 Replies

Deploying Application On Other PC?

May 31, 2010

I have made a Database application using SQL Server 2005 and Visual Basic (V Studion 2005). The problem is: the SQL server name on my PC is different from the name on my brother's PC.....i want to run the application in his PC......however, all database adapters, objects i have used are linked to my SQL server...hw can i run my application on my brother's PC, with minimum changes and effort?

View 4 Replies

Move A WinForm To Another Project?

Oct 19, 2010

I'm trying to import a 2005 WinForm from a seperate project into a current project. I have not a clue where to attack this problem. A pointer in the right direction will most useful.

View 8 Replies

Setup In Win 7 - Using VS 2008 VB And Setup My Application Software In Win XP

Jun 8, 2011

I am using VS 2008 VB and setup my application software in Win XP without any issue. But after installed in Win 7, it doesn't work well (it show one file not found, but I saw the file in the right folder). Could it be the incompatibility of VS 2008 and Win 7? If I upgrade to VS 2010, will the issue be fixed?

View 10 Replies

Packaging And Deploying Application

Jan 24, 2010

I have prepared an application which uses SQL Server 2005 Express Edition as its database and Reports using Crystal Reports which comes integrated with VB .net 2008.I am able to package and deploy my application alone. To the system where I am going to install doesnot have SQL Server or Crystal report runtime files.I want to include the same in my package so that it gets installed and followed by my application.I have chosen install application from the same location and tried to package it. It doesn't work.Please suggest me steps so that I can have the required softwares packaged with my application so that the user when he installs, it installs at one go.

View 5 Replies







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