C# - Custom Installer Class?

Aug 4, 2009

I'm working on a project which needs some third party components prequisites to be installed before installing my .NET Application. Can someone tell me how to do it ?? I'm using .NET prequisites components to install the components like (.NET Framework 3.5,Windows installer 3.1,Crystal Reports) but what if i have some third party components which is not listed in prequisite lists ...

View 2 Replies


ADVERTISEMENT

Craete A Custom Installer/uninstaller?

Dec 5, 2010

how can i crate a customized installer/uninstaller package for windows programs?

View 1 Replies

Make A Custom Installer [VB 2008]?

May 4, 2010

I want to make my own custom installer without those other stuff. I want the installer to how I made it.I got the layout, directory picker and everything but how can I get the files I want them to install into the program and they click a button so they install to the location.

View 2 Replies

Create A Custom Class That Has Inside An Array Of Another Custom Class?

Jan 31, 2011

I want to create a custom class that has inside an array of another custom class (see my code below) but when the programm runs is crashes. Why? What is the right expression???? Plz help I'm a newbie in VB.net.....

Public Class ctrarray
Public nameclass As String
Public ctrlindex(glvar_spaces) As ctrlindexclass
End Class

[code]....

View 6 Replies

Building A Custom Installer From A Windows Forms Project?

Aug 11, 2010

What actually is required to consider something installed on a machine. What happens in the background? I know VB offers an installer but Im trying to build my own from scratch. What do I need to do to accomplish this?

View 13 Replies

Kill Program When A New Version Is Being Installed Through The Installer Using A Custom Action

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

IDE :: Installer Class Is Not Coming In Project?

Sep 20, 2011

OS: windows xp sp 2 visual studio IDE: VS 2008

I have found this link for creating custom Install of setup in vb .net[URL]...To create the custom action

On the File menu, click New Project.In the New Project dialog box, select Visual Basic Projects in the Project Types pane, and then click Class Library in the Templates pane. In the Name box, type OpenWeb.

The project is added to Solution Explorer.

On the Project menu, click Add Class, and then in the Add New Item dialog box, select Installer Class.Accept the default name of Installer1.vb. Click Add.Switch to code view by clicking click here to switch to code view on the design surface (or by right-clicking the design surface and clicking
View Code). In the Code Editor, add the following code (which opens a Web browser) to Installer1.vb, under the constructor:

View 4 Replies

Starting An Executable From An Installer Class

Dec 20, 2010

I have added an installer calss in one of my projects that is used to start the aplication (when the setup project is run). To do this I use the commited event of the class and then I use Process.start("...MyApp.exe").This works fine and starts the application however, on Windows Vista the process that gets started is running as a system user rather than the logged in (desktop) user. This is causing me all sorts of problems when it comes to using "User special folders" as they are returned as empty strings since the user is the system.Does anyone know how I can start the application as the current user?

View 4 Replies

Determine Directory Setup Msi Is Launched From Within Installer Class?

Jan 24, 2010

In my installer class, I want to check the existince of a file in the same directory that the setup msi is launched from.How do I determine the directory the MSI is launched from, from within the Installer Class?My installer class is launching succesfully and is able to process a file if I hard code the name and location. My goal is to remove that hard coded reference.

View 5 Replies

OpenFileDialog.ShowDialog() Hangs When Used In An Installer Class Windows7 And Vista

Dec 17, 2009

I have an installer class that presents a form to the user. One of the functions of the form is to browse to a file using the open file dialog. This form functions fine when used in an application but hangs when calling OpenFileDialog.ShowDialog() during an installation on a Windows7 or Vista machine (Windows XP it works as expected). I get the same rusult when 'run as administrator' and with UAC off. I also get the same results when calling SaveFileDialog.ShowDialog() in the same context. The call doesn't throw an exception but causes the form to stop responding. Any suggestions on how to get this to work correctly?

View 6 Replies

Interface And Graphics :: Making A Custom Class That Mocks The System.Drawing.Rectangle Class?

Jul 6, 2010

I'm making a custom class that mocks the System.Drawing.Rectangle class because the Rectangle class doesn't have a name property. I need a name property because I am adding all of my rectangles to a collection and I need a little more info stored than just their locale and size. So I changed the _onPaint event but nothing is working out when I run the program?

Public Class Rectanglar : Inherits UserControl
Public BackgroundColor As Color = Color.Blue
Public Sub New(ByVal name As String, ByVal XY As Point, ByVal Widthy As Integer, ByVal Heighty As Integer)

[code].....

View 5 Replies

How To Create Initial Installer And Upgrade Installer?

Aug 12, 2011

I'm currently developing an application for a POS Terminal using VB.net. Our project is approaching the last stage of development and I've been tasked to create 2 installers. 1 for Initial Installation, and the other for upgrade installation.

The project is composed of several elements. These are:

1. The application executable

2. Common DLLs that we developed

3. some resources (.resx and XML)

The requirement for the upgrade installer is that only those files with modification should be installed. (i.e. if only the xml or resx files are modified those are the only items that will be reinstalled, since the size of the upgrade installer is a consideration so we cannot reinstall everything).

