I need to create single combined package for 3 applications like (SQL Server/java/tomcat ) , i wish to create a stand-alone EXE that calls out to MSIExec.EXE for each one? .

Iam using wise package studio Please help me out, how can i make .EXE as for requirement.

Thanks,
sourav.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You will be using Wise Script editor for this. Create a new text file called Install3.wse. Open with notepad and save with this information in there. Basically just install the MSI's to a location on the system, then kick them off one at a time.

Document Type: WSE
item: Global
Version=9.02
Flags=00000100
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=00000100000000000010110000001010
Message Font=MS Sans Serif
Font Size=8
Pages Modified=00001000011000000000000000000000
Extra Pages=00000000000000000000000000010000
Disk Label=Default
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=7
Crystal Format=10111100101100000010001001001001
Variable Name1=_INIT_WINDOW_
Variable Default1=HIDE
Variable Flags1=00001000
Variable Name2=_SYS_
Variable Default2=C:\WINDOWS\system32
Variable Flags2=00001000
Variable Name3=_WIN_
Variable Default3=C:\WINDOWS
Variable Flags3=00001000
Variable Name4=_WISE_
Variable Default4=C:\PROGRA~1\Altiris\WISEPA~1\WISESC~1
Variable Flags4=00001000
end
item: Remark
end
item: Remark
end
item: Remark
Text=SET A VARIABLE THAT SHOWS WHERE TO PUT THE FILES.
end
item: Set Variable
Variable=MYMSIFOLDER
Value=C:\MSI
end
item: Remark
end
item: Remark
Text=INSTALL THE FILES TO THE LOCAL MACHINE
end
item: Install File
Source=C:\SQL.MSI
Destination=%MYMSIFOLDER%\SQL.MSI
Flags=0000000010000010
end
item: Install File
Source=C:\JAVA.MSI
Destination=%MYMSIFOLDER%\JAVA.MSI
Flags=0000000010000010
end
item: Install File
Source=C:\TOMCAT.MSI
Destination=%MYMSIFOLDER%\TOMCAT.MSI
Flags=0000000010000010
end
item: Remark
end
item: Remark
Text=NOW JUST KICK THEM OFF ONE AT A TIME
end
item: Execute Program
Pathname=msiexec.exe
Command Line=/i %MYMSIFOLDER%\SQL.MSI /qn
Flags=00000010
end
item: Execute Program
Pathname=msiexec.exe
Command Line=/i %MYMSIFOLDER%\JAVA.MSI /qn
Flags=00000010
end
item: Execute Program
Pathname=msiexec.exe
Command Line=/i %MYMSIFOLDER%\TOMCAT.MSI /qn
Flags=00000010
end
item: Remark
end
item: Remark
Text=THAT'S IT.
end
Answered 01/30/2008 by: yarborg
Blue Belt

Please log in to comment
0
Yarborg First Thanks for your reply. It is working well, Appreciate it :)

actually i need to combine 3 applications those are in .EXE format, it is best to have .MSI's, but my requirement is not supposed.

So i would like to create combined installtion from .EXE's.

Note : Is there any difference between wrapping .EXE's ans wrapping .MSI's.

Please help me further with your valuable guidence.

Thanks in advance,
Best regards,
Sourav.
Answered 02/04/2008 by: sourav
Orange Senior Belt

Please log in to comment
0
ORIGINAL: sourav
Note : Is there any difference between wrapping .EXE's ans wrapping .MSI's.
No, other than the difference in command lines. Are you sure the EXEs don't extract MSIs when run?
Answered 02/05/2008 by: VBScab
Red Belt

Please log in to comment
0
ORIGINAL: VBScab
No, other than the difference in command lines. Are you sure the EXEs don't extract MSIs when run?


Yes VBScab.
All .EXE's are not having any .MSI's inside, i checked in %temp% folder when running .EXE's.
So can I create a package (combined.wse and compile it to .EXE) to install all the specified .EXE's in a chained manner.

Best Regards,
Sourav.
Answered 02/06/2008 by: sourav
Orange Senior Belt

Please log in to comment
0
All .EXE's are not having any .MSI's inside, i checked in %temp% folder when running .EXE's.
this is not always the case. you might have a setup.exe that also contains an msi as well. this msi will not be extracted to the temp folder

your best bet is check the uninstall string in the registry
Answered 07/31/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
As well as Yarborg's wisescript, I would add to this a little more to include some error checking and a log file.

If you were to deploy this suite of applications using something like SMS/SCCM (any of the big deployment tools) you would not get any decent reporting back if you're MSI's failed at some point.

Here is the code for a Wisescript that will report some of the more common MSI error codes as well as write to a log file for troubleshooting purposes (if the situation ever arose). It's quite old and I haven't used it for a while, but it should do the job. Just change the entries like NAMEOFAPPLICATION, NAMEOFMSIFILE.MSI, NALEOFLOGFILE, NAMEOFAPPLICATIONSUITE. It was originally used for an uninstall script, so you coould probably remove he 1605 error if you'd like.




