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)
Please log in to answer
Posted by:
WayneB
14 years ago
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
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
Posted by:
desert_rose
14 years ago
Posted by:
PackageExpert
14 years ago
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....
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
Posted by:
PackageExpert
14 years ago
Posted by:
PackageExpert
14 years ago
Posted by:
pjgeutjens
14 years ago
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
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
Posted by:
pjgeutjens
14 years ago
Posted by:
desert_rose
14 years ago
Posted by:
pjgeutjens
14 years ago
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
Posted by:
mekaywe
14 years ago
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
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.
so that the conversation will remain readable.