Hi,
We are testing a Powerclient installation (PB 22R3 3356).
Our app needs a dll which has to be registered in a special way - using regsvr32 with some extra parameters (serial number).
There is a DLL & OCX Registration button on the External Files tab for regular registrations - not suitable.
I believe our registration could be done in the Preload Event on the Startup tab.
And here's my question. How to make the registration run only during installation or first start?
There are only two options:
Only when the app first starts or is updated
or
Every time the app starts.
We could use a third option - Only when the app first starts.
Any ideas? Thanks in advance.
Tomáš
Thanks for your input.
The dll is never modified. It just exists and needs to be registered. Now, I don't mind registering it on every upgrade, but it needs to be done with administrator rights and most users don't have them. It would be annoying to chase an administrator for every update.
I'm not sure if checking if the DLL is registered required admin rights, but if that were the case I would include an independent EXE whose only job is to load that DLL; and if it doesn't return a status code of 0 then I would assume the DLL is not registered.
That's what I would do in that case.