How to auto register msxml6.dll on Windows Server 2003? - windows-server-2003

I have a I have a component that loads the dll dependêcia Windows: msxml6 and msxml6r.
When I run the installer on Windows Server 2003, it does not work because it does not find the dll msxml6 windows itself.
As a workaround I thought of sending and registering these dll along with my installer, but the following problem occurs when I do this:
error
---------------------------
C: \ WINDOWS \ system32 \ msxml6.dll
Unable to register the DLL / OCX: Regsvr32 failed with exit code 0x3.
Click Retry to try again, Ignore to skip this file (not recommended), or Abort to cancel installation.
---------------------------
Cancel Retry Ignore
---------------------------
Can anyone help me?

Related

how to package and deply a VFP OlePublic (COM Object)?

How do I deploy a VFP OlePublic dll to a Windows Server 2016 machine that is called via COM Interop from .NET hosted in an IIS website? What other bits do I need to deploy beside my VFP dll?
I would think I would use InstallShield Express Visual FoxPro Limited Edition (included w/ the install of VFP9), no?
Define Class miked As Session OLEPUBLIC
FUNCTION HelloWorld as String
RETURN "Hello World"
ENDFUNC
FUNCTION Echo(thingToEcho as String) as String
RETURN thingToEcho
ENDFUNC
Enddefine
InstallShield MSI package
I included the following redistributable packages in my installer:
GDI Plus Redist Module
Microsoft C Runtime Library 7.1
Microsoft Visual FoxPro 9 Runtime Libraries
I'm able to manually register the dlls from an admin PowerShell prompt w/ regsv32 so that part seems ok.
I get the following when trying to instantiate an instance of this COM object.
Retrieving the COM class factory for component with CLSID {A55C4127-DDCB-4E5F-B69C-A7EAC83A83DC} failed due to the following error: 80004005 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)).
On my additional test server, I installed VFP 9 w/ SP2 and my error went away but doesn't seem right. I probably shouldn't have to install the IDE to deploy the DLL.
On my additional test server, I installed VFP 9 w/ SP2 and my error went away but doesn't seem right. I probably shouldn't have to install the IDE to deploy the DLL.
That was not correct. I reset my VM using a checkpoint, performed a fresh install of my app & it worked.
Packaging up a VFP COM dll as described in my question works!
Using Simon's comment & procman I was able to kinda solve my problem.
E_FAIL is a super generic error (but it seems the entry COM .dll is indeed registered otherwise you'd get another error). You can try to run Process Monitor on the machine, filter by .exe, and check registry and possibly file accesses if there are some missing .DLL dependencies
I found some not successes under my exe name trying to load vfp9r.dll:
those files got installed w/ my InstallShield package under C:\Program Files (x86)\Common Files\Microsoft Shared\VFP:
I copied the three DLLs:
vfp9r.dll
VFP9RENU.dll
vfp9t.dll
from C:\Program Files (x86)\Common Files\Microsoft Shared\VFP to my DLL install directory, restarted IIS & it worked 🎉. This off course is a workaround as it is finding those dll's on my other server but that's another question 😊.
restart IIS:

How to compile Winsock Control 6.0 on VB6 in Windows 10?

When trying to compile in the "Winsock Control" component on Windows 10, I get this error:
mswinsck.ocx could not be loaded
Notably, I have installed VB6 SP6, and with SP6 it works great on Windows 8.1 and Windows 7, but it won't compile on Windows 10.
Also notably, the compiled .exe, when compiled from Win7/8, has no problem loading ws2_32.dll. It's just the compiling step that doesn't work on Win10.
Running Dependency Walker, depends.exe suggests mswinsck.ocx can't be loaded because it's depending on API-MS-WIN-CORE-SYNCH-L1-2-0.DLL and API-MS-WIN-CORE-PROFILE-L1-1-0.DLL and API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL and a bunch of other DLLs with similar names (I think these DLLs have something to do with SysWOW64), which can't be found:
Does anyone know how to compile in "Winsock Control" in VB6 on Win10?
(Also notably, it seems the MSFlexGrid component is un-compilable on Win10 in a similar fashion, but this question is about the WinSock control, not MSFlexGrid).
EDIT: additional info: I have installed "VB6 Service Pack 6", VB version is "Version 9782 VBA retail 6.0.9782", and the version on the mswinsck.ocx file itself is 6.1.97.82 (and thanks to the comments, I know a newer one exists: 6.1.98.16)
I have run into this problem often on Windows 10 machines and resolved it by unregistering and re-registering each OCX using an elevated Command Prompt:
Open a Command Prompt window from the Start Menu by right-clicking it and choosing "Run as administrator". It is important that your Command Prompt window is titled "Administrator: Command Prompt".
Go to SysWOW64 folder by typing cd \Windows\SysWOW64
Unregister OCX by typing regsvr32 -u mswinsck.ocx
Re-register OCX by typing regsvr32 mswinsck.ocx
That usually fixes the problem.
If you use Visual Studio Installer 1.1 to deploy applications, you will probably have the same issue on Windows 10 systems you deploy to. The installer doesn't seem to properly register files. If you use Visual Studio 2019 and the Setup extension, that will build an installer that properly registers the OCX, in my experience.

Cannot install Windows SDK for Windows 7

I try to install Windows SDK on a Windows 7 laptop because its a dependency of this node.js module. (All Windows Versions. For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK)
I went here, hit Download, and got an winsdk_web.exe file. Run it and everything was going fine, until the last step, where I got "Installation failed".
This is what I get in the end
I copy/pasted the link from the above screen that got me to this page , so I can troubleshoot it, but I cannot find a SDKSetupLog.txt file anywhere. There is an SDK in the laptop in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A , but frankly I dont know if it was already there before the installation or it created by it. The laptop is not mine.
My last log is:
Last log : 2:03:10 πμ Sunday, 20 December 2015: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack: in SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent) in SDKSetup.Product.SetupProduct(TaskMode taskMode, ManualResetEvent CancelEvent) in SDKSetup.ProductCollection.SetupProducts(TaskMode taskMode, DownloadManager downloadManager, ManualResetEvent cancelEvent) σε SDKSetup.ConfigProducts.DoCurrentTask(TaskMode Task)
How do I fix this?
UPDATE
Check this fiddle to see the full log.
Thanks