item: Set Variable
Variable=STATUS
end
item: Set Variable
Variable=REBOOT
end
item: Set Variable
Variable=PROCEXITCODE
end
item: Set Variable
Variable=LOGFILE
Value=%TEMP%\NAMEOFLOGFILE.log
end
item: Set Variable
Variable=ALLUSERS
Value=C:\documents and settings\all users\
end
item: Remark
end
item: Delete File
Pathname=%LOGFILE%
end
item: Remark
end
item: Remark
end
item: Remark
end
item: Remark
end
item: Remark
end
item: Remark
Text=NAMEOFAPPLICATION is being installed
end
item: Set Variable
Variable=STATUS
Value=%CRLF%NAMEOFAPPLICATION ....
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=NAMEOFAPPLICATION.......
Line Number=0
Flags=00010000
end
item: Set Variable
Variable=PROCEXITCODE
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Name2=_WIDTH_
Variable Name3=_MSG_TITLE_
Variable Value3=
Variable Name4=HELPFILE
Variable Value4=\\Cocsoftware1\pkgtools\Wise\HELP\WiseScriptEditor.chm
Variable Name5=_OPTION_
Variable Value5=A
Variable Name6=_MSG_TEXT_
Variable Name7=_Y_POS_
Variable Name8=_HEIGHT_
Variable Name9=_X_POS_
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Name2=_WIDTH_
Variable Value2=400
Variable Name3=_MSG_TITLE_
Variable Value3=NAMEOFAPPLICATION Installation
Variable Name4=HELPFILE
Variable Value4=\\calfas1\DesktopAdmin\WISEPA~1\WISESC~1\Wise32.HLP
Variable Name5=_OPTION_
Variable Value5=B
Variable Name6=_MSG_TEXT_
Variable Value6=%STATUS%
Variable Name7=_Y_POS_
Variable Value7=100
Variable Name8=_HEIGHT_
Variable Value8=200
Variable Name9=_X_POS_
Variable Value9=100
end
item: Execute Program
Pathname=%SYS32%\msiexec.exe
Command Line=/i NAMEOFMSIFILE.MSI /qb- REBOOT=REALLYSUPPRESS
Flags=00000010
end
item: If/While Statement
Variable=PROCEXITCODE
Value=1641
end
item: Set Variable
Variable=STATUS
Value=Rebooting....
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=Rebooting.......
Line Number=0
Flags=00010000
end
item: Exit Installation
Flags=1641
end
item: Else Statement
end
item: If/While Statement
Variable=PROCEXITCODE
Value=1605
end
item: Set Variable
Variable=STATUS
Value=Not Installed
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=Not Installed
Line Number=0
Flags=00010000
end
item: Else Statement
end
item: If/While Statement
Variable=PROCEXITCODE
Value=3010
end
item: Set Variable
Variable=STATUS
Value=Install Complete - Reboot Required
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=Install Complete - Reboot Required
Line Number=0
Flags=00010000
end
item: Set Variable
Variable=REBOOT
Value=YES
Flags=00000001
end
item: Else Statement
end
item: If/While Statement
Variable=PROCEXITCODE
Value=0
end
item: Set Variable
Variable=STATUS
Value=Install Complete
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=Install Complete
Line Number=0
Flags=00010000
end
item: Else Statement
end
item: If/While Statement
Variable=PROCEXITCODE
Value=0
Flags=00000001
end
item: Set Variable
Variable=STATUS
Value=Install Failed - Error Code %PROCEXITCODE%
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=Installed Failed - Error Code %PROCEXITCODE%
Line Number=0
Flags=00010000
end
item: Else Statement
end
item: End Block
end
item: End Block
end
item: End Block
end
item: End Block
end
item: End Block
end
item: Remark
end
item: Remark
end
item: Remark
end
item: Remark
end
item: Set Variable
Variable=STATUS
Value=Complete
Flags=00000001
end
item: Insert Line into Text File
Pathname=%LOGFILE%
New Text=Complete
Line Number=0
Flags=00010000
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Name2=_WIDTH_
Variable Name3=_MSG_TITLE_
Variable Value3=
Variable Name4=HELPFILE
Variable Value4=\\Cocsoftware1\pkgtools\Wise\HELP\WiseScriptEditor.chm
Variable Name5=_OPTION_
Variable Value5=A
Variable Name6=_HEIGHT_
Variable Name7=_Y_POS_
Variable Name8=_MSG_TEXT_
Variable Name9=_X_POS_
end
item: Custom Script Item
Filename=Display Progress Message.wse
Variable Name1=_CENTER_
Variable Name2=_WIDTH_
Variable Value2=400
Variable Name3=_MSG_TITLE_
Variable Value3=NAMEOFAPPLICATIONSUITE
Variable Name4=HELPFILE
Variable Value4=\\calfas1\DesktopAdmin\WISEPA~1\WISESC~1\Wise32.HLP
Variable Name5=_OPTION_
Variable Value5=B
Variable Name6=_MSG_TEXT_
Variable Value6=%STATUS%
Variable Name7=_Y_POS_
Variable Value7=100
Variable Name8=_HEIGHT_
Variable Value8=200
Variable Name9=_X_POS_
Variable Value9=100
end
item: Remark
end
item: Remark
end
item: If/While Statement
Variable=REBOOT
Value=YES
end
item: Custom Script Item
Filename=Reboot System.wse
Variable Name1=HELPFILE
Variable Value1=\\Cocsoftware1\pkgtools\Wise\HELP\WiseScriptEditor.chm
Variable Name2=_REBOOT_TYPE_
Variable Value2=B
end
item: End Block
end
Answered 07/31/2009 by: michaelnowell
Second Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity