Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42650

VS 2010 [Resolved] Code takes a long time to launch from CD

$
0
0
I have an application that is called to execute from autorun when the CD is inserted. My application runs straight away, and it allows the user to launch other installers. This is all working very well, and I'm almost ready to release. I just have one issue that I can't stand. When one of the apps in particular is launched, it takes about 30 seconds for it to actually show any evidence on the screen that it has started. My first app tells the user that it's installing by disabling the button that started it, and putting up a message indicating that the process has started, but without any other action taking place for 30 seconds or so, I suspect that many customers will think something has gone wrong when it hasn't. The file that it is attempting to launch is a self extracting winrar file. I suspect that the OS is copying over the entire winrar file to a temp file on the hard drive before attempting to launch, because if I run the whole thing from the hard drive instead, it launches immediately. Is there a way I can get it to start launching from the CD instead by the way I code my process start. Here is my code... Thanks.
Code:


            Try
                    Dim p As New Process
                    Dim psi As New ProcessStartInfo(Application.StartupPath.ToString & "\Application.exe")
                    psi.UseShellExecute = False
                    psi.WindowStyle = ProcessWindowStyle.Normal
                    p.StartInfo = psi
                    p.Start()
                    p.WaitForExit()
                    rtn = p.ExitCode
                    p.Close()
                Catch ex As Exception
                    MessageBox.Show("Error running Application.exe.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
                End Try


Viewing all articles
Browse latest Browse all 42650

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>