Visual studio 2012 fails: CompatibilityMode : Windows Program Compatibility mode is on

Guys I'm trying to install Visual Studio 2012 in Win8.1 but unfortunately I face this error:
Compatibility Mode : Windows Program Compatibility mode is on. Turn it off and then try Setup again
Could you please help me how to fix it step by step?
Go to installation (.exe) file.
Right Click on that file.
click on Properties option.
Then select to compatibility .
Check the option Run this program in compatibility mode for : and select for Windows 8.
In Settings Check the Run this program as an administrator.
finally ok and apply this setting and the .exe again.
I hope this will work surely.
This answer is from this link
Run the uninstaller until it fails
Go to task manager
Call up the context menu for the installer process (right-click)
Select ‘open file location’
This will open the package folder
Call up the context menu for the uninstaller executable
Select the ‘compatibility’ tab
Disable all compatibility settings over here
This could happen if you are trying to install the program from iso.
Extract it first to a folder, then install it from the folder. It worked for me.

.NET 4.5 fatal error during installation of VS 2012 Ultimate

When I try to install VS 2012 Ultimate on Windows 7 32bit SP1, but it gives me the next error:
"Microsoft .NET Framework 4.5 - Fatal error during installation"
My installation log: here
My vslog.cab file: here
I tried to install .NET 4.5 stand-alone, but it didn't work too. .NET 4.5 log error
This issue is caused by antivirus scanner on your machine.
Can you please check antivirus scanner logs and see if there is an exception logged for c:\config.msi? Also let us know which antivirus you have on the machine? We (Microsoft) would like to reach out to them to change their product to work better with installers.
Log file indicates some other application (like Antivirus scanner) is opening the backup file without FILE_SHARE_DELETE after MSI creates/moves it.
MSI (s) (D8:C8) [11:31:49:844]: Product: Microsoft .NET Framework 4.5 -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2329. The arguments are: 32, C:\Config.Msi\b8265.rbf,
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2329. The arguments are: 32, C:\Config.Msi\b8265.rbf,
Workaround: disable antivirus and install .Net 4.5 on the machine then enable antivirus again.
Open cmd
Type in the command “net stop WuAuServ” (disable windows update)
Go to Run (you can do this by pressing Win + R) and type in “%windir%” (this command let you go to your windows system folder)
Find the folder “SoftwareDistribution” and rename it as “SDold”
Then, go back your previous command prompt and run the command “net start WuAuServ”
Now, try to install .NET Framework again
Just try to update your .NET Framework to an 4.5 version?

Resources