/build/static/layout/Breadcrumb_cap_w.png

Adding vcredist exe to main installation

I want to run the vcredist exe before my MSI installation begins. but it seems that 2 MSI's cant be run together. Can someone suggest how to make the another MSI wait before vcredist is installed. What custom action to use and where to place it so that it runs at the begining.

0 Comments   [ + ] Show comments

Answers (16)

Posted by: WayneB 14 years ago
Blue Belt
0
Hi Desert_Rose,

Just sequence the install of the vcredist using your deployment tool before your main app deploy.
On XP this is the best scenario, as it gives you autonomy of each application installation without dependency structures being implemented.
Not sure of the latest o/s environments with later versions of the msiexec i.e Vista and 7 (I should know, when time permits)

Ciao
Wayne
Posted by: mekaywe 14 years ago
Brown Belt
0
You can create a EXE which will Install vcredist first and then your App.
Posted by: desert_rose 14 years ago
Orange Belt
0
i tried doing that but vcredist in turn calls the vcredist msi and i get a error that 2 msi cant be run together.
Posted by: PackageExpert 14 years ago
Blue Belt
0
What tool are you Using? I'm not sure about Wise...hasn't mingled with it for ages....but InstallShield has the ability to wrap your installer into a Setup.exe and these can be run silently. Just include the 1st MSI to be run under pre-requisites.

Otherwise...Would it be not possible to handle 2 MSI installation via batch file? Your batch content like this

start /wait Msiexec /i %~dp0FirstMSI.msi /qb
start /wait Msiexec /i %~dp0SecondMSI.msi /qb

And your source dir to contain the 2 MSI + the batch file...running the batch file would install both...

I know this is basic...but just in case you're not aware....
Posted by: desert_rose 14 years ago
Orange Belt
0
I am using Wise and i can create a wrapper EXE but it also creates some other files while creating exe. these files are used by this wrapper exe.. I was looking if there can be just one exe or MSI
Posted by: PackageExpert 14 years ago
Blue Belt
0
ah...is there any issues if there are other files than the EXE in the project source? I think its normal.... Nevertheless you can use Nested Installation which only needs one MSI but this is highly not recommended.
Posted by: desert_rose 14 years ago
Orange Belt
0
i was trying nesting the MSI but it isnt working :(
Posted by: PackageExpert 14 years ago
Blue Belt
0
Don't use Nested Installs....you'd better have a dirty project folder than a problematic installer....
Posted by: pjgeutjens 14 years ago
Red Belt
0
you might want to try just getting the MSI from the VCRedist package and running that in a command line, instead of the setup.exe.
It's possible the setup.exe returns right after triggering the MSI, which would cause the installation of your 2nd MSI to start too early.

In any case, make sure you specify a WAIT clause in your script/exe, whichever way you do it (WScript has been ages for me, but I'm pretty sure you can specify a wait for exit when triggering a command)

PJ
Posted by: desert_rose 14 years ago
Orange Belt
0
if i extract the MSI, there is a problem. there is a additional cab file as well so adding the MSI doesnt work
Posted by: pjgeutjens 14 years ago
Red Belt
0
if i extract the MSI, there is a problem. there is a additional cab file as well so adding the MSI doesnt work
I could ofcourse be mistaken but the CAB should be extracted along with the MSI. Which version of the VCRedist are we talking about exactly?
Posted by: desert_rose 14 years ago
Orange Belt
0
Cab problem will only come while adding the MSI. its VS 2005 SP1 version of vcredist
Posted by: pjgeutjens 14 years ago
Red Belt
0
its VS 2005 SP1 version of vcredist

OK, I'm going to assume then that you have a file called vcredist_x86.exe or so.
If you do, this is actually a self extracting archive, so if you have WinZip or WinRAR or the likes installed, right click the .exe and choose "extract files".

this should result in a bunch of files being extracted where you specify. 2 of these are vcredist.msi and vcredist.cab

Copy these files to your installer location and start the msi with an msiexec command line

That should do it...
Posted by: mekaywe 14 years ago
Brown Belt
0
Vcredist will Install with .MSI and .cab files, so include these files inside a WiseEXE and excute its installation.
Once vcredist installation completes you can proceed with Main App installation.
Posted by: desert_rose 14 years ago
Orange Belt
0
can u add some more details on how to achieve that
Posted by: mekaywe 14 years ago
Brown Belt
0
Copy the following code into a TXT file and rename the file to .WSE extension.
You can make appropriate changes to work as per your requirement

Document Type: WSE
item: Global
Version=9.02
Flags=00000100
Split=1420
Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Copy Default=1
Japanese Font Name=MS Gothic
Japanese Font Size=9
Start Gradient=0 0 255
End Gradient=0 0 0
Windows Flags=00000100000000010010110000001000
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000000001
Patch Threshold=85
Patch Memory=4000
MIF PDF Version=1.0
MIF SMS Version=2.0
FTP Cluster Size=20
Per-User Version ID=1
Dialogs Version=9
Crystal Format=10111100101100000010001001001001
Crystal Destination=00000000000000000000000000001011
WamDB Index=C:\Wise Share Point\
end
item: Check Disk Space
end
item: Remark
Text=To Install VCREDIST
end
item: Remark
end
item: Set Variable
Variable=VCREDIST
Value=%INST%\vcredist.msi
end
item: Execute Program
Pathname="%VCREDIST%"
Command Line=/qb
Flags=00000010
end
item: Remark
end
item: Remark
Text=This will Install Main application from its relative path, You need to keep this EXE where the Main MSI and VCREDIST files Exist
end
item: Remark
end
item: Set Variable
Variable=MAINAPP
Value=%INST%\mainapp.msi
end
item: Execute Program
Pathname="%MAINAPP%"
Command Line=/qb
Flags=00000010
end
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