None of the above suggestions worked for me, for me the anti-virus (mcafee) came into the picture and looks like it updated the vbscript.dll registry entry to a wrong DLL location. These are the things to keep in mind:
- Some of the WiX ICE validations are implemented using VBSCRIPT.
- So while compiling the MSI, the build server would need access to the c:\windows\system32\vbscript.dll.
- Chances are that somehow the user that runs your build lost access to this DLL.
- As mentioned in the above answers do look for the admin access/registry access and make sure your user has it.
Here are the steps that I took to fix the issue:
- Open cmd (run as admin) on the build agent machine.
- Run RegEdit
- Select the root, then click ctrl + f and Search for the following registry entry : {B54F3741-5B07-11cf-A4B0-00AA004A55E8}
- Look for the InprocServer32\Default Key
- On my build agent, the path was replaced with a mcafee DLL location. I updated the path back to c:\windows\system32\vbscript.dll
- Editing the registry entry was not easy, as it was a protected registry entry. I used the below link to get access permissions changed before I could edit the property: Edit protected registry entry
Once I updated the path, everything started working as usual.