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

custom action

Is it possible to call vbscript and dll custom action within InstallScript and how can I do that? Thanks.
Labels (1)
0 Kudos
(3) Replies
TsungH
Level 12

If you have a Basic MSI or InstallScript MSI project, you can have VBScript custom action, and DLL custom action calling Windows Installer DLL. You don't have to use InstallScript custom action.
0 Kudos
_Peter_
Level 4

I have InstallScript MSI Project and when I display SdCustomerInformationEx dialog I want to verify for entered serial number (example below). Logic for verifying serial numbers should probably be inside dll or vbscript? How can I implement that? Should I call dll from installScript to verify serial number?


if (szSerial != ) then
MessageBox("You have entered invalid product key.", WARNING);
goto Dlg_SdCustomerInformationEx;
endif;


Thanks!
0 Kudos
TsungH
Level 12

In this case, you wouldn't want to verify the serial number in a VBScript, which is in plain text. A DLL will be fine. You can use a DLL by calling UseDLL.
0 Kudos