Support Forums

Super Input Box

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.
User avatar
devereux0110
Posts: 34
Joined: Thu Aug 31, 2006 4:34 am

Super Input Box

Postby devereux0110 » Thu Mar 05, 2015 7:36 am

Just updating our system
We are moving to Server 2012 R2 and Windows 7 or 8 64bit clients.

We have a bit of scripting created in VBS using the SuperInputBox.dll however have just found you cannot use this on the Server 2012 R2 64bit machine.

Is there an updated version or another product anyone knows of that we can use for similar results

Ta for any suggestions
User avatar
SAPIEN Support Forums
Posts: 945
Joined: Wed Dec 03, 2014 2:26 pm

Super Input Box

Postby SAPIEN Support Forums » Thu Mar 05, 2015 7:36 am

This is an automated post. A real person will respond soon.

Thank you for posting, devereux0110.

Here are some hints to help you get an accurate and complete answer to your question.

Ask in the best forum:
If you asked in the wrong forum, just copy your question to the right forum.

Anticipate follow-up questions!

Did you remember to include the following?
    1. Product, version and build
    2. 32 or 64 bit product
    3. Operating system, e.g. Windows 7 64 bit.
    4. Attach a screenshot, if applicable
    5. Attach logs, crash reports, etc., in a ZIP file
If not, please take a moment to edit your original post or reply to this one.

*** Make sure you do not post any licensing information ***
User avatar
jvierra
Posts: 10026
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Super Input Box

Postby jvierra » Thu Mar 05, 2015 7:57 am

It should work if you run it in a 32 bit session.
User avatar
devereux0110
Posts: 34
Joined: Thu Aug 31, 2006 4:34 am

Re: Super Input Box

Postby devereux0110 » Thu Mar 05, 2015 8:20 am

Did this and received the message

The Module "SuperInputBox.all" failed to load

Make sure the binary at the specified path or debug it to check for problems with the binary or dependant .DLL files

The specified module could not be found.



I have the following files in the system32 folder
superinputbox.dll
superinputbox.exp
superinputbox.lib

open command prompt as administrator and enter
cd\windows\syswow64superinputbox
regsvr32 C:\windows\system32\SuperInputBox.dll

New server is 64bit Windows 2012 R2
User avatar
jvierra
Posts: 10026
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Super Input Box

Postby jvierra » Thu Mar 05, 2015 8:55 am

It has to be registered.
THe system32 folder is NOT the 32 bit system. It is the 64 bit system.

SysWow64 is the 64 bit system.

s this a net assembly? If so it has to be registered with REgAsm, If not then it is registered with regsvr32 in the SysWow64 folder.
User avatar
devereux0110
Posts: 34
Joined: Thu Aug 31, 2006 4:34 am

Re: Super Input Box

Postby devereux0110 » Thu Mar 05, 2015 11:22 am

I have tried registering the dll using the regsvr32 in the SysWow64 folder.

This is when I receive this message
I am opening a cmd as administrator
Going to the SysWow64 folder (cd c:\windows\syswow64), and then running the command
regsvr32 C:\windows\system32\SuperInputBox.dll

therefore using the regsvr32 in the SysWow64 folder to register the dll

I understand the system 32 folder is not the 32 bit system, it is just the location where I have placed the files. (and Where we have always placed the files)

It doesn't work, I get the error message as described
I don't know if it is net assembly, however we have always placed the files in the system 32 folder and have always registered the file using the command
regsvr32 SuperInputBox.dll

with no problems at all when we where on Windows XP, Windows 7 32bit clients.
User avatar
jvierra
Posts: 10026
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Super Input Box

Postby jvierra » Thu Mar 05, 2015 11:42 am

Do NOT put the files in the system32 folder. It will not work as you want.

Place the files in your owne folder or in Prpgrma Files (x86)\SuperInpuBox

OPen a 32 bit session like this:

c:\Windows\SysWow64\CMD



To verify that you are at a 32 bit prompt do this:

cd %programfiles%
C:\Program Files (x86)>echo %programfiles%
C:\Program Files (x86)


now go to new folder:
cd SuperInputBox

Now register

regsvr32 SuperInputBox.dll
Last edited by jvierra on Thu Mar 05, 2015 11:45 am, edited 1 time in total.
User avatar
jvierra
Posts: 10026
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Super Input Box

Postby jvierra » Thu Mar 05, 2015 11:45 am

devereux0110 wrote: we have always placed the files in the system 32 folder and have always registered the file using the command
regsvr32 SuperInputBox.dll

with no problems at all when we where on Windows XP, Windows 7 32bit clients.


That indicates that it is not a Net assembly and RegSvr32 will work if run from a 32 bit session.
User avatar
jvierra
Posts: 10026
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Super Input Box

Postby jvierra » Thu Mar 05, 2015 11:51 am

Note that you cannot store things in the 64 bit subsystem and have them visible from the 32 bit system. You are not ever supposed to store programs in the system area. I know up through XP everyone did this. Since Vista Microsoft has changed the rules. Vendors must not use the system areas.

When a 32 bit system uses the registry for a DLL the system only looks at the path in the registry. If you look you will see it was registered in %windir%\System32 But a 32 bit process sees that by looking only in %windir%\SysWow64.

By giving the module its own home we can make it available under any circumstances.
User avatar
devereux0110
Posts: 34
Joined: Thu Aug 31, 2006 4:34 am

Re: Super Input Box

Postby devereux0110 » Fri Mar 06, 2015 1:19 am

Super, that bit now works

Just stuck with having to open a 32bit cmd in the wowsys64 folder and dragging the vbs into the cmd to run it.
Is there any way that a vbs can be run in 32bit mode from double clicking it from its folder?

Ta

Return to “VBScript”

Who is online

Users browsing this forum: No registered users and 1 guest