/build/static/layout/Breadcrumb_cap_w.png

Check Status of Package Installation

Hi,

I am using Wise Package Studio 8. I have specific requirement of creating registry keys only if the product is installed/uninstalled successfully. I had created a wise script to create the registry keys, and I know i have to use custom action to do the required. But i don't know how to check the status of package installation and where should i insert the custom action.

Hope somebody could help me out.

Regards
Rahul

0 Comments   [ + ] Show comments

Answers (7)

Posted by: murali.bhat 12 years ago
Purple Belt
0
If you keep the registry keys in the registry table, it gets installed onto the system during installation. If you are specific using Custom action only, then you can create a .reg file and call it in the commandline CA "Install from Destination". Use condtions "NOT Installed" (runs during installation) or "REMOVE" (runs during uninstallation)
Posted by: itsrahulsingh 12 years ago
Senior Yellow Belt
0
Thanks for your reply..

I know the process that you have stated but i want to know if this can be done only when the package installation is successful.
Posted by: Teitan 12 years ago
Senior Purple Belt
0
Place your deferred custom action right before the Install Finalze action in the Install Execute Sequence.

If the installation of your MSI is not successful at some point, the MSI will do a rollback action and your reg keys are not installed.
The reg keys will only be installed if all actions which are executed before your custom action are successful.

Perhaps it's possible to schedule actions to "on error" but a short search on google didn't bring me any infos about that. Somebody knows anything about that?
Posted by: anonymous_9363 12 years ago
Red Belt
0
Is it me? Is it?

Why complicate things? Just add the registry data in your package. If it's present, the package is installed, if it's not, then it's been uninstalled.
Posted by: itsrahulsingh 12 years ago
Senior Yellow Belt
0
thanks all of you ...

i have got enough ideas to do the required.
Posted by: Teitan 12 years ago
Senior Purple Belt
0
But if I understand him correctly, he wants the reg keys always installed except when the package installation fails.
Posted by: jmcfadyen 12 years ago
5th Degree Black Belt
0
as vbscab said if the package fails it rolls back and as such registry is not installed.
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