I'm using Visual Studio 2005 for my deployment project but I'm a bit confused about how to set the properties of each file in such a way that during the upgrade, only the files that were modified would be updated and the rest of the files will not be removed since I'm setting RemovePreviousVersion property to True. I have a hunch that I need to do something with the custom action but I haven't been able to figure it out. The upgrade installer setup is almost the same as the initial installer except that all files are excluded.I tried to acquire a copy of Phil Wilson's book (The definitive guide to Windows Installer) but its not available in our local bookstore and it would take too long to order it.

Basically while tinkering with the settings/properties there are instances where the dll was not updated and there are also times when the application exe was removed.

I already verified that the Product code is the same for both installers and that I'm sure that the version number is being incremented for each upgrade.

If I will be redoing both installers from scratch, how should I go about it?

I'm also confused about the Condition property and the transitive property.

View 6 Replies

VB2010: Visual Studio Installer Add Other Installer?

Jul 19, 2011

Triying to use the built in Visual Studio 2010 to install a couple of files and after that is done to run another installer package (3rd Party Installation Wizard).

View 1 Replies

Creating A Windows Installer CD - Initiate The Windows Installer And Have Failed?

May 29, 2011

I have written a program in Visual Basic 10 and all is well. I have published it and have been burning the result to a cd and installed it on various computers, however it is the click once app, which has been fine till now. What I need to do now is to have the program install the .exe file and associated files (non click once app) to a specific drive on a computer or network computer. I have searched the net for instructions on how to initiate the windows installer and have failed. is there a program that you can select the source files then point to the installation folder tell it to go and an installation package gets made that I can burn to disk.

View 3 Replies

.net - WP7 Custom Class UI Binding?

Feb 4, 2011

I have a map with a MapItemsControl in my WP7 app that contains pushpins bound to items in a collection of custom classes. The pushpins are bound to properties of the item in the collection via a DataTemplate.When an item is added to or removed from the collection, all pins display correctly, with properties as per bindings, but when just an items' properties are modified, the UI does not update. The bindings just seem to get values from the source item upon loading, but I'd like them to keep the UI elements updated when the source collection items' properties are updated.To illustrate, I'll create a similar example:

Heres a custom class:

Public Class Box
Property CurrentColor As Color
Property Location As GeoCoordinate
End Class

[code]....

Whenever I add or remove items from TempBoxes, the pins all render as they should (e.g. if I specify a color in the collection item, the pin shows the color).Tapping on the item triggers the BoxTouched sub, which causes the item's color to change in the collection, but the UI doesn't change (pin color stays the same).To get the UI to update the color, I have to get it to render the pins again, by adding something like this to BoxTouched:

BoxControl.ItemsSource = Nothing
BoxControl.ItemsSource = TempBoxes

View 1 Replies

Arrays In A Custom Class?

Feb 14, 2009

I can't figure out why this does not work.

Public arrs(32) As ARR
Public Class ARR
Public nr As Integer

[Code].....

View 2 Replies

Custom Number Class?

Jun 8, 2010

I recently had the problem of trying to store an enormous amount of decimal places in a variable. Someone suggested that I create my own class to handle this. However I have researched extensively and can't seem to find a suggestion as to how I would do this. Would I read each digit into a list? How would I get each digit as to loop through a decimal, for example, and add each digit would still only give me 28 decimal places

View 8 Replies

Listbox And A Custom Class To Add Value?

Oct 21, 2010

Error Unable to cast object of type 'System.Data.DataRowView' to type 'M8_Rating.myItem'.Any idea what the deal is?

Dim MyItems As New List(Of MyItem)
For Each selItem As myItem In lb_forms_SecurityMgr.SelectedItems()
MyItems.Add(New myItem With {.Description = selItem.Description, .Value = selItem.Value})

[code].....

View 5 Replies

Moving From VB6 And Custom Class?

Feb 13, 2010

I have some questions regarding the dispose method as per custom classes.I imported a class using the upgrade tool and got introduced to the finalize method and this line of code within:

MyBase.Finalize()From what I have read this method is the class destructor and I should not be using it. Instead I should implement the IDisposable interface.

[Code]...

View 2 Replies

Serialize A Class That Is Not A Custom Of Our Own?

Apr 14, 2010

I need to look at the properties of an object and I cannot instantiate this object in the proper state on my dev machine. I need my client to run some code on her machine, serialize the object in question to disk and then I can analyze the file.[code]...

View 2 Replies

Using A Custom Class In HashSet

May 30, 2010

I created a custom class which just stores 3 byte values, (R G B to be exact), which constantly change. So my idea was to store that class in a HashSet, then create a new instance of the class (with different byte values) then add that to the HashSet. There can be duplicates, which is why I decided to use a HashSet, which will ignore an item if it's allready been added. Doing this on a List would be too slow.But I've ran into a problem. Adding a custom class to hashset seems to only allow 1 to be added. I assume this is because its hashing the class object while ignoring the data (byte rgb values) it contains? Is there a way around this? It's possible to convert the RGB to Color and just use that in the HashSet, but conversion is a bit too slow.

