Movian
01-05-2015, 07:09 AM
Hey so my front end utilizes a custom tlb called Encryption.tlb (Implements encryption using salted SHA 512 for single sign (Have native SHA 256 in VBA but not native 512))
this is normally installed for a hand full of clients manually in a folder (C:\MyAppEncryption\Encryption.tlb) and is then registered by running a batch file.
I then normally release 2 versions of our system through our automated update system, one version that references that .tlb and another that does not....
this 2 fork release is time consuming and frustrating and I finally got the go ahead to had everyone use the library so that we can have a single branch release.
So I want to set all our systems to automatically download, and register this file. so this leads to questions does the .tlb file need to be in a Fixed folder position? for example if I register it on my dev system in C:\MyAppEncryption\Encryption.tlb but then have client systems automaticaly download the .tlb and .dll to a sub folder in the app directoy C:\Program Files (X86)\MyApp\Encryption\Encryption.tlb will this still work? or will the front end be trying to locate it in C:\MyAppEncryption\Encryption.tlb or does the windows registration mean that it will look for it wherever windows tells it to ?
Once I have established this I need to find a way to have my front end check for admin permissions (as we need to register the file).
if they have admin permissions and if the tlb file does not exist in either location then I will download the files from a web server and I presume I can just shell the commands
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Regasm.exe /tlb
C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe /codebase
is there a way I can check to ensure that they were registered correctly ?
As always thanks in advance!
this is normally installed for a hand full of clients manually in a folder (C:\MyAppEncryption\Encryption.tlb) and is then registered by running a batch file.
I then normally release 2 versions of our system through our automated update system, one version that references that .tlb and another that does not....
this 2 fork release is time consuming and frustrating and I finally got the go ahead to had everyone use the library so that we can have a single branch release.
So I want to set all our systems to automatically download, and register this file. so this leads to questions does the .tlb file need to be in a Fixed folder position? for example if I register it on my dev system in C:\MyAppEncryption\Encryption.tlb but then have client systems automaticaly download the .tlb and .dll to a sub folder in the app directoy C:\Program Files (X86)\MyApp\Encryption\Encryption.tlb will this still work? or will the front end be trying to locate it in C:\MyAppEncryption\Encryption.tlb or does the windows registration mean that it will look for it wherever windows tells it to ?
Once I have established this I need to find a way to have my front end check for admin permissions (as we need to register the file).
if they have admin permissions and if the tlb file does not exist in either location then I will download the files from a web server and I presume I can just shell the commands
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Regasm.exe /tlb
C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe /codebase
is there a way I can check to ensure that they were registered correctly ?
As always thanks in advance!