VS 2008 Custom Uninstall Action Not Executing?
May 26, 2009
I've created a program that creates a registry value when it is run, and when this program is uninstalled I need it to remove this registry value if it exists. So I wrote a little command line VB.NET program that simply checks for the reg value and removes it if it exists and I added this to the Uninstall section of the Custom Actions tab in the Visual Studio deployment project that I created for this app.
I know that the command line app works because if I run it myself manually it deletes the registry value, but when I uninstall my application it does not remove the registry value so obviously this command line app is not being executed.
View 1 Replies
ADVERTISEMENT
Jun 23, 2011
Have a VB.net application that installs initially from CD and then when the user gets into the internet the application updates. In order to better support problems with this application is has been suggested in the past to uninstall it and do a fresh re-install. However, in investigation it was determined that the uninstall does not consider all installed objects and does not uninstall the CD install.Can the uninstall functionality be modified to catch the other instances of this application and also uninstall them?
View 11 Replies
Jan 12, 2010
I currently have a Win32 deployment package that I would like to include a custom action to send an email or contact a web service, is this possible?I know I can create a custom action to call an executable but I would prefer not to use this method and was wondering if i can send an email or call a webservice directly from the custom action.The reason I wish to do this is so that I am notified when the end user install's the package.
View 1 Replies
Sep 20, 2009
How to add a custom action in C# setup project as creating a database in sql server by making selection of local or remote server during installation?
View 5 Replies
Dec 9, 2010
I am using Visual Studio 2005. I have just figured out how to create a Custom Action during installation, but I can not figure out how to get data from the installer. Following is the simple test code that I am trying to use to call the directory that the user defines during installation, but the Path string is not returning anything.
Public Overrides Sub Install(ByVal stateSaver As System.Collections.IDictionary)
MyBase.Install(stateSaver)
Dim Path As String = MyBase.Context.Parameters("targetdir")
Dim AppConfigFile As String = Path & "FilesAppConfig.txt"
MsgBox("The target filepath is: " & AppConfigFile)
End Sub
I have tried many other things, such as...
Me.Context.parameters("targetdir")
stateSaver.item("targetdir")
And I entered /INSTALLDIR="[TARGETDIR]" in the custom action data property.
View 1 Replies
Dec 5, 2011
Looking to have a list(Of object) where i can make my own Add method, so i can do some stuff to an item when added
Is that possible at all, been looking at the net and haven't found anything.
View 5 Replies
Jan 7, 2011
Since .net 4.0, is the new ettiquette to use syntax such as:
Private Sub Main()
MyMethod(AddressOf AnAction)
End Sub
Private Sub MyMethod(ByVal toDo As Action(Of String, Integer, Boolean))
toDo.Invoke("Tom", 1, True)
End Sub
Private Sub AnAction(ByVal p1 As String, ByVal p2 As Integer, ByVal p3 As Boolean)
End Sub
[Code]...
This goes the same with Tuples/Func too. It is nice to write but feels a bit sloppy in places. Why would anyone want Tuple(Of T, T2, T3, T4) over a nice class type? My actual piece of code has these nested, so it passes the Action along in a chain of methods.
Sorry for the VB example, AddressOf is just VBs way of saying new Action(AnAction). Also I just wrote this into the browser so it might not compile either.How to people feel about reading and using these compiler generic actions as opposed to proper special entities crafted for their exact requirements in the solution?
View 1 Replies
Sep 12, 2009
I've made a small program that creates a registry item in the users run key (basically starts the program on bootup), my question is does anybody know how to remove the item from all the users of the computer when the program is uninstalled?.
I know that all the other users registry hives aren't loaded at anyone time and feel a custom action dll that runs on uninstall that iterates through the 'documents and settings' folder loading the hives one at a time and removes the registry key.
View 3 Replies
Oct 2, 2009
I am trying to kill my program when a new version is being installed through the installer using a custom action.
[Code]...
View 6 Replies
Jan 4, 2012
I need to install a windows service via an .msi for many tablets which is nooooo problem. The problem is, the tablets currently have the service running which was installed by installutil. So when my installer runs, regardless of Remove Previous Version is true, it stops stating the service already exists and to uninstall it from Add/Remove Programs.So I wrote a console app which preceeds the primary output as follows:
Sub Main()
Try
Dim filename As String = "C:Program FilesRSCProjectServiceSetupRSCProjectService.exe"
'Dim filename As String = "C:RSCProjectServiceRSCProjectServiceinDebugRSCProjectService.exe"
If System.IO.File.Exists(filename) Then
[code]....
View 3 Replies
Nov 18, 2008
I have VB6 and i want to install VB.NET 2008 without uninstall VB6. Is possilbe? Can i works correctly both?
View 1 Replies
Apr 4, 2011
I use Project Setting in visual studio 2008 and everything works correctly and save my information when the application is closed. However the information it lost when the application is Uninstalled. The information is not available with my new install.how to keep Project Settings through uninstall and installs!
View 4 Replies
Mar 28, 2011
a datacontext defined in a module(domain services ado.net ria)a page having add/delete methods whenever any method is executed, it is found that all the previous actions (NEW RECORD ADDITION and DELETION OF RECORDS) are carried out before the new action is carried out normally
this behaviour is not prominent but "when using break points and inspecting the values of the variables and table object to be added to context, it is clear that all the previous actions take place again. even when the datacotext. savechanges is called, even after that still all actions carried out on the datacontext repeat themseleves, when any new action is to be carried out
View 1 Replies
May 24, 2010
Actually I want add some folders and files to MSI. Through custom action i want to copy that added folders and files to some destination/target folder.
View 1 Replies
Jul 26, 2011
We are currently changing our Antivirus program which involves uninstalling our current one first. That isn't a problem but we have several laptop users not in the building who might have a problem uninstalling programs.
It should be possible to write a script/program to automate the uninstall process I guess, but don't know where to start. Can someone point me in the right direction?
View 7 Replies
Apr 14, 2012
I am creating an Excel Add-In using Visual Studio 2010. My intention was to add a context menu to a cell and perform some action on the selected cell or cells. Here is the code I have got as of now
[Code]...
View 2 Replies
Jul 31, 2009
I have a sub in which I call different subs, depending on a value I pass through. It works fine for all but the last one. It executes the sub I call but then comes back to the first sub and runs the second one again
[Code]...
View 18 Replies
Apr 5, 2009
1)i don't know how to make my piano play a file while the button is clicked only instead of playing a file to media-player until it has ended!2)Also i dont know how to make the mediaplayer play the file from my.resources i added instead of the my files on the c:example.wav.
View 1 Replies
Sep 4, 2009
I am working with a datagridview and 2 text boxes.TextBox 1 is for entering time of the day and TextBox2 is for entering time duration in that order. After TextBox2 looses focus I am converting the times into index numbers in my DGV1 and filling the selected indexed rows with some data. The data then is checked and if there are issues message is display prompting the user to correct it. However, all my codes for checking the data and selecting options are in the DataGridView1 event handler:
Private Sub Datagridview1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MouseUp
Is there a way to execute one Subroutine from another Sub. Sort of simulating a mouseup click programmatically ? Correction: there are 7 sets of those TextBoxes representing 7 days of the week. I am trying to avoid duplicating all that error handling codes in all 14 boxes. I have read that MouseEventArgs are protected so it may not be easy.
View 6 Replies
Oct 12, 2009
I'm trying to execute a SQL command, but I just can't find out why this is not working. This is how I defined the "execute" function in my class named "clsSQL":
[Code]...
Probably, I just need another pair of eyes, 'cause I can't see what am I doing wrong Could this be related to the database and not to my code?
View 9 Replies
Jun 24, 2010
So, I want to execute a javascript on WebBrowser1 when I press a button. Normally, I'd just navigate to the javascript to execute it. Like this:
Private Sub WebPageEditorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WebPageEditorToolStripMenuItem.Click
WebBrowser1.Navigate("javascript:document.body.contentEditable='true'; document.designMode='on'; void 0")
[Code]....
This makes it where I can't leave the website and it keeps me on that one website. But the problem is that navigating to the javascript is not like [URL] so it won't let me execute javascripts that way. So, basically, my question is:
Is there any other way to execute a javascript with Visual Basic 2008 without navigating to it?
View 1 Replies
Sep 16, 2009
I've designed an Order Entry System and now I'd like to send an email when an Order has been saved to the Database. I could probably do it from the client machine pretty well, but really what I was looking for was to inform another program running on the server that an Order has been saved into the database with OrderID:xyz. And have that program take care of sending the email. I have no problem designing this second program, in terms of the basics of responding to an event and sending an email. But my question is: how do I raise an event across the network that this other program will respond to?
View 2 Replies
Oct 18, 2011
I have one executable application (*.exe) compiled in Nullsoft's NSIS. So what I need is to get object name for 'Next' button and simulate it's action [basically what I mean is to create button in VB and when I click it it will go to the next page of Nullsoft NSIS Installer in Nullsoft Window].
View 4 Replies
Aug 4, 2009
I can't get this to work..
vb.net
Private Sub UpdateLVItems(ByVal Index() As String)
lvDrives.Items.Add(Index(1))
lvDrives.Items.Item(Index(0)).SubItems.Add(Index(2))
lvDrives.Items.Item(Index(0)).Tag = Index(1)
End Sub
[Code]...
View 3 Replies
Jun 2, 2011
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
[code].....
View 1 Replies
May 13, 2009
i seem to be having issues with my simple count down project. The count down work how I want it, there is also a pic of a rocket that move up when the count down button (Button4 - the form was set up in class as a quick example, so there was no need to name the buttons) is pressed. The problem is that the count down "10....1...Blast Off" shows after the rocket has moved up, I want the countdown text to show, then the rocket to move.The countdown is outputted to a ListBox.Here is my code thus far: (I have re-worked is a bit, starting to look messy)
[Code]...
I am not sure if I should be doing it as a function, that was just one of my attempts to get it to output everything in the right order.
View 8 Replies
Oct 20, 2010
i am using vb.net 2008 and msaccess i have given the following query to fill a dataset but it is giving me an error. mCmd = " SELECT OfficialInfo.*, "
[Code]...
View 7 Replies
May 4, 2012
I wanna know how could I do to:Assemble a finished program, install it, and leave it executing in second plane to just push a key to work. Execute it once at the windows start and execute just a single key to make it work.I'd like to know what should I put before the assembly
View 5 Replies
Feb 19, 2009
If certain conditions are met within a given subroutine, I would like to execute two other subroutines. Note that the other subroutines I want to call/execute "handle" a lot of events
vb
Private Sub S2_Enter (ByVal sender As Object, ByVal e As System.EventArgs) Handles S2.Enter
If upltschanged = True Then
[Code]....
View 3 Replies
Apr 11, 2009
im using an open source backup tool and im going to add extra functions. [Code] All in all im wondering how i can incorporate "sleep" into sleeping until the selected time, and then performing the backup.
View 1 Replies