Have you ever started to install a product, think it’s about to install, and then been greeted with:
This happened to me recently (today) while installing the GP2010 version of AvaTax. Specifically AvaTax 11.0.0.0.1.05.
Well, I’ve seen this error many times and have solved it by registering the vbscript.dll. To register the DLL, do the following:
For a 32-bit machine
- First, be sure to close the Windows installer.
- Click Start > All Programs > Accessories
- Right-click on Command Prompt and select Run as Administrator.
- Type cd C:\Windows\System32 and then press Enter.
- Type regsvr32 C:\Windows\System32\vbscript.dll and then press Enter.
- You will hopefully receive the following dialog:
Click OK - Close the command prompt window.
- Restart your computer.
- First, be sure to close the Windows installer.
- Click Start > All Programs > Accessories
- Right-click on Command Prompt and select Run as Administrator.
- Type cd C:\Windows\SysWOW64 and then press Enter.
- Type regsvr32 C:\Windows\SysWOW64\vbscript.dll and then press Enter.
- You will hopefully receive the following dialog:
Click OK - Close the command prompt window.
- Restart your computer.
If Things Go Wrong:
If this doesn’t work, you’ll need to take more aggressive action. After searching the MSDN site and blogs, I found the solution. If you want to read the original article, go to: article on 2738 errors. As it turns out, script-based custom action failures are behind many 2738 (and 2739) errors. If you are a programmer (are you listening Avalara?) it would be best not to use script-based custom actions in an MSI. If you do, you are opening up your users to problems.
The problem is that re-registering the DLL from a regular command prompt writes the registration to HKEY_CURRENT_USER instead of HKEY_CURRENT_MACHINE. Starting with Vista, the Windows Installer will not load and use scripting engines if the registration is written to HKEY_CURRENT_USER. Consequently, re-registering the DLL from a normal user cmd prompt, will not help fix this type of error.
To see if you have this problem – MAKE A BACKUP OF YOUR REGISTRY- and then check for the existence of the key below, and unregister it if it exists in HKEY_CURRENT_USER.
- For a 32-bit machine: HKCU\SOFTWARE\Classes\CLSID\{ B54F3741-5B07-11CF-A4B0-00AA004A55E8}
- For a 64-bit machine: HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}
- First, be sure to close the Windows installer, and then MAKE A BACKUP OF YOUR REGISTRY. After the backup is complete, continue the listed steps.
- Click Start > All Programs > Accessories
- Right-click on Command Prompt and select Run as Administrator.
- For a 32-bit machine type in the following command:
reg delete "HKCU\SOFTWARE\Classes\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}" /f - For a 64-bit machine type in the following command:
reg delete "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}" /f
I hope this helps someone with this delightful dialog:
Until next post!
Leslie
No comments:
Post a Comment