hi! This is from a previous post but I wanted the subject to be right.
http://www.advancedinstaller.com/forums ... =2&t=25936
Re: Vbscript for MSI use ; documentation? Wscript vs Cscript
We also recommend you to use a DLL custom action written in C# or C++, instead of VBScript and you can see some reasons why not to use VBScript .
by Dan » Fri May 17, 2013 10:37 am
Hello,
Indeed, a custom action can be executed during installation rollback. In the custom actions properties there is an "Execution Time" grupBox and one of these options is "During installation rollback".
Postby AnneTheAgile » Fri May 17, 2013 11:52 am
>"During installation rollback".
Ah, now I see, it is a radio box so I would need two actions, one for each type of thing.
I have difficulty getting the C# custom action demo to work,
http://www.advancedinstaller.com/user-g ... rp-ca.html
First, I did not see the right item to choose in the UI, so I used the Wizard.
It asked me to :
>Go to Custom Actions Page, add a “New Installed Custom Action” with sequence from Add Custom Action Tab or the toolbar and select CustomAction1.CA.dll
However,
the only Add Custom Action items are;
call function from attached native DLL
call function from installed native DLL
call function from installed DLL
So maybe that's why, but I cannot get the properties to work.
When it is immediate, of course it fails because the "dll required could not be run" - it is not installed yet.
When it is not immediate, it fails because of exception;
InstallerException: Cannot access session details from a non-immediate custom action