Results 1 to 9 of 9

Thread: Inno Setup and MSDE

  1. #1

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Inno Setup and MSDE

    Hi

    I testing a deployment scenario where I need to install MSDE and when it finish run another aplication which creates the database and tables. Supposely the Inno Setup, in the run seccion would wait for MDSE to finish before running the database setup application. But... not. It starts the second application without MSD finish the installation.

    Any ideas?

    Thanks

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and MSDE

    It would be more helpful if you at least posted the RUN section of the script. What flags did you use NOWAIT?

  3. #3

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Re: Inno Setup and MSDE

    I use no flags. Here is the run code:

    Code:
    [Run]
    Filename: d:\software\msde2k_a\setup.exe; Flags: postinstall; WorkingDir: d:\software\msde2k_a; Description: Instalar DataBase SQL; StatusMsg: A Instalar Database SQL
    Filename: d:\development\visual basic\taxacao\nettax\sql test\project1.exe; Parameters: d:\development\visual basic\taxacao\nettax\sql test

  4. #4
    Lively Member
    Join Date
    Dec 2005
    Location
    Ontario, Canada
    Posts
    67

    Re: Inno Setup and MSDE

    Here is what I use:

    Code:
    [Files]
    Source: .\SQL2KSP4\*.*; DestDir: {tmp}\MSDE_2000; flags: recursesubdirs
    
    [Run]
    Filename: {tmp}\MSDE_2000\setup.exe; Flags: hidewizard; Parameters: "/qr"; WorkingDir: {tmp}
    I have the MSDE stored in the SQL2KSP4 folder and I compile it into an inno installer. When the installer is installed, it runs, the setup.exe of the msde and hides the main inno installer till the setup.exe is finished.

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and MSDE

    Quote Originally Posted by reisve
    I use no flags. Here is the run code:

    Code:
    [Run]
    Filename: d:\software\msde2k_a\setup.exe; Flags: postinstall; WorkingDir: d:\software\msde2k_a; Description: Instalar DataBase SQL; StatusMsg: A Instalar Database SQL
    Filename: d:\development\visual basic\taxacao\nettax\sql test\project1.exe; Parameters: d:\development\visual basic\taxacao\nettax\sql test
    No Flags??? What is this then?

    try:

    waituntilterminated

    If this flag is specified, it will wait until the process has completely terminated. Note that this is the default behavior (i.e. you don't need to specify this flag) unless you're using shellexec flag, in which case you do need to specify this flag if you want it to wait. Cannot be combined with nowait or waituntilidle.
    Last edited by randem; Jan 26th, 2007 at 01:13 PM.

  6. #6

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Re: Inno Setup and MSDE

    fenrisW0lf, isn't this the same as running msde from the original directory?

    randem, cool down. When I say no flags I mean I didn't check any relevant flags. I can read and uderstand manuals and help files.

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and MSDE

    My point was that this would be why one should post the info for what one says isn't what it actually is and it helps to know exactly what is being done.

    I have never had a problem with alowing one task to complete before allowing the next process to run. Perhaps MSDE spawns a seperate process itself.

  8. #8

    Thread Starter
    Lively Member reisve's Avatar
    Join Date
    Mar 2005
    Posts
    118

    Re: Inno Setup and MSDE

    That is exactely waht I thought. If you look at the setup directory under the MSDE2KA main directory you will see a bunch of .msi files. I was wondering if there is a process to in InnoSetup to check if the full installation is compleate. Maybe, checking if the service is running before procead to the next run entry in the script

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup and MSDE

    There is no way for Inno Setup to know that. Either you would have to use the CODE section to accomplish that. You can try to run the command prompt with the setup.exe command line as a parameter to see if that changes anything.

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