/build/static/layout/Breadcrumb_cap_w.png

Launch Window Installer as part of MSI

Dear All

I have an MSI which is checking for Window Install minimum 3.0 and if it does not exists on the system then Installs it.

Problem : I have the exe as part of MSI but each time when I run MSI it runs the Windows Install 3.0 installer, but I only wants to run it if it is required to be.

Thanks in Advance

0 Comments   [ + ] Show comments

Answers (9)

Posted by: anonymous_9363 13 years ago
Red Belt
0
As ever, MSDN reveals all.
Posted by: timmsie 13 years ago
Fourth Degree Brown Belt
0
As your a wise user this should be fairly simple. Did you use the Prerequisites page from Installation expert?
Posted by: Ash786 13 years ago
Senior Yellow Belt
0
Sorry lads I am not too expert in package installer. I was asked to do few small jobs while we are looking for someone with the experience. I have done the following

1) Set the System Requirement Windows Installer Runtime Version = Runtime version 2.0 or higher
2) Added Execute program from installation just after validate tag in Execute Immediate tab

Now if I run my MSI which has the Windows Installer Runtime 3.0 the MSI still launches "Execute program from installation" . I want to add a condition which should do the following but I am not sure how to do this

Check if Windows Installer Runtime => 2.0 Then
Do Nothing
Else
"Execute program from installation"

I hope I am making sense here :)
Posted by: rakesh.kumar 13 years ago
Senior Yellow Belt
0
You can use [VersionMsi] Property, which returns Version of the Windows Installer
Posted by: thugz888 13 years ago
Senior Yellow Belt
0
Hi Ash

If you are going to use the [VersionMsi] you can clear out the first step that you have done because as you said your application will install the desired Windows Installer if it does not exist. Then use this property for IF/ELSE STATEMENT.
Posted by: mazessj 13 years ago
Blue Belt
0
Adding to timmsie's suggestion...

You should avoid embedding an installer within an installer, especially a Windows Installer engine update. The Windows Installer update could cause the Windows Installer engine to become unavailable until you reboot. Also, the Windows Installer update can't replace the files in the current session if they're in use.

If you enable the .EXE option in Build Options, you can use the Prerequisites page in Installation Expert to specify which runtime installer(s) to include with your package.
Posted by: Ash786 13 years ago
Senior Yellow Belt
0
Hi

I've tried to use the VersionMsi but this is not found and is not in the property. under MSI Script > User Interface I added an If Statement with Condition
If VersionMsi <=2
Execute Program From Installation WindowInstaller.exe
End

This does not work.
Posted by: Ash786 13 years ago
Senior Yellow Belt
0
any further help in this
Posted by: timmsie 13 years ago
Fourth Degree Brown Belt
0
post #3 and #7
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