Setting File Attributes After Deploying An Application?

Nov 20, 2009

I have an application that uses a text file for its settings. This file is placed in the application folder but deployment sets its file attributes as "Read Only". I have to manually change this attribute every time I deploy the application or an upgrade. I tried (successfully) to place the text file in the "Documents and settings|All users|Application Data" folder, creating a specific folder for my application in which to place my file. The folder and file were created by the setup process but then, users who did not have admin rights still did not see the file, let alone open it.

I have gone back to placing my text file in the [Programs files]|[Manufacturer]|[Application name] folder but am saddled with manually changing the attributes. Is there a way I can do this programatically during deployment (e.g. by some post-deployment process)?

View 4 Replies


ADVERTISEMENT

Deploying A .net Application With A .MDF File(sql Server 2008) + ClickOnce?

Apr 19, 2011

I am trying to deploy a VB.net application that is currently using SQL Server 2008 as its database to connect to.I need this application to be able to include a copy of its data so that wherever I install the application there is no need for them to install SQL Express.

What i have been reading is that I should of been using SQL Server Compact Edition to do this. Is there any way that I can do this with using an .MDF file?If not, is it possible to convert an .MDF file to .SDF and then just include it in my vb.net app?

View 2 Replies

Setting The Attributes For Native Structures?

Sep 5, 2010

In a previous post [URL].. I needed to change how the values of an object's properties were displayed. In my case, I wanted to change how the native System.Drawing.PointF structure was displayed. If you check the post, it was resolved by using a TypeConverter.Now, my next question is how do I give existing properties attributes? For example, the System.Drawing.PointF structure has three properties: X, Y, and IsEmpty. I would like to give the X and Y properties descriptions. Also, I would like to hide the IsEmpty property, i.e., Browsable(False).

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

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

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

VS 2008 Deploying An Application To Another PC

Mar 12, 2010

I have used 2008 and click once to setup a deploy to a network area...however I have been asked to do a wee program for a friend.How would I create a setup file to give to them on a CD/ pendrive etc??

View 1 Replies

Way Of Deploying An Application To Use .net2 Instead Of 3?

Nov 26, 2009

I have deployed my app no problem on my laptop that has .net3. I want to distribute my app to office xp nodes. This there a way of deploying an application to use .net2 instead of 3?

View 5 Replies

VS 2010 Deploying A .NET Application With A Font?

Aug 5, 2011

Im wondering if anyone would be able to point me to a very well detailed tutorial as to how to Embed a font into my deployed application , So when its installed on an end user,s computer, they can see the font.

I currently have this code and have embedded the font.ttf into the resource under the files option.

