Jump to content

Portable paint.net Launcher


Recommended Posts

Update: Official portable Paint.NET can now be obtained here:

https://github.com/paintdotnet/release/releases/latest

 

 

 

Spoiler

I have created a custom launcher to run a portable copy of paint.net. A launcher isn't technically necessary, but this allows for two things:

  1. It can (optionally) read settings from an ini file and load the values into the local registry, so you can always have your custom settings.
  2. Once paint.net has been closed, it will also clean up (delete) the paint.net folder in the %LocalAppData% directory, and will also clean up the paint.net registry key in HKEY_CURRENT_USER\Software.

 
 
The paint.net executable and related files are not bundled with this, so you'll need to copy them from your existing installation.
 
The computers that you plan to use this on will need to have the .Net Framework v4.6.x already installed.
 
Remember, this will clean up (delete) settings, so don't run this on the same machine (or at least same Windows account) with your existing paint.net installation. Again, It will wipe all your current paint.net settings. Your installation of Paint.net will still work, but your custom settings will be removed.
 
Download

Link Removed
 
Source Code
https://github.com/toehead2001/PDNPortable

 

Here are some examples of how the INI file works:

Registry entry     INI entry
Window/History/IsVisible=True     [Window]
    History.IsVisible=True
UI/Language=en-US     [UI]
    Language=en-us

 

Edited by toe_head2001
add link to official portable paint.net
  • Upvote 1

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Update posted. Download in first post.

 

Earlier today, someone posted an issue over on Github about not being able to drag-n-drop images onto the launcher's exe. I have resolved the issue.

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

  • 1 month later...
Quote

How did you make this portable?

As I understand it, he created a "launcher" app that does the work of creating the usual paint.net directory for the duration that the pdn executable runs, then deletes the directory when it's closed. Really, executables are all portable as long as all dependencies and the target platform are present. In this case, the .Net Framework is an assumed dependency.

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.

×
×
  • Create New...