My end result is that I want to launch another setup project after the first setup project closes. The problem is that since setup.exe is just a wrapper for the msi package.WaitForExit is quitting when the setup.exe is finished and not foo.msi.
Using Process As New System.Diagnostics.Process
Process.StartInfo.FileName = "setup.exe"
Process.StartInfo.WindowStyle = ProcessWindowStyle.Normal
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?
In my program I use WebBrowser control for OAuth. It's located on vk_auth_window form. So in the code I call vk_auth_window.WebBrowser1.Navigate(vkauthurl). If authentication is successful, I silently get token, but if user is not authenticated a form vk_auth_window is showed to them to enter username and password. To check this I catch _DocumentComplete event and check for the right URL. I need no other code being executed until the user finished authentication or closed authentication form. ShowDialog() does the trick, but it somehow hides cursor from username and password fields in WebBrowser control. So I introduced a variable Dim showform as Boolean=True in and set it to False from the _DocumenComplete event and in the main code I use infinite loop.
While showform System.Threading.Thread.Sleep(100) Application.DoEvents() End While
However it makes userinput slow due to thread sleeps. And If i remove them, it loads CPU quite a lot. Is there a better way to wait for form to close? What is it?
I have a little log in screen that pops up if a user selects a certain item on my main form. How do I get my code to stop executing til my log in form closes?This is what I am doing so far. Basically i want o execute the code after MyLogin closes.
BMSSplash.MyLogin.Show() If isLoggedIn Then BMSSplash.MyBuddy.Show() Cursor.Current = Cursors.WaitCursor End If
I'm trying to run a batch file via VB and I need to wait for it to complete/exit before progressing. The issue I believe I am having is that when a batch file is executed, it opens cmd.exe and not the batch file.
This is what I am executing with VB My.Computer.FileSystem.DeleteFile(My.Application.Info.DirectoryPath & "PingCheckmachines.txt") FileCopy(My.Application.Info.DirectoryPath & "machines.txt", My.Application.Info.DirectoryPath & "PingCheckmachines.txt") Dim psi As New ProcessStartInfo(My.Application.Info.DirectoryPath & "PingCheckgo.bat") psi.RedirectStandardError = True psi.RedirectStandardOutput = True psi.CreateNoWindow = False .....
The problem I am having is that it will just delete ping.bat before it completes. How do I go about monitoring the process from the batch file I call. Then once it exits, continue with the script?
In my MDI Application code I have a form that launches a second form then hides itself until the spawned form closes. It works great unless I choose to close the application while the spawned form is still up.
The following is some example code.
Dim ChildForm as New frmTaskWindow With { .MDIParent = Me, .AddingNew = True } ChildForm.Show Me.Hide()
[Code].....
Me.Show() ' error occurs here because my form is already closed by the system. Is there a way to get around this without just an error catcher?
I've finally got a project compiled and tested and ready to roll out.I have discovered that the "Publish" option is not what it seems, and that we must create a separate "Setup Project" to carry out the task of installing the files.This is not the most intuitive process I've seen, and the online help on that subject is not easy to understand.I was hoping that someone could direct me to a tutorial or guide that would step me through the specific approach I need. Many of the other guides online are vague and address multiple scenarios and do not separate the approaches very well.I have the contents of my project in /bin/release. It runs nicely by iteself with no errors.Here's what I need:
1. To create a setup exe that I can distribute that will install my software, with all of the supporting (resource) files and folders. 2. I need the setup process to force the installer to "agree" to a EULA. 3. I'd would like to provide an image on the installation screen/popup. 4. I would like the software registered in the registry and rely on it being there in the registry. 5. I need it to default to program filesprojectname (it does by default)
I new to this Forum and relatively new to VB programming. I have read some really good posts here and thought I would ask about a perplexing problem I'm having. I createdindows Form application, built it and deployed it with no problems. However, when I added a small block of code, re-built the app and went to add the app to the Project Output Group in the file system editor the project was not in the Project drop down list. I closed the Setup project and deleted it from the project folder and checked my code and re-built the app and tried the Set Up project again with the same result
Ok, imagine the simplest solution in Visual Studio 2008 with framework 3.5 (OS = Win XP) where I have added a class library. Then I've added a COM Class. This COM Class is so simple, it only exposes 1 function:
Public Function SayHello() As String Return " Hello." End Function
I have been told to add a button to a desktop app that when clicked, opend a word document that has been given to me. I am using the following line of code to open the file:
Process.Start(Application.StartupPath + "\Registry User Guide.doc")
How do I add this document to my setup project so when a user installs the MSI it will put the word doc into the application.startuppath?
I'm working in a small project i want to know how to make setup file for my project ,to run the project in another computers i try to make setup file from ,, add new project/setup and i added (Source Files and Primy output) to the setup files ,but it is not working in the another pcs can any one tell me how to make correct setup file to work in another pcs
I am using vs 2003 to build a setup project but got this error message"Could not find file ..., Not enough storage is available to complete this operation."I checked the path of the file, it is correct. After I remove this file from the setup project, I can build it successfully and the result msi file is about 250MB, the file I removed is about 260MB, is there any limitation about the size of the file in setup project or the total size of msi file? If so, how can I build the setup project?
im making a setup project with my windows application. i have pack it but the problem is my database. how do i set there new targets once i added the mdb file. i know thats the problem but i really dont know how to reconfigure
another thing, when its already pack and when i try to run the msi, the interface has an error on the picture above. and whats the bootstraper for? why is it that clicking the bootstraper is an error.
also if my target machine doesnt have vb.net and ms access, would my project be still running in there? this is my first time in making setup projects.. im using vb.net 2k3.
My windows app works fine in my pc. Once I created a setup project and then install in a client pc, there is an error to load Crystal Report.How to add Crystal Report in setup project? (I added all dll file associated with Crystal Report but did not work)
I added a setup project to a winform vb.net app which otherwise builds fine. Once the setup project is added to the solution, however, the build fails with the following error;Unrecoverable build error.As there does not seem to be much information I can't figure what the problem is. What can I do from here to fix this to get deployment package?
I have a setup project which is full of VB Libraries / apps...when I try to build it in the debug configuration it always errors out with this error[code]...
I'm making my first setup in visual studio 2008. But how can I change the language of the setup? I know i can chage some lines of text but I can't change the title and other stuff. Does anybody know how to change it?