Mass licensing of XnView

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Post Reply
Red_Stalker
Posts: 3
Joined: Sun Aug 21, 2016 2:49 pm

Mass licensing of XnView

Post by Red_Stalker »

Hi! Our company has bought a 220 user license for Xnview. Is there a way to automatically activate programm during instalation or after it, for example from command line? I've tried to add registry keys to HKEY_USERS\%User SID%\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\XnView and HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\XnView with names 'LicenseName' 'LicenseNumber', but it doesn't seem to work =(
User avatar
xnview
Author of XnView
Posts: 34681
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Mass licensing of XnView

Post by xnview »

please try HKEY_USERS\%User SID%\SOFTWARE\Wow6432Node\XnView
Pierre.
Red_Stalker
Posts: 3
Joined: Sun Aug 21, 2016 2:49 pm

Re: Mass licensing of XnView

Post by Red_Stalker »

Unfortunately still no progress. Tested on a VM

Image

Image
Mixer
Posts: 166
Joined: Fri Aug 28, 2015 6:24 am

Re: Mass licensing of XnView

Post by Mixer »

Your registry path does not look like paths used in registry virtualization. You have "SOFTWARE" between "User SID" and "Classes", when in examples it is "<User SID>_Classes". I guess you need to have key HKEY_LOCAL_MACHINE\Software\XnView and make sure virtualization for this key is allowed. Here: https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Edit: in case of x64 it is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView
User avatar
xnview
Author of XnView
Posts: 34681
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Mass licensing of XnView

Post by xnview »

and if you try please try HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView
Pierre.
Red_Stalker
Posts: 3
Joined: Sun Aug 21, 2016 2:49 pm

Re: Mass licensing of XnView

Post by Red_Stalker »

xnview wrote:and if you try please try HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView
Thank you! This way it works exactly as I wanted. If anyone interested in a command(requires powershell emoting (Ws-man) service):

Invoke-Command -ComputerName pc_name -Credential $credential -ScriptBlock{Set-Location HKLM:;New-Item -Path HKLM:\SOFTWARE\WOW6432Node -Name XnView -Force;New-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\XnView -Name LicenseName -Value 'Company_name' -PropertyType String -Force;New-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\XnView -Name LicenseNumber -Value '00000000' -PropertyType String -Force}
Post Reply