Action runs on VIRTUAL but not on real??? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

EricNguyen
Posts: 21
Joined: Sat Feb 17, 2007 1:58 am

Action runs on VIRTUAL but not on real???

I have a very weird problem that I can not explain and really need help....

I created a custom action to uninstall 2 MSI files (prerequisite) when our application is removed. The action (batch file - has 2 msiexec /x commands) was put under InstallFinalize as Async execution, do not wait for return code and Immediate execution and condition = (REMOVE="ALL"). Batch file was copied to [APPDIR] folder when program installed. Solution come from this: http://www.advancedinstaller.com/forums ... php?t=2133

Uninstall batch file was called and executed successfully in the virtual machine (test bed) but when I bring the code to a real PC, the batch file was never been called... I do not see any popup nor any cmd windows. It looks like the action does not exist... :?:

Any body has any ideas about what could be happening?

Thanks,
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I don't recommend this (to remove prerequisites). Why you want to do this?

However you can generate a log file during installation (on the real PC) and send it to support at advancedinstaler dot com.

To obtain the log file run the package with the following command line:
msiexec /i package.msi /l*v package.log

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
EricNguyen
Posts: 21
Joined: Sat Feb 17, 2007 1:58 am

Before install our program, we may have to install some specific programs as prerequisite so I want to remove these programs when user uninstall our main program. It's not something that other programs can use...
I turn on the log and see that action was called but look like the batch file was called AFTER it was removed??? Is it correct that program files & folders were removed before Install Finalize actions?

It will work if instead of calling a batch file I execute MSIEXEC /X directly but the problem is: I have 2 MSI need to be uninstalled. If I add 2 "Launch file" action as "Asynchronous execution, do not wait for return", 1 will fail. How do I fix this?

Thanks,
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Yes, the files are removed before "InstallFinalize" so you need to add the batch file as "Attached Custom Action" instead of "Installed Custom Action".

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”