Jump to content

Please, can the Installer add PaintDotNet to system PATH ?


Recommended Posts

The company I am working for are interested in using PaintDotNet as a default image editing program. What this comes down to is that MSPaint is already in the system path and can be run by just calling "MSPaint" without path or extension. I would like to see the same thing for PaintDotNet. But the installer would need to add PaintDotNet to the system path.

You can find the path in Control panel -> System -> Advanced -> Environment Variables -> System variables -> Path

Would it be possible to add PaintDotNet to this path ? If not, is there perhaps some other solution ? A registry key that can be read ?

It would help me as a developer tremedously if PaintDotNet was added to the system path by the installer. And it should be in your interest too because it makes it a lot easier to switch over.

Link to comment
Share on other sites

Create a shortcut in your Windows folder linking to the Paint.NET executable (copying the one in your Start Menu will be fine).

You can rename the shortcut if you want: 'pdn' will be shorter.

I tried it using Start -> Run and typing the shortcut's name, it works.

No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio

Link to comment
Share on other sites

It did not seem like I would get any help with this so I made a quick hack:

 sregPath = "SOFTWARE\Classes\Paint.NET.1\shell\edit\command"
 Set oRegistry = GetObject("winmgmts:root\default:StdRegProv")
 If oRegistry.GetStringValue(HKEY_LOCAL_MACHINE, sregPath, "", sString) = 0 Then
   sString = Mid(sString, 2, Len(sString) - 7)
   Call RunWinApp(sString, sPath)
 Else
   sString = "MSPaint"
   Call RunWinApp(sString, sPath)
 End If

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...