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
ADVERTISEMENT
Feb 1, 2011
I'm trying to build a setup program using the built-in Visual Studio Installer. I'm using VS 2010 and working on VB.NET.For the most basic kind of program, I have an EXE file which works on a XML file (the XML file is treated like a database). So on a Windows 7 platform with UAC enabled, the best deployment is to install the EXE file in the Program Files folder, and the XML file in the application data folder, for security purposes of Windows. (Windows, now, does not allow creating/writing files inside the Program Files folder unless your application is running with administrative privileges).
So I have added VS Installer to my current project and have opened its File System Editor. So to create the above layout, I've added Primary Output to the Application Folder. Then I've added its shortcut to the User Desktop.Now I need to place my XML file to the application data folder. VS Installer gives the option of User's Application Data Folder, which is the %appdata% folder in the environment table. I need to access the All Users' Application Data Folder.
1) How do I access the All Users' Application Data Folder over here?
2) I tried using the User's Application Data Folder. It doesn't work. It doesn't create any folder in the %appdata% (e.g. C:UsersFarazAppDataRoaming). I tried to play around with various properties, like AlwaysCreate which is supposed to create a folder obligatorily. It doesn't create anything.
View 5 Replies
Jan 17, 2012
I have a few free days during which I am trying to learn something. I posted my last question in Visual Basic IDE but no one has returned with any responses. Iam not sure if I am posting this too in the right forum!
I am trying to practise a chapter on Building Custom Windows Controls. But I don't have Windows Forms Control Library to start in my Visual Basic 2010 Express. I downloaded Umbraco but there is no visual interface to it. I can't afford to buy the Visual Basic proper edition. Programmerss
View 8 Replies
Jun 16, 2009
i want to create an installer of my program.but i want it to be with the aid of a wizardcould somebody tell me how to create it. i dun know how to create an installer.
View 2 Replies
Apr 5, 2009
I've decided to go with a Windows Installer (Setup Project) in VS Prof, rather than ClickOnce,I've added this project to my main project, and have right clicked and selected 'View -> Launch Conditions', it requires the .netframework 3.5.21022...
But I've created the installer project for .NET 2.0 framework, is this going to stop someone from installing the project without .NET framework 3/3.5?EDIT: I've found under the properties of that installer project, that .NET framework 3.5 and Windows Installer 3.1 was selected as a prerequisite, unchecked those, and checked .NET Framework 2.0, however the version under the launch condition .NET Framework is still 3.5, it should be 2.0
View 1 Replies
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
Jan 2, 2012
I have a VB app that uses a sqlServerCE database. Everything works quite fine on my computer.
When I try to install it on other computers I run into problems. The message "Unable to load the native components of SQL Server Compact corresponding to the ADO.net provider of version 8080"
I am testing on a Win XP virtual machine.
My first attempt was to use InstallShield LE to create the installer. I defined ServerCE as a prerequisite and when I check in add/remove programs it exists, but I still get the error.
Then I tried building the installer with the Microsoft installer. This adds the dll to the program directory automatically, but I still get the error.
I read the KB article referenced (874247) and recompiled the app as an x86 application only, and rebuilding the installer, but have the same problem.
View 4 Replies
Sep 13, 2010
What is the vb.net equivalent to accomplishing this?
static void Main()
{
frmCalcView view = new frmCalcView();
[code].....
View 5 Replies
Jun 21, 2011
will a VB 2010 (Windows Forms Project) run on the Windows 8 platform?
View 3 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 4, 2009
I have to design a custom "log grid" control to use in another of my projects.Up front, I am new to vb.net 2008. I have used VB6 for years and I am trying to learn how to resove the differences as I go. But I need help.
This log grid contains 96 columns and 4 rows.I tried using the TableLayoutPanel and a Panel per cell but found the control to slow to paint. That's 384 discreet controls.I am now trying a usercontrol with a panel and GDI+ to create the grid. I've created a collection for the columns and a collection for the rows. So far so good. My mouse clicks raise the correct events per cell.
I now need to indicate which column the mouse is over. This is the problem. The column must be highlighted by a vertical bar from the top of the column to the bottom. It must also be transparent. I need to see the gridlines under the highlight. I've tried using region using the following code. (myRegion is declared Private MyRegion as Region at module level for persistance)
[Code]...
View 4 Replies
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
Oct 26, 2011
I have created a custom designer (PannelloSfondoDesigner) for my custom control, a background panel (PannelloSfondo).
<Designer(GetType(PannelloSfondo.PannelloSfondoDesigner))>
Public Class PannelloSfondo
Inherits UserControl
[code]....
It works, I click the little arrow, the context menu appears:I click the menu item, the event is fired, the control is docked:but the menu description is not updated or refreshed (it should show "Undock from parent container"). Then if I click outside the control to deselect it and then I click back on the arrow to show the menu, the right menu item is displayed:How do I refresh the menu items?
View 1 Replies
Jul 8, 2009
I need to work with custom controls, I want to be able to set the properties of my controls so when I put them on my windows forms they will show up in the properties window thing.
View 3 Replies
Dec 5, 2010
how can i crate a customized installer/uninstaller package for windows programs?
View 1 Replies
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
Nov 14, 2011
I've search the net in order to create a custom control but nothing I find is worth looking at, The main thing I want to do is create a skinengin via DLL and import it in my vb 2010 then using or creating some sort of skin builder where I can create a full setting file which contains all the details of the customization regarding the Form(Look, Feel and the controls such as a menu), I have used Iriskin and multiple apps doing this for me and when a user installs my application they still recieve a message about buying the registered DLL file, I would like to create it completely from scratch.
View 2 Replies
Mar 30, 2009
I am trying to figure out how to generate code from user input. In Visual Studio 2008, Visual Basic.My script always begins with:function Init (Quest)Then from here a user would input a quest name, type and zone in a interface using windows forms.[code]I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.Is there anyone that can explain how I would go about doing this. Or maybe some kind of visual studio plugin that will help me out.
View 2 Replies
Aug 25, 2009
I have a web service that I'd like to include as a project reference inside a windows forms application. (The application will be running on non-networked hardware.) I could simply copy the *.vb files I need into my forms project, but I'd rather not fork the code base.It wasn't hard to include the ASP project in the windows forms solution. However, I can't figure out how to reference it in my forms code.
View 2 Replies
Jan 10, 2011
I am busy with a project converting VS2005/2008 sln files.
I am quite far but have came acroos a problem with my source code.
I have found the files I need to change, I have changed them to the version that I need.
I now need to read the files back into my program and delete the line I have changed as it contains project numbers that are irrelevant. Then I need to save it.
I have got as far where I have searched for lines that begin with 'Project'. I have changed this also so it's now a question of reading the files in, Deleting the line with the 'Project' number and saving them.
[Code]....
View 1 Replies
Apr 14, 2010
While implementing this article,i cant understand what they try to mean by this:Still in the Code Window, change the line that reads:Inherits System.Windows.Forms.UserControl So that it reads:Inherits System.Windows.Forms.Button..if i change this line of the designer form: Inherits System.Windows.Forms.UserControl to this: Inherits System.Windows.Forms.Button...then when i return to the designer,i am getting this error: The designer cannot process the code at line 22: Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) The code within the method 'Initialize Component' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
View 21 Replies
Mar 13, 2009
I was having error while making the installer in my program. I have images inside the debug folder and i use those images in my program. I successfully create the installer the problem is that when I run it it gives me an error message looking for my Images folder.
View 1 Replies
Sep 2, 2011
If I build a Windows Forms project in Visual Studio 2008, and start it with a Sub Main instead of a form, and for the time being, don't show any forms, is it considered a Console application? Will console.writeline work?
View 3 Replies
Mar 19, 2010
I'm suddenly having trouble with GetPrivateProfileSection in a Windows Forms project in Visual Studio 2008. The same code works when it's run as an aspx page in a website. Anyway, I define the WINAPI call thusly:
[Code]...
View 7 Replies
Feb 3, 2011
It was very practical to keep build number in VB6, as it auto-incremented that number every time that i "compiled" the program.
There is any equivalent feature in VB.Net? I am using VS 2005.
View 1 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
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
Mar 11, 2009
In my project properties I have the version/build numbers automatically incrementing... I'm on 1.0.0.16.
The problem is that with each new/updated installation, my build numbers aren't changing... even though my project properties page shows the appropriate version/revision incrementing. I created the installer project at version 1.0.0.13. Although I'm now at 1.0.0.16, My "About" form still shows 1.0.0.13.
I do not hard-code the version in this form... I use the following
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)Hope this isn't too vague. The installer project creates a setup.exe and setup.msi file. When I publish my solution is also creates a setup.exe file.
View 4 Replies
Aug 17, 2009
I use VB 2008 express edition. I want to be able to make an installer for my project. If I run the executable file from the development computer, it works fine. When I try to install the program in other computer, it tries to download .net framework. Is there anyway to prevent this to happen? I have the .net framework installer in a CD.
View 2 Replies
Oct 15, 2011
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers.There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.".ca i have any chance to solve this error without installing framework 3.5
View 2 Replies