I am trying to create a MSI wrapper to execute SAP 4.6D gui. I have created the SAP package using SAPadmin as per everyone's recommendation. Now I need to deploy this using Group Policy therefore, I need to wrap this inside an MSI.

This is what I did in WPS and I don't know why it's not working.

1) I have created a Custom action with "Execute program from installation" under "InstallFinalize" at "Execute Immediate"

2) For the detail of Execute immediate,

Executable file = z:\applications\sap 46 d\gui\windows\win32\netinst\sapsetup.exe
Command Line Arguments = /p:"sap 46 d" /install /silent

3) Then I created an dummy INI file so that Windows installer will run the program.

After I compile and run, I get an error message "Error 1722 There is a problem with this Wiindows Installer Package"

This is my first time creating the MSI wrapper and I don't know what I need to do. Please Help.

*When I run the executable path from the command prompt the installation runs fine.

Thank you so much in advance.
0 Comments   [ + ] Show 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.


it might me becuse of below reason

1) running the sapsetup.exe from long path location
2) from network location.
3) could'nt able to find the sapsetup.exe

whether sapsetup.exe calls indirectly any MSI files? if MSI in this case change CA type to asynchronous no wait.

u can also do wrapper by adding the whole setpup folder in to the script say install to c:\sap.. and use vb script to run the setup.exe or excute program from installed files location..


Answered 07/06/2006 by: venki_msi
Senior Yellow Belt

Please log in to comment
FYI - Incase you didn't know this was an option....

Check %USERPROFILE%\Local Settings\Temp while you are running an installation. If the file has an embedded MSI it will extract it there and you can pull it out. Usually it will create a random_alphanumeric_name.msi and a directory - if it does in fact create a directory I would recommend grabbing the whole thing - It will be deleted when the installation is ended.

Also try moving your CA in between Installinitalize and Install_Finalize ... and/or have it ignore error(return) codes.

Just somet things to try.

Good Luck
Answered 07/06/2006 by: gmorgan618
Blue Belt

Please log in to comment

since your msi is just a wrapper for your installtation you can put something like this
under execute deferred above installFinalize:

if versionnt>=500 then
call vbscript from embedded code (SAP_Inst)

and in the details section of this script:

set oShell=Wscript.CreateObject("WScript.Shell")

oShell.run ("""z:\applications\sap 46 d\gui\windows\win32\netinst\sapsetup.exe """ & "/ install" & " /nodialog" & " /silent"
& " /SMS" & " /P:" & """sap 46 d"""), 7,True
'thats one row, be careful with the spaces. the switch /sms doesn't bother, if you use GPO you should change
'Z:\ to an UNC Path because not every User might have Z:\ mapped

Wscript.Sleep 10000

'You might want to copy your saplogon.ini
oShell.run "%systemRoot%\system32\xcopy.exe " & "/y /r " & """.\SAPLOGON.ini""" & " " & """%SystemRoot%""", 7,True

good luck
Answered 07/07/2006 by: laszlo
Senior Yellow Belt

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