Using a registry script to create custom optimization settings profile

When NXPowerLite Desktop is installed the default optimization settings are set to the 'Screen' profile. This profile of settings is usually sufficient for most users, however there may be occasions where you want to deploy or apply a custom set of optimization settings to the profile.

This article details how you can use a registry script to create (or standardize) a 'Custom' user settings for NXPowerLite Desktop. Once the your custom setting have been applied to each user profile, they can subsequently be overridden by the user.

This article references a registry script which can be downloaded here.

This registry script needs to be run under the end user account - either by double clicking on the .reg file and following the instructions, or by running the following command:

REG IMPORT CustomSettings.reg

Please note the following:

  • It is assumed that NXPowerLite Desktop is installed and working before applying the registry script.
  • The script writes to the the current user hive of the registry, therefore has to be run when logged in as the user who will be using NXPowerLite.
  • If the user already has custom settings set, they will be overwritten by running the registry script.
  • Once the script has been run, the user can still override the settings from within the application.
  • Some options below depend on settings in other options. To get an idea of where this might occur please see the layout of the UI in the application.
  • NXPowerLite assumes that these registry settings will be valid; incorrect usage may result in the application not performing correctly.
  • You should close the application if it is running prior to applying the registry script, and relaunch it afterwards to verify that the script has been correctly applied.

To find the defaults for the various in-built settings profiles, set NXPowerLite to that setting profile, launch regedit.exe and export HKEY_CURRENT_USER\Software\Neuxpower\NXPowerLite\7.0

Registry locations

There are two similar sets of registry settings written to different keys, both of which are updated by the script:

The main application registry hive

HKEY_CURRENT_USER\Software\Neuxpower\NXPowerLite\7.0\Desktop - these settings are used by the standalone NXPowerLite application, and also the Office (Word/Excel/PowerPoint), Windows Explorer, Outlook Express and Lotus Notes integrations.

The Outlook add-in registry hive

HKEY_CURRENT_USER\Software\Neuxpower\NXPowerLite\7.0\Outlook- these settings are used by the Microsoft Outlook integration.

Optimization settings

These are all on the Optimize Profile tab on the settings dialog, both in the main desktop application and the Outlook add-in. Ensure you update the correct key in the registry to apply these settings to the correct application.

Registry Setting Desktop equivalent Format / value Alternative Settings
Enable cropping Delete cropped areas of pictures option Binary - set to 01 (true). Set to 00 to turn this option off
Delete PieceInfo mode Delete private application data option Binary - set to 01 (true). Set to 00 to turn this option off
Subset Embedded Fonts Subset embedded fonts option Binary - set to 00 (false). Set to 01 to turn this option on
Flatten mode Flatten embedded objects option Binary - set to 01 (true). Set to 00 to turn this option off
Preserve JPEG metadata (JPEGs) JPEG Remove EXIF Data option - note the value is inverted. Binary - set to 01 (effectively option is off). Set to 00 to (in effect) turn remove EXIF data on.
Enable JPEG Not exposed in the UI. Where possible we will convert images in PDF and office documents to JPEG if this realises a greater reduction. This option allows this to be turned off. Binary - set to 01 (true). Set to 00 to turn this option off
JPEG quality (JPEG) This is the JPEG quality setting for standalone JPEG files DWORD - set to 7 Valid options are 1-9
JPEG quality (Office) This is the JPEG quality setting for office files DWORD - set to 7 Valid options are 1-9
JPEG quality (PDF) This is the JPEG quality setting for PDF files DWORD - set to 7 Valid options are 1-9
Enable resizing (JPEG) Turns on or off the resize images option for standalone JPEG files Binary - set to 00 (false). Set to 01 to turn this option on
Enable resizing (Office) Turns on or off the resize images option for office files Binary - set to 01 (true). Set to 00 to turn this option off
Enable resizing (PDF) Turns on or off the resize images option for PDFfiles Binary - set to 01 (true). Set to 00 to turn this option off

Screen width (JPEG) / 

Screen height (JPEG)

Relates to the width/height drop down enabled by Enable Resizing (JPEG) - ignored if this value is false. DWORD values - set to 1600 & 1200 respectively

Screen width (Office) / 

Screen height (Office)

Relates to the width/height drop down enabled by Enable Resizing (Office) - ignored if this value is false. DWORD values - set to 1024 & 768 respectively

Screen width (PDF) / 

Screen height (PDF)

Relates to the width/height drop down enabled by Enable Resizing (PDF) - ignored if this value is false. DWORD values - set to 1024 & 768 respectively
Compression mode This is the overall 'mode' of the settings. N/A Text - leave set to 'Custom'
Dots Per Inch Deprecated. For each file type (PDF, Office, JPEG) the dpi is calculated as the longest dimension of screen width or screen height, divided by 8.    
JPEG Screen Resolution Deprecated - please ignore. Note this value still gets written by the application but is not used.    

Desktop File Options

These are the options that affect how files are changed during optimization. They only have an effect in the desktop key in the registry.

