Solved

Installshied extra

Posted on 2002-06-17
5
196 Views
Last Modified: 2013-11-14
hi All,
i created an installshield installation, at the end of the installation i want to run a new installation to inatall more files, i want it to run as a child process right before the main installation finished.

the user will go through the new install and then when it ends, he'll be able to close the miain one
i m using installshield 7.0 developer

thanks
shay
0
Comment
Question by:Shay050799
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 7084087
Call the new Setup through your extension DLL & take care of the message processing, so the 1st installer doesn't appear 'frozen':

DWORD ExecuteAndWaitForCompletion   (   LPSTR   pszCmd)
{
    STARTUPINFO         si;
    PROCESS_INFORMATION pi;

    BOOL                bRes;

    DWORD               dwCode  =   0;

    ZeroMemory  (   &si,    sizeof  (   STARTUPINFO));

    si.cb           =   sizeof  (   STARTUPINFO);
    si.dwFlags      =   STARTF_USESHOWWINDOW;
    si.wShowWindow  =   SW_SHOWNORMAL;

    bRes    =   CreateProcess   (   NULL,
                                    pszCmd,
                                    NULL,
                                    NULL,
                                    TRUE,
                                    NORMAL_PRIORITY_CLASS,
                                    NULL,
                                    NULL,
                                    &si,
                                    &pi
                                );

    while   (   WAIT_OBJECT_0   !=  MsgWaitForMultipleObjects   (   1,
                                                                    &pi.hProcess,
                                                                    FALSE,
                                                                    INFINITE,
                                                                    QS_ALLINPUT
                                                                )
            )
            {
                while   (   PeekMessage (   &msg,   NULL,   0,  0,  PM_REMOVE))
                        {
                            DispatchMessage     (   &msg);
                        }
            }

    GetExitCodeProcess  (   pi.hProcess,    &dwCode);

    CloseHandle (   pi.hProcess);
    CloseHandle (   pi.hThread);

    return  (   dwCode);
}


0
 
LVL 7

Accepted Solution

by:
peterchen092700 earned 40 total points
ID: 7084177
Why not using the LaunchAppAndWait() IS Script function?
0
 
LVL 86

Expert Comment

by:jkr
ID: 7084782
Hm, I knew there was something about getting older :o)
0
 
LVL 11

Expert Comment

by:griessh
ID: 7262366
Dear Shay

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "peterchen"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7332952
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Microsoft C++ code failing in executable that worked 9 108
ruby gem installation 2 53
Installshield for Embarcadero EX 10.1 Berlin 4 60
I could not set window to top 4 20
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question