Closed
Bug 167610
Opened 22 years ago
Closed 22 years ago
Plug gre installer into mfcembed installer
Categories
(Core Graveyard :: Installer: GRE, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jbetak, Assigned: jbetak)
References
Details
Attachments
(1 file, 1 obsolete file)
2.03 KB,
patch
|
curt
:
review+
leaf
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
mfcembed should be an MRE-based test application, we need to change the existing
mfcembed installer to include MRE installation/distribution
Updated•22 years ago
|
Component: Installer → Embedding: APIs
Assignee | ||
Comment 1•22 years ago
|
||
Seems like we could use RunApp to launch the GRE install, the only larger chunk
of work is getting the GRE install binary packaged into the mfcembed installer
distribution. I'll try to complete the work and post a patch later today.
Assignee | ||
Comment 2•22 years ago
|
||
preliminary config.ini changes
;RunAppX sections
[RunApp0]
Timing=pre launchapp
Wait=FALSE
Target=gre-win32-installer.exe
Parameters=-mmi -ma
Assignee | ||
Comment 3•22 years ago
|
||
Assignee | ||
Comment 4•22 years ago
|
||
Curt, your patches from bug 171010 helped a lot! The approach I took is fairly
simple and it seems to be working OK.
The only thing holding me off now is the fact that the packaged blob GRE blob
installer isn't able to unpack its config.ini. I've seen some quirks in the
behavior and tweaked things left and right, but don't have the clarity of mind
to clean this up now.
It's not an ns_temp directory clash. The embedded GRE installer gets its own
directory and unpacks all setup files - except config.ini. I half expect that
there might be some file lock messing me up. Sigh.
Comment 5•22 years ago
|
||
Actually, the parameter list must be quite a bit longer:
Parameters=-mmi -ma -ms -app mfcembed -app_path [SETUP PATH]\mfcembed.exe
Assignee | ||
Comment 6•22 years ago
|
||
OK, so flipping "Wait=FALSE" to "Wait=TRUE" did it.
It seems like with "Wait=FALSE" the MFCembed installer instance terminates upon
launching the GRE blob installer. The GRE installer doesn't find another
xpinstall instance and reuses the existing "ns_temp" directory.
Unfortunately the MFCembed clean-up process seems to be running concurrently to
the GRE uncompressor and gobbles up some of the GRE setup files which are on
its delete list (e.g. config.ini, install.ini, uninstall.ini ect.).
The moral of the story: when embedding xpinstalls we'll have to keep the parent
xpinstall around ("Wait=TRUE") or change the code checked in in bug 167606.
Assignee | ||
Updated•22 years ago
|
Attachment #102537 -
Attachment is obsolete: true
Comment 7•22 years ago
|
||
Comment on attachment 102621 [details] [diff] [review]
patch v2
I still need to look at the behavior with and without the -ms option, but this
patch is a good place to start testing from.
r= curt
Attachment #102621 -
Flags: review+
Assignee | ||
Comment 8•22 years ago
|
||
cc'ingf leaf for sr=
Comment 9•22 years ago
|
||
I did get a chance to took at the UI and it looks good the way it is.
Assignee | ||
Updated•22 years ago
|
Component: Embedding: APIs → Installer: GRE
Assignee | ||
Comment 10•22 years ago
|
||
*** Bug 168361 has been marked as a duplicate of this bug. ***
Summary: Plug mre installer into mfcembed installer → Plug gre installer into mfcembed installer
Comment 11•22 years ago
|
||
Comment on attachment 102621 [details] [diff] [review]
patch v2
sr=leaf, if dveditz is a driver these days, get a=dveditz before checking in.
Attachment #102621 -
Flags: superreview+
Comment 12•22 years ago
|
||
Well, we kind of overlooked the need to update the batch file which launches
MfcEmbed (runapp.bat) with the path to gre. Upon reflection and discussion,
however, I think we are going to update the AppPaths setting in the Windows
registry instead of modifying the batch. This will make any links to MfcEmbed
work, although I don't think we will then be able to launch MfcEmbed directly
from a DOS window. So, looks like we need to deal with three steps here:
1) The MfcEmbed install script needs to set the AppPath registry setting.
2) We need to provide an icon for MfcEmbed. On the desktop, I presumed?
3) Do we want to remove runapp.bat from the distribution completely?
Comment 13•22 years ago
|
||
"start" is your friend, it's aware of apppaths.
Assignee | ||
Comment 14•22 years ago
|
||
timeless, I was going to put the GRE app path under the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\mfcembed.exe and verified on Friday double-clicking on the mfcembed.exe
icon anywhere in the Windows GUI will work as desired.
mfcembed.exe cannot be launched from the command line though and I haven't found
any other way of dealing with that issue except messing with the PATH
environment variable.
Assignee | ||
Comment 15•22 years ago
|
||
Curt, would it be more logical to have the GRE installer add the AppPath
registry setting? It should know the app exe path and it also knows its own
location. This might resolve the sequence (install MFCembed *after* installing
GRE not prior to it) issue we touched upon on Friday.
Comment 16•22 years ago
|
||
Lets see if Sean will weigh in on this.
I guess the choices are 1) Install GRE first so the app can know the GRE path is
when it sets the AppPath variable or 2) have GRE set the AppPath variable. The
third possibility, have the app use the same logic GRE will use to predict where
GRE is going to be installed, seems inherently unsatisfactory. I'm a bit
uncomfortable with GRE making settings for the applications. Seems like other
applications might not want control over that variable. Hmmmm.....I guess we
could make this yet another command-line option to the GRE installer, huh?
Comment 17•22 years ago
|
||
jbetak: maybe i wasn't clear. if double clicking works, then using start will
too.
in a prompt type: start mfcembed.exe
it checks app paths in order to find things, just like explorer.
Assignee | ||
Comment 18•22 years ago
|
||
timeless- cool! That'll do :-)
Comment 19•22 years ago
|
||
Comment on attachment 102621 [details] [diff] [review]
patch v2
a=asa for checkin to 1.2 (on behalf of drivers).
Attachment #102621 -
Flags: approval+
Assignee | ||
Comment 20•22 years ago
|
||
checked in
Assignee | ||
Comment 21•22 years ago
|
||
marking fixed, the GRE app path issues moved to a new bug 176116
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 22•22 years ago
|
||
Verified - all specific bugs will now be filed as such.
Status: RESOLVED → VERIFIED
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•