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
ADVERTISEMENT
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
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
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
Apr 2, 2010
I've got myself a CSV file with the following contents:
1,The Compact,1.8GHz,1024MB,160GB,440
2,The Medium,2.4GHz,1024MB,180GB,500
3,The Workhorse,2.4GHz,2048MB,220GB,650
It's a list of computer systems, basically, that the user can purchase.I need to read this file, line-by-line, into an array. Let's call this array csvline().The first line of the text file would stored in csvline(0). Line two would be stored in csvline(1). And so on. (I've started with zero because that's where VB starts its arrays). A drop-down list would then enable the user to select 1, 2 or 3 (or however many lines/systems are stored in the file). Upon selecting a number - say, 1 - csvline(0) would be displayed inside a textbox (textbox1, let's say). If 2 was selected, csvline(1) would be displayed, and so on.
It's not the formatting I need help with, though; that's the easy part. I just need someone to help teach me how to read a CSV file line-by-line, putting each line into a string array - csvlines(count) - then increment count by one so that the next line is read into another slot.So far, I've been able to paste the numbers of each system into an combobox:
Using csvfileparser As New Microsoft.VisualBasic.FileIO.TextFieldParser _
("F:folderprogramnameprogramnameinDebugsystems.csv")
Dim csvalue As String()[code]......
But this only selects individual values. I need to figure out how selecting one of these numbers in the combobox can trigger textbox1 to be appended with just that line (I can handle the formatting, using the string.format stuff). If I try to do this using csvalue = csvtranslator.ReadLine , I get the following error message:
"Error 1 Value of type 'String' cannot be converted to '1-dimensional array of String'."
If I then put it as an array, ie: csvalue() = csvtranslator.ReadLine , I then get a different error message:"Error 1 Number of indices is less than the number of dimensions of the indexed array."
Structure systemstructure
Dim number As Byte
Dim name As String[code]............
View 3 Replies
Aug 7, 2009
Setup and deploy for my project worked fine for a while allowing you to install my program and uninstall the old version, but now it installs two entries. I don't get it, before I got it do do that it would give an error that it needed to be uninstalled first. Now like I said I get two entries in the programs uninstall window. RemovePreviousVersions = true. I change the version number and update the product code. Even tried changing the upgrade code. I just don't get why it doesn't work anymore, and its really annoying! Also, is there a way that the setup file can just be one .exe rather then a setup file and a data file?
View 2 Replies
Jun 21, 2010
I am working on VB.NET(Visual studio 2008)..I completed developing my application and i need to deploy the application. I tried it and faced problems in some areas like adding crystal reports to the setup and deployment. I created a setup file to my application and everything is fine except crystal reports...its showing the error like; An error occurred in crystalDecisions.Reports, crystalEngine threw exception.
View 2 Replies
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
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
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
May 15, 2010
how can i set administrator privileges selectively in my application depending on whether it needs to write a registry value or not?my app needs the elevated privileges once, then each subsequent execution needs standard permission.
View 2 Replies
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
Feb 10, 2012
I have an industrial control program that we install on OEM equipment. This equipment falls into one of two categories; those WITH a special piece of IO hardware installed on the computer and those without.
This IO hardware has .NET 3.5 support assemblies, and is easy to program for. In my program, I reference the assemblies under the Project Properties and I'm good to go. Here's my problem... my program now seems to NEED this assembly to even start up, even if I'm not directly accessing anything in it until much later in the programming. When we ship any version of this equipment; I need to install the IO hardware assemblies whether the equipment needs it or not just for my program to run. The assemblies are bundled onto a hardware driver disk, and this sucker is 3gig.
What I would like to do is alter my program so that it runs no matter if it finds those assemblies or not. If not, then it will automatically close off certain functionallities (you can't use that because your computer don't have the hardware installed); and ideally, Visual Studio won't have 100 errors about a "missing reference". If found, then it will call them and use them normally as the program currently does.
View 6 Replies
Aug 19, 2010
I was wondering if there was anyway to 'scan' page sources of websites and download only certain files based on their extensions, as you would by going to view -> page source in a web browser? Then, saving, perhaps, a .pdf, or a .swf file? I really don't know where to start.
View 6 Replies
Dec 27, 2011
Is there a cleaner way of dealing with clearing the clipboard than just 'clearing' it [clipboard.clear()]. I want to prevent file copying while these files are unencrypted, but if you clear the clipboard between rightclick-copy and rightclick-paste, it crashesexplorer.Is there a way to root out specific files (by name or type) from the clipboard or deal with the crash from WinExplorer?
View 4 Replies
Oct 24, 2011
I found some Win32 code to selectively remove CheckBoxes from nodes in a TreeView. I would like to know if there is another way to do this, since we would like to stay away from Win32. Will this work under Window 7?
Public Class Win32Functions
Structure TVITEM
Public mask As Integer
Public hItem As IntPtr
[code]....
View 6 Replies
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
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
Nov 15, 2011
I've developed a software using VB.Net and SQL compact edition database. (.sdf file) Now i want to add my .sdf file to setup file. I've search internet and create setup file. when i install the software, it is created new folders in program files including my database file and exe file. after double clicking exe file, it is open the software. but when using, it's shown a message "connection current state is closed". but when i run my vb project, it is working well.
Other details.
1) I create data base inside of /bin/debug
2) I've created setup file using this method. File menu --> add --> new project Then, Setup and deployment -> Visual studio installer After that I selected Setup project, then click OK.
3) I add database using this Right click on setup file -> add -> file (In solution explorer window) Then i selected my .sdf file.
This is my connection string
CODE:
It is created only 3 files in Program files.
1. my exe
2. my sdf file
3. System.Data.SqlServerCe.dll file
View 5 Replies
Aug 31, 2010
How can I include a batch file or an .exe file in my setup, that runs after setup is complete?
View 2 Replies
Apr 2, 2009
add serial number requirement to Setup & deployment > setup wizard for VB.net application
View 16 Replies
Apr 2, 2009
I am trying to create my exe file, so I go to build and build my project. Then I take the files in the bin else folder and try to run the exe file in another computer and it tells me that itīs missing some files like form designers and even dll files. It is trying to locate those files in the visual studio folder.
How can I make VB to include all the necessary files in the building proccess so I can run my exe file anywhere.
View 6 Replies
Jun 5, 2011
i have design my windows application in visual studio 2008 and i used crystal reports 2008.now i created a set up file which runs correctly in my system but when i run on other system its not running . tell me detail procedure (means step by step procedure) to create set up n which file to run on other system.
View 1 Replies
Oct 9, 2009
I want to deploy a VB6 application along with all the dependencies using VB.net installer (MSI). So can I execute VB6 Setup.exe (created using Package and Deployment Wizard) from the VB.NET installer (MSI).
View 2 Replies
Jan 14, 2011
I have create a program in vs 2008 (vb.net).When i finish the program i buildit and i create an msi file with shortcut in the desktop.I have run the setup and everything is gona be OK When i check my program i found an error and when i fix it a buildit again (Same Name) and i create also i new msi and setup file.In the second setup the program Override the old install and create a new shortcut.
View 2 Replies
Mar 2, 2012
how can i make the setup file to do whatever i want it to do via VB 2010 ultimate or anything else? I want the setup file when runs for first time to get the processor ID of that pc.Then i want it to save that ID. When i run it again in a different pc i want it to get the processor ID of the second pc and compare it with the one that it got and saved from the first one.If its the same it will run again.If its not the same then it wont run. Thats what i want it to do..
View 1 Replies
Mar 31, 2010
I resive this message
PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600)
[Code]...
View 6 Replies
May 16, 2010
I have my main project file. I added another solution within it. So BOTH solutions are under the MAIN project file. I can use a custom setup file, and all that other fun stuff, coupled with the 'Check for updates' via Clickonce.
IF i were to use the clickonce setup file..is there a way to have both programs be in the SAME programs folder on the start menu?
View 4 Replies
Jan 13, 2010
i have made a setup file for my project..i want to a key like a serial key to ma setup file..it should ask for key to install project..how do i add a key to my setup file??
View 1 Replies
May 12, 2010
I want to create a file setup for my project that combine such as sql express,crystal report and .NET framework.
View 5 Replies