cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can anyone help me with a custom action

I have to deploy acrobat reader 6 via group policy in active directory but I also have to uninstall 2 previous versions at the same time. I've located the uninstall string for both versions in the registry but I have no idea how to go about creating the custom action to call the uninstall. You can also email directly at vodkaandsoda@hotmail.com if you'd like. any help is appreciated.

thanks

Joe
(2) Replies
[FONT=Garamond][SIZE=3]Hi, Joe,

I have to uninstall a third-party app when I uninstall my own app, and I created a custom action that calls an InstallScript function. I use LaunchAppAndWait because the third-party setup is an older version than my setup. The function looks something this:

[FONT=Courier New][SIZE=2]
function Uninstall(hMSI)
STRING szUninstall;

begin
szUninstall = PROGRAMFILES ^ "InstallShield Installation Information\\{35754E51-3A69-43B8-B70F-7D77F2CC2950}\\Setup.exe";
if (Is (FILE_EXISTS, szUninstall) = TRUE) then
if (LaunchAppAndWait (szUninstall, " -l0009 uninstall", WAIT) < 0) then
MessageBox(@UNINSTALL_UNSUCCESSFUL, INFORMATION);

endif;

endif;

end;
[/SIZE][/FONT]
Hope this helps!
[/SIZE][/FONT]
thanks for your help!