Registry Setting Desktop equivalent Tab on Settings dialog Format / value Alternative Settings
Modifier After Determines whether the optimized file modifier is prepended or appended (the default) to the file name. File Naming Binary - set to 01 (true). Set to 00 to prepend the file modifier. See Modifier. 
Modifier The text which appears either prepended or appended to an optimized file File Naming Text - ' (NXPowerLite Copy)' Can be set to any string of characters that are valid to use in a filename. 
Modifier After (Backup) Determines whether the backup file modifier is prepended or appended (the default) to the file name. File Naming Binary - set to 01 (true). Set to 00 to prepend the file modifier. See Modifier (Backup). 
Modifier (Backup) The text appended/prepended to a backed-up file. File Naming Text - ' (NXPowerLite backup)' Can be set to any string of characters that are valid to use in a filename. 
Original Datetime  'Save optimized file with current date and time' option. Note the setting in the registry is the reverse of that in the UI. Save Options Binary - set to 01 (true) Set to 01 (true) or 00 (false) which will equate to false and true in the UI respectively.
Original Filename Deprecated - please ignore.      
Optimization status In the addin for Outlook, this is the state of the enable/disable NXPowerLite button N/A Binary - set to 01 (true) to enable optimization in Outlook etc Set to 00 to turn off the Outlook addin. Note this only applies when set in the Outlook registry hive.
Optimize Minimum Size Sets the minimum size of files to optimize Attachments (in Notes and Outlook Express) DWORD - set to 0 in Desktop, 200 in other addins. Only exposed in Lotus Notes and Outlook Express UIs, but may impact in the main app if overridden in the registry.
ReOptimize optimized files Sets whether to reoptimize already optimized files or not Attachments (in Notes and Outlook Express) Binary - set to 0 by default. Only exposed in Lotus Notes and Outlook Express UIs, but may impact in the main app if overridden in the registry.
Output Finalization Mode Determines whether the original file is replaced creating a backup or if an optimized copy is created. Save Profile page DWORD - set to 1. Set to 0 to replace original and create backup, or 1 to create an optimized copy. 
Single folder Turns on or off the 'Create optimized copy (another folder)' option Save Profile page Binary - set to 0 by default. Only used if Output Finalization Mode is 1
Batch Directory This is the 'Create optimized copy (another folder)' path. Only usedif Single folder is true. Save Profile page Text - absolute path to users documents directory Supply the directory path as required
Single folder (Backup) Turns on or off the Replace original and create backup (another folder)' option Save Profile page Binary - set to 0 by default. Only used if Output Finalization Mode is 0
Backup Directory This is the 'Replace original and create backup (another folder)' path. Only used if Single folder (Backup) is true Save Profile page Text - absolute path to users documents directory Supply the directory path as required

Outlook-specific options

These should only be written to the Outlook key, and generally related to how Outlook attachments are processed for optimization, e.g. size thresholds and whether or not to zip the attachments. All are on the Attachments tab of the settings dialog in Outlook.

Registry Setting Desktop equivalent Format / value Alternative Settings
Optimize Powerpoint Enables/disables Powerpoint format optimization Binary - set to 01 (true) to enable PowerPoint optimization Only exposed in the Outlook addin UI. If set in the Desktop registry key then PowerPoint files will appear to be already optimized.
Optimize Word Enables/disables Powerpoint format optimization Binary - set to 01 (true) to enable Word optimization Only exposed in the Outlook addin UI. If set in the Desktop registry key then Word files will appear to be already optimized.
Optimize Excel Enables/disables Excel format optimization Binary - set to 01 (true) to enable Excel optimization Only exposed in the Outlook addin UI. If set in the Desktop registry key then Excel files will appear to be already optimized.
Optimize JPEG Enables/disables JPEG format optimization Binary - set to 01 (true) to enable JPEG optimization Only exposed in the Outlook addin UI. If set in the Desktop registry key then JPEG files will appear to be already optimized.
Optimize PDF Enables/disables PDF format optimization Binary - set to 01 (true) to enable PDF optimization Only exposed in the Outlook addin UI. If set in the Desktop registry key then PDFfiles will appear to be already optimized.
Optimize Zip Enables/disables Zip format optimization Binary - set to 01 (true) to enable Zip optimization Only exposed in the Outlook addin UI. If set in the Desktop registry key then Zip files will appear to be already optimized.
Ask Flatten EO 'Ask me when flattening embedded objects' option Binary - set to 01 (true) Set to 00 (false) to turn this option off
Ask Zip Attachments 'Ask me before sending zip attachments' option Binary - set to 01 (true) Set to 00 (false) to turn this option off
Enable Zip 'Enable zip compression' option Binary - set to 01 (true) Set to 00 (false) to turn this option off
Use Custom Zip File Ext Enables or disables the 'Use custom file extension' option Binary - set to 00 (false). Set to 01 to turn this option on
Custom Zip File Ext The custom zip file extension to use - will only work if Use Custom Zip File Ext is true Text - '.piz' Can be set to any string of characters that are valid to use in a filename.
Min Email Size This is the general  'Ignore emails below' option  DWORD - 000001f4 (500) Set to any minimum value, or 0 to process all emails
Min Zipped Email Size This is the zip file 'Ignore emails below' option DWORD - 000003e8 (1000) Set to any minimum value, or 0 to zip all files.
Min Zipped Email Reduction This is the zip 'Minimum reduction' option DWORD - 0000000a (10) 0-100 decimal are valid values.
Neuxpower Support Article Logo
Have more questions? Submit a request