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

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
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)
Answered 08/24/2011 by: murali.bhat
Purple Belt

Please log in to comment
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.
Answered 08/24/2011 by: itsrahulsingh
Senior Yellow Belt

Please log in to comment
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?
Answered 08/24/2011 by: Teitan
Senior Purple Belt

Please log in to comment
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.
Answered 08/24/2011 by: VBScab
Red Belt

Please log in to comment
0
thanks all of you ...

i have got enough ideas to do the required.
Answered 08/24/2011 by: itsrahulsingh
Senior Yellow Belt

Please log in to comment
0
But if I understand him correctly, he wants the reg keys always installed except when the package installation fails.
Answered 08/24/2011 by: Teitan
Senior Purple Belt

Please log in to comment
0
as vbscab said if the package fails it rolls back and as such registry is not installed.
Answered 08/25/2011 by: jmcfadyen
Fifth Degree Black Belt

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