Hi all,

I am just starting out packaging and am still learning a lot. I will give you a run down on what I have done with this package so far

Packaging Program: Wise for Windows Installed 4.12
Program: SAP 6.40
Environment: Windows XP Desktops + Windows 2003 server + Group Policy

So far what i have done is

- Created a custom SAP installation using SAPAdmin.exe
- I then added the appropriate files to the package
- Went to MSI Script - Execute Deferred and added the following under PatchFiles

if NOT INSTALLED then
Execute Program from Destination CMD /C sapsetup.exe /p:"SAP GUI 6.40" /install /noDiag /silent Default Directory SETUP\APP\SAP_GUI_6.40\setup (SAP Install)
End

Now I have tested via group policy that the application deploys no problems at all as I am assigning it to the workstation.

However I have ticked the box to uninstall the application if it falls out of the scope so should I want to deploy a new version or just remove it from the systems all I need to do is remove the workstations from the Group associated to the GPO.

When I do remove the computer and reboot it says uninstalling SAP and then lets me login. However when I check the event viewer I find the following errors.

-------------------------------------------------------------------------------------------------------------------------------------------
Product: SAP GUI 6.40 -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: SAP Install, location: C:\SETUP\APP\SAP_GUI_6.40\setup\, command: CMD /C sapsetup.exe /p:"SAP GUI 6.40" /install /noDiag /silent

&

Product: SAP GUI 6.40 -- Removal failed.

&

The removal of application SAP GUI 6.40 from policy *OUR POLICY*, Computer Based failed. The error was : Fatal error during installation.
--------------------------------------------------------------------------------------------------------------------------------------------

Looking at that error it seems like it is trying to install the program not uninstall it ??? i have done up a script to uninstall the program and remove all files but i can't work out where to put it in the MSI. I currently have it under Execute Deferred - Remove files During Uninstall

Execute Program from Destination CMD /C sapsetup.exe /p:"SAP GUI 6.40 /uninstall /noDiag /silent Default Directory SETUP\APP\SAP_GUI_6.40\setup (SAP Uninstall)
Execute Program from Destination CMD /C RD SAP_GUI_6.40 /S /Q Default Directory SETUP\APP\ (Remove Installed Files)

If anyone has any ideas on how to get the uninstall working i would appreciate it.

Cheers Leech_
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
Hi leech,
please open your package in Wise Windows Installer Editor and go to 'Tables'. Select the 'InstallExecuteSequence' Table and search the 'SAP Install' action. Check the condition on this row, it should be at least 'NOT Installed'.
Be aware that 'Installed' refers to a property and they are all case sensitive.
Hope this leads you in the right direction.
Regards, Nick
Answered 10/10/2006 by: nheim
Tenth Degree Black Belt

Please log in to comment
0
nheim,

Appreciate the reply. I have checked the tables and the InstallExecuteSequence is set to

Action: SAP Install
Condition: NOT installed
Seqence: 3536

further down i have

Action: SAP Uninstall
Condition: REMOVE~="ALL"
Sequence: 4295

I also put a Async, wait at end of sequence. to stop the removal of files occuring before the uninstall of SAP has taken place.

Action: Remove Installed Files
Condition: REMOVE~="ALL"
Sequence: 5397

- SAP Uninstall is meant to uninstall SAP
- Remove Installed Files is meant to remove the source files originally copied to the hard drive

What i am finding through watching the directories is that it starts wiping the source files and then when it finishes that it errors out with a 1721.

why the hell is it trying to re-install the application when i have asked it to uninstall. It's like it just disregards the uninstall and then tried to re-install the application...

Product: SAP GUI 6.40 -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: SAP Install, location: C:\SETUP\APP\SAP_GUI_6.40\setup\, command: CMD /C sapsetup.exe /p:"SAP GUI 6.40" /install /noDiag /silent

Thanks again Leech_
Answered 10/10/2006 by: leech_
Yellow Belt

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