79153

Will msscript.ocx stop working on Windows 8?

Question:

As mentioned <a href="https://stackoverflow.com/questions/1361501/where-does-msscript-ocx-gets-installed-from" rel="nofollow">here</a>, this component became a part of the windows operating system. However VB6 runtime may not be supported on Windows 8 and beyond. So I'm afraid this component may be going away too (even tho it is a part of windows OS). We are going to be attempting to utilize it via a C# consumer using Interop.MSScriptControl.dll, very soon. I've even seen some folks have issues with it on <a href="https://stackoverflow.com/questions/1215867/what-replacements-are-available-for-vbscript-in-an-application" rel="nofollow">Windows7</a>. Has anyone had success running it on Windows 7 and Windows Server 2008 R2? Does anyone think it will still work on Windows 8? Currently compiling for x86 32-bit CPU with thought that 64 bit system would use WoW64 to use it. Thanks!

Answer1:

The ScriptControl (msscript.ocx) is specific to 32bit Windows and is specific to older languages that cannot interact with the CLR/.Net. It continues to exist on Windows 7 in C:\Windows\System32 for 32bit and C:\Windows\SysWOW64 for 64bit. With Microsoft slowly phasing out 32bit portions of the Windows OS, this will eventually go away, too. When that may happen is anyone's guess, though.

There is a .Net equivalent though that can be used in 32bit and 64bit flavors of the Windows OS.

.Net 1.1 and up provides this functionality through <a href="http://msdn.microsoft.com/en-us/library/ee853281.aspx" rel="nofollow">Visual Studio for Applications</a>. An example project for this is on CodeProject named <a href="http://www.codeproject.com/KB/cs/vsascripting.aspx" rel="nofollow">VSA Scripting in .NET</a>.

With .Net 3.5 this functionality has been deprecated in favor of Powershell using the <a href="http://msdn.microsoft.com/en-us/library/system.management.automation%28VS.85%29.aspx" rel="nofollow">System.Management.Automation</a> namespace. An example project for this is on CodeProject named <a href="http://www.codeproject.com/KB/cs/HowToRunPowerShell.aspx" rel="nofollow">How to run PowerShell scripts from C#</a>.

Recommend

  • Using FirewallException api in Wix to apply setting to all network profiles in Win7
  • WatiN ie9 confirm dialog is not working [duplicate]
  • gvim Windows 7 netrw open url under text cursor
  • How to search (case-sensitive) for files using Java glob pattern?
  • change background color every second
  • Cordova InAppBrowser - Open popups from web within the InAppBrowser container
  • SQL select: two-dimensional select with variable column count
  • Boot EBS volume from Bamboo instance
  • Getting IIS gzip compression to work with Silverlight WCF service on .NET 4.0
  • IIS and ISAPI-WSGI = very slow
  • How to solve “fatal: relocations remain against allocatable but non-writable sections” while using J
  • Why is my SqlPackage DeployReport returning an empty report?
  • Cross compiling Qt 5
  • How can I determine if process is 32 or 64Bit from a handle?
  • Locating unmatched delimiters in Clojurescript
  • Defining a method whose return type is the singleton type of an argument of that method
  • How to create a custom Powershell operator?
  • Inversing an interpolation of rotation
  • hibernate sets dirty flag (and issues update) even though client did not change value
  • SonarQube: Cannot deactivate rule with missing quality profile
  • How to generate and display a QR Code in ionic 2
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • x64 applications using gdi+: what are the consequences on performance?
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Atlas images wrong size on iPad iOS 9
  • Get data from AJAX - How to
  • Bug in WPF DataGrid
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • ActionScript 2 vs ActionScript 3 performance
  • How can I estimate amount of memory left with calling System.gc()?
  • Apache 2.4 - remove | delete | uninstall
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Comma separated Values
  • Benchmarking RAM performance - UWP and C#
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • How to load view controller without button in storyboard?