Page 1 of 1

Mass licensing of XnView

Posted: Sun Aug 21, 2016 3:07 pm
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 =(

Re: Mass licensing of XnView

Posted: Mon Aug 22, 2016 9:29 am
by xnview
please try HKEY_USERS\%User SID%\SOFTWARE\Wow6432Node\XnView

Re: Mass licensing of XnView

Posted: Mon Aug 22, 2016 4:32 pm
by Red_Stalker
Unfortunately still no progress. Tested on a VM

Image

Image

Re: Mass licensing of XnView

Posted: Mon Aug 22, 2016 9:29 pm
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

Re: Mass licensing of XnView

Posted: Tue Aug 23, 2016 12:18 pm
by xnview
and if you try please try HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView

Re: Mass licensing of XnView

Posted: Tue Aug 23, 2016 2:58 pm
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}