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

Error 1720 in custom action

I'm trying to use a VBScript custom action to alter the [INSTALLDIR] property.
I've got the script set to run 'After Initialization (before first dialog)'.
Even when I have the script with just 'MsgBox "Script is running"', I get the following error:

Error 1720. There is a problem with this Windows
Installer package. A script required for this install to
complete count not be run. Contact your support
personnel or package vendor. Custom action
NewCustomAction1 script error -2146827256, Micros...

Help!
0 Kudos
(2) Replies
jbiddle61
Level 4

The problem was that I created the .vbs file in Visual Studio which uses UTF-8 for the encoding by default.
VBS DOES NOT LIKE THAT!
It worked fine when I changed the encoding to US-ASCII - Codepage 20127 in the Advanced Save Options for the .vbs file.

Would have been nice to have that noted in the documentation on VB Script custom actions!
0 Kudos
chiranjeevi
Level 7 Flexeran
Level 7 Flexeran

Hello,

Thank you for the valuable feedback.

We would be glad to include of the documentation on VB Script custom actions in respective kb articles in future updates.

Thanks
Chiranjeevi
0 Kudos