Mass licensing of XnView
Moderators: helmut, XnTriq, xnview
-
- Posts: 3
- Joined: Sun Aug 21, 2016 2:49 pm
Mass licensing of XnView
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 =(
-
- Posts: 3
- Joined: Sun Aug 21, 2016 2:49 pm
Re: Mass licensing of XnView
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
Edit: in case of x64 it is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView
Re: Mass licensing of XnView
and if you try please try HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView
Pierre.
-
- Posts: 3
- Joined: Sun Aug 21, 2016 2:49 pm
Re: Mass licensing of XnView
Thank you! This way it works exactly as I wanted. If anyone interested in a command(requires powershell emoting (Ws-man) service):xnview wrote:and if you try please try HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\XnView
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}