Results 1 to 15 of 15

Thread: Well - Install 5 Exe's one after the other (please read)

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well - Install 5 Exe's one after the other (please read)

    I have created 5 installation files (msi) using Visual Studio Installer. I copy all to a CD and distribute. What would be the easiest way, upon completion of the first install, to lauch the second, then the third, and so on?

    I don't want the end user having to install 5 apps.

    Does this at all make sense?

    Distribution currently on CD (if that matters)
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    What are the diffrent apps...If they are something like Office, so the user don't have to install all of them...then you could make a splash screen and make some cool logos for the user to click so the installation can start.. then the user would have to install all of them, but it is a common thiing to do...

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    The 5 apps make up :

    1 Switchboard

    2 - 5 Task of the Application

    I want all 5 installed, and more may be developed in the future...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Why can't you put everything in the same installation file???

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    I suppose I could, but like the flexibility of having installs seperated (especially when providing updates to one facet of the application).
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Yes it might be easier for you...but I have to admitt that I have never seen an installer that has called an other one 5 times on a row...so I actually can't give you any better advises at the moment. Sorry.

  7. #7
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    Could you wrap up the other 4 programs as merge modules? Merge modules are kind of a pain in the but to create but it would be pretty clean.
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

  8. #8
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    I would modify Setup1.vbp to create custom installation process: next is triggered upon successfull completion of the previous or exits otherwise.
    McGenius

  9. #9
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    Originally posted by McGenius
    I would modify Setup1.vbp to create custom installation process: next is triggered upon successfull completion of the previous or exits otherwise.
    That's not a bad idea at all, except that he is using VSI, not P&D. It would be an interesting approach still. Since the P&D's setup.exe just reads the setup.lst file, you could modify it to cycle through all setup.lst files and just use one setup.exe program. Still I do like VSI because it installs MUCH faster than P&D and P&D has a few bugs when registering some dll's and tlb's (easy to overcome, but still a pain!)
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

  10. #10
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    Originally posted by Armbruster
    That's not a bad idea at all, except that he is using VSI, not P&D. It would be an interesting approach still. Since the P&D's setup.exe just reads the setup.lst file, you could modify it to cycle through all setup.lst files and just use one setup.exe program. Still I do like VSI because it installs MUCH faster than P&D and P&D has a few bugs when registering some dll's and tlb's (easy to overcome, but still a pain!)
    I personally preffer P&DW as it offers entire source which is simple enough to modify and I don't really care if it takes a few minutes more to install. At the moment "my" P&DW is re-written by good 60% of the original. As you mentined tons of bugs were fixed and many new features were added.
    McGenius

  11. #11
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    Originally posted by McGenius
    As you mentined tons of bugs were fixed and many new features were added.
    That sounds pretty cool!! Any chance you'll post your version?
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

  12. #12
    Frenzied Member McGenius's Avatar
    Join Date
    Jan 2003
    Posts
    1,199
    He, he .. I'll think about it. ;-)
    McGenius

  13. #13
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    I don't use VSI very often (I do not like the .msi files requiring Windows Installer to run), but you could make a "Super Setup File" (in Visual C++, if you do not want to pre-distribute MSVBVM60) that will Execute each and every one of your Windows Installer setups when run.


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  14. #14
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    Try the DOS Batch Command "START". On NT Systems (XP) the /W switch is /WAIT
    Code:
    @ECHO OFF
    START /WAIT C:\FAT32OS\NOTEPAD.EXE  
    ECHO NOTEPAD CLOSED AND LAUNCHING CALCULATOR
    START /WAIT C:\FAT32OS\SYSTEM32\CALC.EXE
    ECHO CALCULATOR CLOSED AND LAUNCHING SPIDER SOLITAIRE
    START /WAIT C:\FAT32OS\SYSTEM32\SPIDER.EXE
    ECHO SPIDER SOLITAIRE CLOSED
    Copy that as a batch file and watch the "Echoed" message when you close the applications one by one.

    HTH

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  15. #15
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    VB Implementation
    VB Code:
    1. Private Type STARTUPINFO
    2.     cb As Long
    3.     lpReserved As String
    4.     lpDesktop As String
    5.     lpTitle As String
    6.     dwX As Long
    7.     dwY As Long
    8.     dwXSize As Long
    9.     dwYSize As Long
    10.     dwXCountChars As Long
    11.     dwYCountChars As Long
    12.     dwFillAttribute As Long
    13.     dwFlags As Long
    14.     wShowWindow As Integer
    15.     cbReserved2 As Integer
    16.     lpReserved2 As Long
    17.     hStdInput As Long
    18.     hStdOutput As Long
    19.     hStdError As Long
    20. End Type
    21.  
    22. Private Type PROCESS_INFORMATION
    23.     hProcess As Long
    24.     hThread As Long
    25.     dwProcessID As Long
    26.     dwThreadID As Long
    27. End Type
    28.  
    29. Private Declare Function WaitForSingleObject Lib _
    30. "kernel32" (ByVal hHandle As Long, ByVal _
    31. dwMilliseconds As Long) As Long
    32. Private Declare Function CreateProcessA Lib "kernel32" _
    33. (ByVal lpApplicationName As String, ByVal lpCommandLine As String, _
    34. ByVal lpProcessAttributes As Long, ByVal lpThreadAttributes _
    35. As Long, ByVal bInheritHandles As Long, _
    36. ByVal dwCreationFlags As Long, ByVal lpEnvironment As Long, _
    37. ByVal lpCurrentDirectory As Long, lpStartupInfo As _
    38. STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
    39. Private Declare Function CloseHandle Lib "kernel32" _
    40. (ByVal hObject As Long) As Long
    41.  
    42. Private Const NORMAL_PRIORITY_CLASS = &H20&
    43. Private Const INFINITE = -1&
    44.  
    45. Private Sub ExecCmd(sCmdLine As String)
    46.     Dim lR As Long      'Return
    47.     Dim uProc As PROCESS_INFORMATION
    48.     Dim uStart As STARTUPINFO
    49.     uStart.cb = Len(uStart)
    50.     lR = CreateProcessA(sCmdLine, vbNullString, 0&, _
    51.     0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, uStart, uProc)
    52.     lR = WaitForSingleObject(uProc.hProcess, INFINITE)
    53.     lR = CloseHandle(uProc.hProcess)
    54. End Sub
    55.  
    56.  
    57. Private Sub Command1_Click()
    58. ExecCmd "C:\FAT32OS\NOTEPAD.EXE"
    59. DoEvents
    60. ExecCmd "C:\FAT32OS\SYSTEM32\CALC.EXE"
    61. DoEvents
    62. ExecCmd "C:\FAT32OS\SYSTEM32\SPIDER.EXE"
    63. DoEvents
    64. End Sub
    Of course, the above presupposes VB runtime files in the end-user's machine. The previous batch file compiled to a ".com" application will not require any runtime support

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width