I have recently released a free application for some game and now I have added a few features 'the public' requested.
I used Inno Setup to create the installer, which works just fine.
Now however, instead of having the ask the user to uninstall the current version, and then reinstall my new version, I want to be able to give the user an Update install exe which they can simply run and it will update the existing application.
One thing I would like is that the users Settings are not changed. So hence the following questions: 1. Where are the Settings stored? I thought it was in the user's Local Settings <Application Name> directory, but I cannot find my application there... I cannot find it in the All Users or Administrator 'accounts' directories either...
2. Are the Settings stored depending on the Version of your application? (Assembly Version / File Version)?
If 2. is true, then obviously changing the Application Version (which is logical in an Updated executable, no?) would also change the Settings back to default..? Can I avoid that?
Finally, is it enough to simply overwrite the executable? What registry 'work' do I need to do, or can Inno Setup do that for me? I am only using one other file which is the SharpZipLib DLL file.
I am currently writing a program in VB 2008. Here is what the program is intended to do: I need it to have two forms of input, so I want it to open existing text files and create new ones. Once the user has selected what input to be taken (either a file is opened or a new one is made, guessing multiple forms need to be used here) the user will then take the text file either created or opened and then be able to click a button which will sort all the text in the text file into alphabetical order and then display the results to the screen. While this happens, I need the words in the file to be counted by a counter (so a loop i guess) that then displays on which line each word appears on. I then need this information to be displayed in a text box on screen.
I would like to implement update to my applications but not in the automated fashion. I would like the user to check for update, through version control in my database, and if there is a newer version, it will automatically shutdown the user's application and run the update (copy and replace files in the users application folder). After the update, it would restart the application for use. I was thinking in creating a .msi for creating and replacing files, still don't know how to create it! My main concern is to be able to implement a proven and correct .Net method for Updating applications. A best practice for deploying and executing updates to my applications.
I Created the setup for my vb.Net appliaction and installed it on the client systems. The application uses MS Access as the database. So i manually added the file to Setup project under its application directory.
I am trying to create a update application for Windows CE.
It will go out on the net to my site and see if there is any new updates but I am having a problem doing that.
Firstly it is working fine if I create it using a 'Windows Application' but as soon as I Copy + Paste the code to my 'Windows CE' app (smart device, windows CE) it comes up with an error.
I am using .net framework 2.0.0 and vb.net 2008
Here is the code which I am using:
Code: Function DownloadFile(ByVal sURL As String, ByVal pProgress As ProgressBar, ByVal Filename As String, ByVal Prefix As String, ByVal Rename As Boolean) As Boolean Dim wRemote As System.Net.HttpWebRequest
i have a simple application which can create/update/delete/search records using Access database. If i add a record, save it, then close the application and run it again and search for that record, it appears. However, when i write some code to my application, nothing to do with the search function, and i run the application the record is not found. For example i added a button to clear the textfields, and when i ran the application the records i have added earlier were not found.
Okay have developed a form in vb.net cf using sqlce. I know this is the vb.net section but I feel it's a data issue. I have a table called STORES which has a primary key of two columns (ST_STORECODE & ST_CY_CODE).I populate a dataset with all the store data and to the following to find the required row:-
[Code]...
When I step over the update command I get a concurrency error. Can someone PLEASE help me with this. I have spend days trying to fix it. All I want to do is find a row, do some changes and save it back to the database.
I have a DataGridView bound to a non-SQL Server database. I need to allow users to edit existing records but under certain circumstances I need to intercept the edit and instead of committing and updating the dataset I need to delete the edited record and re-add it as a new record. I have tried using every event I can think of to do this but haven't managed to get it right.
The closest I have got is with this: Dim theRow As DataGridViewRow Private loading As Boolean = True Private rowLeft As Boolean = False Private WithEvents cm As CurrencyManager Dim copiedRow0 As String [Code] .....
This almost works but sometimes completely messes up and re-adds rows twice and all kinds of other bad side effects. It seems a really simple thing to want to do but I just can't get it working.
how to update records on an existing access database using vb.net with just a textbox and a command button and how a specific record of a field can show up in a label or a textbox
i connected vb.net to my access database by just clicking on "add new data source">>"new connection">>"microsoft access database file" and just continue..tested connection and done.
you can see in the screenshot of my form, by default the left side textboxes are disabled but they're enabled if the user checks the checkboxes and disabled again if unchecked.
assuming that the textbox is already enabled and i want to enter a value in the Brewed Coffee area of the form...for example 5. when i click on my Submit button the value of that particular record in the database will be updated, so in my table the value of the quantity field in Brewed Coffee will be 5.
another thing is that how can i see a particular value on a label or textbox from my database like on the Prices area. in my database if a product's price is 80 then it should show a 80 in the label. the values of the prices from the screesnshot of the form are not the ones on the database xD i just typed them in.
im having a problem with replacing some files in a folder, i have made a Auto Upater for a application im making (so beta testers can test it and also get updated stuff to test) now i can replace the Main application.exe with
If File.Exists(Application.StartupPath + "\test.exe") Then File.Replace(Application.StartupPath + "\update\test.exe", Application.StartupPath + "\test.exe", Application.StartupPath + "\test.exe.old") End If
This is after i have unziped the main update.zip folder it downloaded
but i also have a Data folder in the Main application folder and inside the new update\Data folder its has updated files now i cant list all files to replace like above as i want be replacing all files all the time, so im looking for something like you have on windows (would you like to replace files) without the prompt its just replaces them, so really im looking for a move and replace without prompting
I have a listview which contains information. This information is retrived from database, 'till now ok. The problem is: I must update the existing items on listview and insert the new ones.
What I am trying to do is update existing records in a dataset with an unbound datagridview. It updates just fine but I have added a simple backcolor change for errors. What I don't understand is it will update fine but throw the backcolor = red at the same time. Am I overlooking something here?
vb.net For Each dr As DataRow In Form1.DbDataSet.Tables("tblInventory").Select() For Each row As DataGridViewRow In DataGridView1.Rows If row.Cells("colInventoryID").Value = vbEmpty Then 'Do Nothing Else If dr.Item("Inventory ID").ToString() = row.Cells("colInventoryID").Value.ToString() And
[code]....
I'm trying to get this working in a test application before adding it to my main project, so that's why the names of controls are the way they are.The errors I'm trying to show are if "Inventory ID", "Cart" and "Shelf" do not match. When they don't match it doesn't update, which is what it is supposed to do. However, if they do match they update just fine but also show the Inventory ID error. If I comment out that ElseIf for the Inventory, it throws the Cart error. It's like the ElseIf blocks get called even if the If statement is true...
Please can you translate the above line of C# into VB.NET?At runtime, I'm trying to update an existing GridView column, as opposed to adding new columns, just before a DataBind()
I am looking to get some information on updating my own applications. Because what I have to do at the moment is replace the files every time it changes so I would like to know what are the options available starting with the easier ones or does it involve any third party applications. For example I have noticed some applications checks the files before it starts up and then asks a user if he wants to update it
I am working on a database application for my Class Reunion in VB.et and VS 2008, My problem is when i build the program it will only work with 1 Database For my Class year, I would like the ability to be able to create a new database for a different classyear than the 1 i build and pre-Populate, so the person using it can do more than 1 year and keep the databases seperate.
I would like to make a copy of an existing database in microsoft SQL Server 2005 in code, if that is possible. I'll need to make a copy of the original one, and change the name to some other name choice. All tables, stored procedures and such will be exactly the same.
I have a table in database which I need to add a new column to. Normally I would load the access database and create the column but in this instance I have to many databases to amend. Is there a way in code to first detect if the column exists and if it doesn't create it in code?
Im working on a prog for my work. however, im stuck. I come to a spot where i need the prog to copy a sample table to an existing database. we can either simply copy the sample table, or as a last resort, create a new one from scratch.
How to call the .net windows service from VB application
I have only the executable for VB application. Through the exe , I am able to view the .Net service, but it does not allow to install the .net services.
Is it possible to change an Icon of an existing application? I mean script in vb an application that allow to change any icon of apps. If its not , create a shortcut with the icon we want of any apps.
When I try to create a new asp.net application in vb.net vs 2008, visual studio just hangs without any error messages. It does create the virtual directory on iis but nothing happens. I have checked and iis is installed, then i re-installed vs 2008 and used the aspnet_regiis -i command to register aspent. but sitll no success.
We have a client who has asked us to write a GUI that is capable of connecting to an existing, running application. This specific application has quite extensive .NET and ActiveX hooks in it, but it's a third-party application and we do not have access to the source code. The client has specified VB 2008, despite the fact that the target application has perfectly good GUI creation tools itself.
I can successfully start a separate instance of the target application, but that is not what the client wants. The idea is that the user would start this application, open a specific file with it and then start the GUI which would take control.
I have searched a number of locations (including 18 pages so far of this forum) to try to find help on this sort of thing, but the success is slow coming. One code snippet enabled me to find the running process, which may help me to connect. I am also browsing CodeProject to try to wind useful information on this.
I need to create a timer that sets the time from an existing text file. The time format in the text file is 00:00:00 (hours,minutes, seconds). An excerpt from one of my text files looks like ClockSet = "00:49:05"
Also, if possible, when the timer reaches 2 minutes I would like the backcolor to flash between red and green.
I have a csv file that needs to be automatically updated on a daily basis. I am writing a vb.net app to accomplish this. However, Im having issues with the entire process.I need to be able to read in a csv file, manipulate the data and then update the existing file. I have dabbled with using the Excel objects but I need some assistance.