View 2 Replies

.net - LINQ To XML And Distinct Custom Class?

Oct 14, 2009

I have a very interesting LINQ question. I have a document, that I am trying to filter results on, but to filter, I am matching on a REGEX result from one element of the XML. I have the following, working LINQ to XML to get the individual data that I'm looking for.

[Code]...

View 3 Replies

.net - VB Datagrid + Array With Custom Class?

May 14, 2012

I have created a class "student" and made an array which contains students.I would not only like to display the array in a datagridview, but the array should also be updated if the user makes changes to one of the students in the datagridview.

I succeeded in showing the array in the dgv: one way is using datasource prop, the other is doing is diagrammatically. However, i can't find out how to let the user edit the array by editing the dgv.

View 1 Replies

Add Custom Class To A Generic List?

May 10, 2010

I created two classes. One class is StudentClass and the other is HomeroomClass. The HomeroomClass contains a readonly property as a generic list of the StudentClass. [code]...

View 6 Replies

Add Validate To A Custom Class Property

Mar 20, 2011

I'm trying to add validation to one of my class properties:[code]The value for the golfer's handicap comes from a oombo box on the form. Even if I have nothing set for this property at runtime, my validation doesn't work. I tried putting the If statement under Get instead of Set, and tried mHandicap = value after an Else in the If statement, but nothing seems to work. I'm working in the dark here and can't find anything suitable online. I was hoping to not go down the path of ReadOnly or WriteOnly properties as I'm not at that stage yet, but does this make a difference for my purposes here? Can anyone guide me as to what I'd need to do from this point? If I've got it right, you can add validation in the class and this means that you then don't need to repeat this validation in the form??

View 3 Replies

Assignment Operators In Custom Class

Jun 19, 2009

I have a custom class that simply contains a public variable X.Let's say I have two instances of the class, A and B.If I execute an assignment operator, such as:A = B then I want A.X equal to the VALUE of B.X.But, I'm pretty sure that this will just assign B to the variable A.Assigning pointers, in C++ lingo.I looked in the VB.NET docs, which state that "The operator can be overloaded only as a relational comparison operator, not as an assignment operator."

View 7 Replies

Create Custom Button Using Class?

Nov 20, 2009

I use this code to create the same Button in multiple Forms[code]....

View 6 Replies

Creating Custom Generic Class?

Jan 1, 2011

Here are essential excerpts for the code creating the class and the page using it:

Imports System.Collections.ObjectModel
Public Class Test (Of T as xyz)
Inherits Collection (Of T)

[code].....

View 7 Replies

Custom Class And Random Numbers

May 30, 2009

I am still learning vb.net and decided to make a "horse race" to get a better understanding of inheritance and such. So first of all I made a horse class that inherits from the picturebox. I gave the horse properties such as image, height, width, x-position, and y-position. I also gave the horse a speed(between 1-1000). My idea was to have the horses start at the starting line and get them to move using a timer. Each time the timer fires the move method executes. The move method creates a new random number(seeded by DateTime.now.milisecond) between 1-1000, if the random number is lower than the speed of the horse it will "move" adding 1 to the x-position property.

Here is the code for the class :
Public Class Horse
Inherits PictureBox
Private m_speed As Integer
Private m_picture As Image
Private m_xposition As Integer
[Code] ....

Now things work as I expected for the most part, I created two new horses and gave them values, if one is "faster" than the other it will move faster. Here is the code I use to create two horses and put them in an array:
Private thisHorse As New Horse(700, My.Resources.Horse__Small_, 20, 30, 100, 100)
Private secondHorse As New Horse(700, My.Resources.Horse__Small_, 20, 150, 100, 100)
Private horseArray() As Horse = {thisHorse, secondHorse}

I give the horses visual representation using a loop during the load form event:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each i As Horse In horseArray
i.Visible = True
[Code] .....

The only problem is if I give them both the same speed they seem to move in unison. I have tried adjusting the x-axis increment and have seen them both jump at the same time. Now I realize since they have the same "speed" they should have close to the same movements but wouldn't the random factor in the move method create some discrepancy between the two? I have ran this multiple times and am still unsure what the problem is.

View 3 Replies

Custom Class As An Array Of Properties?

Sep 30, 2009

I'm moving my first steps in the VB.NET world (I come from VB6) and I'm stuck with the creation of a particular class.

Let's say we have a bus that always has 101 places. I'm trying to create a class containing the map of the bus, along with methods to graphically represent it.

My "Bus" class will have a couple of properties ("BusColor", "BusModel") related to the whole bus. Then it should have a property called "Places" whose type is a custom class thet represents every single place, along with, for example, the passenger name or the place number. This property should of course be an array.

This is my code so far (simplified):

Public Class BusMap
Private Const MAX_PLACES As Integer = 101
Private _BusModel As String = ""

[Code]....

but I wonder if there is a more standard way of doing this.

My second question is: how can I modify my class to be able to iterate its Places property with the "for each" statement? A quick search on the web showed up that I should implement the IEnumerable interface, but I'm still not enough confident with the concept of Interfaces.

View 6 Replies







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