msstyleEditor icon indicating copy to clipboard operation
msstyleEditor copied to clipboard

Automatically sign visual style if 'packthem.exe' is in the current directory

Open gdl-blue opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -> I need to patch uxtheme.dll, or sign the msstyle file to apply it.

Describe the solution you'd like A clear and concise description of what you want to happen. -> packthem.exe is a program from Microsoft that can compile msstyles for XP, and can sign msstyles for XP/Vista/7. (It does not work for Windows 10 so exclude it) so, if the user puts packthem.exe to the current directory, and if msstyleEditor detects that program in the current directory, run packthem -s xxx.msstyles(-s means sign the msstyle) after saving the style

gdl-blue avatar Aug 15 '22 02:08 gdl-blue

I'll see what I can do. Not sure if you are able to sign despite a dummy signature being in place already, but if you are not then you might want to remove the trailing 144 bytes from the style and try again.

nptr avatar Aug 15 '22 12:08 nptr

Not sure if you are able to sign despite a dummy signature

packthem.exe signs with a built in signature that Windows recognizes.

gdl-blue avatar Aug 16 '22 09:08 gdl-blue

[..] dummy signature being in place already

I am saying the style will have two signatures appended if I am not accounting for this second pass. Probably won't hurt, but I like to mention it.

nptr avatar Aug 16 '22 21:08 nptr

aha, multiple signing didn't make the OS have an error for me.

gdl-blue avatar Aug 27 '22 23:08 gdl-blue