10-31-2011 09:34 AM
Hi All,
is it possible to use Registration-Free COM in Diadem 2011 SUDs and scripts?
See: http://msdn.microsoft.com/en-us/magazine/cc188708.aspx.
I am looking for a simple way to reduce user rights, needed to update Diadem based application.
Registration of ocx components on target PC with Windows 7 involves needs of admin user rights.
Thanks,
Piotr
11-04-2011 08:15 AM
Dear Piotr,
The scripting module of DIAdem is using the Microsoft Visual Basic Scripting Engine.
You can see the "about window" below:
The best is, if we try to find some example, or some solution which implements the registration free ActiveX handling from microsoft VBS code.
If it's possible with VBS, than it's possible in DIAdem.
If I find some solution, which can be useful, I'll keep you updated on this forum.
Best Regards,
Tamas Szekely
Applications Engineer
National Instruments
11-04-2011 08:59 AM
Hi again,
I found for you some links:
Maybe using Manifest files can solve this issue. The thing is that the manifest file has to be in the same folder, where the wscript.exe, VBS engine is.
Read through this website: http://www.ureader.com/msg/167511005.aspx
To create manifest files, you can use this tools: http://msdn.microsoft.com/en-us/library/windows/desktop/aa376592(v=vs.85).aspx
The main issue with the VB script is that it's an interpreted code, not executed natively from the windows. The ActiveX component can be registred to an application easily with manifest files, but this is only for the executables.
In our case the executable means our DIAdem.exe.
The VB script is interpreted by the vbscript.dll, which is in the c:\Program Files (x86)\National Instruents\DIAdem folder. So the DIAdem.exe imports the VBScript.dll to interpret our VBS files.
As far as I know this dll gives the API to run the scripts, which are written in DIAdem.
Under the given links you'll find a mentioned wscript.exe, which has similar function like in our case the VBScript.dll. But it is the Windows VBS interpreter.
I hope I could give you some idea how to make it work.
Best Regards,
Tamas Szekely