1. ayman ahmad
  2. PowerBuilder
  3. Monday, 11 April 2022 14:39 PM UTC

hi,

i am trying to register a dll in the pre load event and i have admin on this pc and i have checked the option for run as administrator

the problem is the dll is not being registered

how can i see or track this operation , the process is silent and it is not showing what is happening

please advise

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 April 2022 14:55 PM UTC
  2. PowerBuilder
  3. # Permalink
The Preload event would be best served by a BAT file that had all those commands. That way, if the BAT file works by running it standalone on a client PC, then it should work from the Preload event . Food for thought. ;-)
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 11 April 2022 16:08 PM UTC
  2. PowerBuilder
  3. # 1

Hi Ayman;

  What you need to do in the Preload event is execute a .BAT file. That BAT file needs to be included in the "External Files" tab of the PS project. If the BAT file registers the DLL(s) properly when run "standalone" (as a quick test), it should ruin OK from the Preload event (As Admin).

Regards .... Chris

Comment
  1. ayman ahmad
  2. Monday, 11 April 2022 16:20 PM UTC
excuse me but what do you mean by run standalone

i am now writing the commands directly , is it different than putting it in a batch file?
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 11 April 2022 15:02 PM UTC
  2. PowerBuilder
  3. # 2

If you want to register a DLL, the right way is to add the DLL to the "External Files" tab and then click the "DLL/OCX" button and select the register checkbox for that DLL.  

Comment
  1. ayman ahmad
  2. Monday, 11 April 2022 15:08 PM UTC
i need to register it using regasm not regsvr32
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.