Jump to content
OMRON Forums

Pewin32Pro2 on Windows 7 as non-admin


kenyourek
 Share

Recommended Posts

Environment:

Microsoft Windows 7 Professional 6.1.7601 Service Pack 1 Build 7601

x64-based PC

PeWin32Pro2 Version 4.3.2.0

 

With admin privileges, we've configured PeWin32Pro2 to use our PMAC device. The PeWin32Pro2 application works correctly as long as we run it with administrator privileges.

 

Our HMI application uses PCOMMSERVERLib.PmacDevice in a .NET application. Our HMI application works correctly as long as we run it with administrator privileges.

 

When we try to run our HMI application without administrator privileges, the PMAC Devices dialog shows (attachment), and we are unable to select our PMAC device (this is the same behavior we get when running PeWin32Pro2 without administrator privileges).

 

Is it possible to use the libraries provided by PeWin32Pro2 in an application that is running without administrator privileges?

pmac-devices-dialog.png.656de09a67c624586272ec50a4fd3ab5.png

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

You can do it but you have to manually edit the registry permissions.

 

Right click on the PeWin Pro icon and select “Run as administrator”. This only needs to be done once and it allows the software to create the registry keys.

 

Run regedit and change the user permissions for the following entries to give users full control:

 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PMAC

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PMACETH

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PMACUSB

 

Right click on the entry, select permissions and put a tick in the box to allow full control.

 

Exit Regedit and run PeWin normally. You should now find that the PMAC software runs correctly as a standard user.

PeWin registry settings.pdf

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...