/build/static/layout/Breadcrumb_cap_w.png

MSI wrapper question

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

Answers (3)

Posted by: venki_msi 17 years ago
Senior Yellow Belt
0
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..

thanks,

venki.
Posted by: gmorgan618 17 years ago
Blue Belt
0
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
Posted by: laszlo 17 years ago
Senior Yellow Belt
0
hi,

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)
end

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
wscript.Quit

good luck
martin
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