We have a custom add-on , and we intend to deploy the add-on with professional quality. However I have a issue with the uninstaller area.
Scenario 1;
Installer name = AddOnInstaller.exe
Uninstaller name = AddOnUnInstaller.exe
I have created a proper uninstaller and have created the ARD file with the uninstaller listed there. The proper parameters were given, However when registering the add-on ( with SAP) , SAP throws a message saying that uninstaller could not be found. However the uninstaller is present in the given path. I have checked the path in the ard file too. SAP however installs the add-on properly.
Also During the install SAP copies the Installer.exe to the local profile temp folder, and runs from there. Does this have something to do with SAP not finding the uninstaller?
Scenario2:
This time I tried creating the Install and Uninstall function within the same program. So I have one exe now called AddOnInstaller.exe
I have set the installer in the ard file to the AddOnInstaller.exe and given the proper parameters. And I have set the Uninstaller in the ard file to another parameter such as /u|uninstall;.
When registering the add-on within SAP, SAP now dose NOT give an error ( could not find uninstaller ). And also the add-on installs properly.
Within my AddOnInstaller.exe, I check the command line to see if the command line is for an Install, or an Uninstall.
However when the add-on is removed and deregistered, when I log back in to SAP, and when SAP runs the uninstaller, it passes Install parameters to the AddOnInstaller.exe. I have checked this with message boxes. Should it not pass Uninstall parameters as given in the ard file?
I need a fix for this or a workaround please. all help is appreciated.
regards,
Indika.
Message was edited by: changed the header title
Indika Dekumpitiya