/build/static/layout/Breadcrumb_cap_w.png

Run/Reinstall Another MSI

I have an MSI that, when deployed, installs its own little Java Runtime Environment. Problem is that this caused the JRE that we deploy on our base build to stop working properly. Is there any way to force the currently installed JRE to re-install itself after this MSI has installed? If not, is there a way to run another MSI to install a newer JRE at the end of the first MSI?

0 Comments   [ + ] Show comments

Answers (10)

Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
Have you looked into trying to remove problem at source (ie removing the Java from this MSI?) It may be installed in a separate component, which can be isolated and removed, or maybe it's being installed via a custom action?
Posted by: udit1002 18 years ago
Yellow Belt
0
Hi
I am new to Installshield and i need to create a major upgrade(Uninstall existing one and install new version) for a module using silent installation in MSI. I tried it once but it didnot uninstall the older version. Can someone plz post the way to create a silent installation?
Regards
Udit
Posted by: dgdavis 18 years ago
Orange Belt
0
udit1002, please post this in a separate thread.
Posted by: dgdavis 18 years ago
Orange Belt
0
meastaugh1, I have had a look at removing it from the package but don't think it's going to be possible - this is a repackage of a legacy app and it won't be that straightforward. I know the re-install of the JRE will fix it if I can get it to work.
Posted by: meastaugh1 18 years ago
Senior Purple Belt
0
I haven't had to do it, but it looks like you just need to specify a custom action that will launch your second MSI at the end of the sequence table: [url]http://helpnet.installshield.com/robo/projects/helplibdevstudio9/IHelpNestedInstallations.htm[/url]
Posted by: dgdavis 18 years ago
Orange Belt
0
I can successfully get the MSI to try and run when I nest it, but it doesn't run with the same permissions as the MSI it is nested in so fails. Is there any way to ensure it runs elevated just like the MSI being installed?
Posted by: MSIMaker 18 years ago
2nd Degree Black Belt
0
ORIGINAL: dgdavis

I can successfully get the MSI to try and run when I nest it, but it doesn't run with the same permissions as the MSI it is nested in so fails. Is there any way to ensure it runs elevated just like the MSI being installed?


Unless you strip out the JRE part of the install you are setting yourself up for problems imho.

One other way is to get your isntall to remove a keypath of the original JRE and then call the Java console to run....that will prompt a self repair. Messy and ugly actually but it will work.
Posted by: dgdavis 18 years ago
Orange Belt
0
I've tried removing the JRE in the application, but this just stops it working altogether. Even if I change the shortcuts to start using javaw instead of jvmstartw I get funny errors about 'unable to create Java Virtual Machine'.

The problem with the keypath thing is that the JRE is a machine-assigned app through Group Policy, not to the user, hence autorepair doesn't kick in.
Posted by: MSIMaker 18 years ago
2nd Degree Black Belt
0
ORIGINAL: dgdavis

I've tried removing the JRE in the application, but this just stops it working altogether. Even if I change the shortcuts to start using javaw instead of jvmstartw I get funny errors about 'unable to create Java Virtual Machine'.

The problem with the keypath thing is that the JRE is a machine-assigned app through Group Policy, not to the user, hence autorepair doesn't kick in.


Yep that is going to be a problem. Workstation assigned apps have this issue with self repair.

Ok one step at a time.

1. What Java is in the build? MS JVM I assume?
2. Have you tried to capture the app on a clean build that has no JVM installed at all?
3. Have you tried to capture the app on a clean build with MS JVM installed?
4. Look for keys in HKLM\System\CurrentControlSet\Control\Session Manager\Environment that start with JRE_. Perhaps JRE_BIN= or JRE_PATH=

You really need to capture this thing as raw as you can to find out how clever the installation is regarding existing Java. One way is to remove MS JVM and capture it.

Let us know how you go.
Posted by: MSIMaker 18 years ago
2nd Degree Black Belt
0
I might add that you should be able to install and run multiple versions of Java side by side. I have done it and it works perfectly. Something in your install/capture might be conflicting though.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