newPDF.addTrueTypeFont("..
esources" & fontName & ".ttf", fontName)

View 11 Replies

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

DB/Reporting :: Deploying .Net Application With Crystal Reports?

Oct 8, 2008

I have a project that uses a crystal report and I'm planning of deploying it.The problem is, is there a common setup for the components that was used in my project so I don't need it to manually register on the client pc?

View 2 Replies

Deploying An Application With Forms That Contain The DataGridView Control?

Sep 17, 2010

Trying to deploy an application written in VB.NET. First had an issue with not including the PowerPacks (what is in this anyway?) but that went away and the application installed correctly once I included it as a prerequisite.Now however once the user logs into the application the main menu just bombs, doesn't even load, the app just quits. I suspected it was the DataGridView and had those suspicions confirmed when I changed the application's startup form to one without the grid.

View 2 Replies

Deploying Windows Form Application With Database?

Jun 6, 2011

I am about to finish an application for a client. Now I'm having hard time deploying it since I really don't know how to do it.How do I deploy a windows form application with database?I've already downloaded the prerequisites redistributables. I also want those to be included in the installer.

View 1 Replies

System.invalidoperationexception Occurred While Deploying The Application On Other PC

Apr 8, 2010

I've made an application in VB.NET which uses MsExcel that runs without any error on the PC where .NET it's installed. But on another PC the build executable occurs an error system.invalidoperationexception The .NET FRAMEWORK that needs the application it's installed,But Ms Office is not installed.

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

Winforms - Deploying A VB 2010 Win Forms Application

Nov 16, 2010

I am deploying a VB.net 2010 winforms application, and when I install it on the client's machine, the install process also installs an instance of SQL Server 2005 Express. The application connects to a central SQL database on the server. To install, I am using the "Publish" option in VS 2010. Why does it do that? There should be no need for a local instance of SQL Express. Is there a way to avoid installing SQL 2005 Express (I know it is free, but I would rather not have it installed if possible).

View 1 Replies

Deploying The Windows Application With Crystal Report 9 In .Net 2003

Jul 24, 2009

I created the windows application with Crystal Report 9.0 in .net 2003. While Deploying the Setup file I created the Merge Modules. I installed .net Framework 1.1 in that user system. After that i installed the Setup File.

View 1 Replies

Deployment :: Deploying A Application And Creating An Access Database

Mar 25, 2009

I have to deploy my VB.NET application, and create a new access database with 5 tables, some filled in with values on installation in a specified folder in the C: drive which also needs to be created. I have found using google havent seemed to work for me. I am using Visual Basic 2008 Express Edition, so maybe I need to use a proper copy of Visual Studio 2008 to do this.

So basically I am looking for a way to create a .exe file that will be used to install my program on a user's computer, and create a folder and database with some values on instalation. Could anyone tell me how I can do this or point me in the right direction? EDIT - Also would you be able to answer this question for me. Will the computer that the program will be installed on require visual studio or any other software to run my program?

View 3 Replies

Deploying A Application That Includes SSRS Reports To A Customer's Computer

Jun 5, 2012

We created a VB.Net application which includes SSRS reports that runs on my development computer. Do you know of a step by step guide that steps us through deploying the reports on our customer's computer? We will be installing SQL Server 2012 Express Advanced on the target computer then configuring the reporting services then installing the application. The last part we need help with is to install the reports themselves on the target computer.

View 1 Replies

Deploying An Application Express 2010 With A Sql Server 2008 R2 Database?

Apr 10, 2012

I have recently developed a back end database in SQL server 2008 R2 and attached it to a application in VB express 2010.Everything works fine and when i publish the application, it works fine on my machine, but once i try to setup up the application on another machine i get the error message: A network related or instance specific error occurred while establishing a connection to SQL Server. Server was not found or not accessible please verify the instance name is correct or allow remote connections.I have read numerous forums on this saying about changing the connection string and instance name.but with being novice i dont understand what needs to be changed etc.The sql server allows remote connections, but i am unsure what else needs changing to allow the application to work with the database on another machine.

View 5 Replies

Deploying Winforms Application To Client Machines Failing On Start

May 5, 2012

This is a VB .NET 4.0 WinForms application. There is a mysql data-source involved with this project. The target CPU is set to any. Problem: When running this application on any computer that has VS 2010 installed along with the mysql connector it runs flawlessly. When installing on a virgin system(ie. No developer environment installed) but that machine does have .net framework 4.0 installed and a mysql server without the connector installed the application falls immediately. So to fix the issue I install the mysql connector MSI.

This immediately fixes the issue on the client system and it runs. The problems is that as you can see below from my Installer setup that the 2 needed DLL files for MYSQL are actually included in the installation package so should not need to be installed separately. So Why is it that using that installer from the images do I need to install the mysql connector? Any Ideas?

Below is a screen shot of the References the program uses and from what I believe I do not need to deploy any of those DLL files with my application other than the 2 MYSQL DLL files. So why is this failing? Below are images showing the project references as well as the Installer Files that are being installed in the application folder. As shown in the image the 2 mysql dll files are to be put in the application folder. There is also a screen shot showing each dll's properties for in application folder.

View 1 Replies

C# - When Deploying .NET Applications - Find Out What Zone A Share Is In Relative To The Computer Running The Application?

Jun 8, 2011

Using any version of .NET how do you find out which zone a particular share is classified under. I am having a problem identifying if a share where my referenced dlls reside is in the "intranet zone" or "internet" zone relative to some user machine that is running my .NET application. I suspect this is a problem because I am having a problem accessing referenced dlls from a share on some machines but not others. How can I tell which zone .NET is classifying that share in so I can adjust permissions accordingly?

View 1 Replies

Deploying Desktop Application With SQL Server Express As Backend Db On Local Area Network

May 28, 2009

Basically back in VB6 days, I created several VB6 apps with Access as the backend database. I'd package my Access db file with the application setup, which copied it on to a shared network drive, and then different computers on the LAN could use the same backend database file, and that worked just fine. With SQL and VB .Net, I've done work with a SQL database hosted on a remote server, so you can basically build your query string easily and anyone can connect to it from anywhere, and it works just fine.However, what I'd like to do is have a local SQL express database as the backend for a VB .Net application and make a setup program that can install it in a way that it could be shared on a Local area network, without the user who is installing the application do anything.

I know about building a connection string with the local machine name, but I don't really have any experience with including an actual MDF file with the application. Does anyone know how it works, and is it a better approach? Does it work similar to placing an access file in a shared unc path?I know that ClickOnce (which is awesome) can install SQL express easily on a user's machine. However, the key is that I want SQL express to be installed only on the machine that is going to be the database server in a LAN enviornment, and not on every machine, unless it is neccesseary. And then how does your VB app know how to build the connection string to access the database from any machine on the local share?

View 2 Replies

Deploying The VB App - How To Find The Mdf File

Jun 21, 2010

I have made a small application in Visual Basic 2008 Express. It's a small form application with a Database connected to the project. (made from the wizard in VB express)My problem is that when I deploy my application i can't find the mdf file where the data of the application i stored. I have found a mdf file which i have tryed to connect to through excel but this data is not the same as in my application.

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

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

Set Attributes Of Entry Point Thread Of A Form Based Application Before It Start?

Mar 13, 2010

I do not want to disable Application Framework feature and turn to main function technique

View 1 Replies

File Attributes That Can't Be Together?

Jun 14, 2009

I need to know what file attributes cant be added with another I know that Normal ontradicts all but Directory and NotIndexed. I also found out about Temporary cant be with encrypted or compressed and visa versa

View 7 Replies

How To Get Attributes Of WAV File

Apr 23, 2009

How do I get the attributes of a .wav file using VB.NET. In particular, I am looking for a property which has the Duration of the .wav.

View 1 Replies

Audio File Attributes?

Jun 1, 2010

i'm trying to read the details information from various audio formatted files, most of which are mp3s. specifically i'd like to be able to read the title, artist, and # for a few hundred files that need renaming and resorting, so i'm trying to start with a single file.basically, if you view the properties of any mp3, and go to the details tab, all of this information is listed. i need to grab it programatically using visual studio 2010

View 3 Replies







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