Welcome, Guest
Username Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Using same machine number within a network

Re: Using same machine number within a network 5 months ago #166236

  • hugly
  • OFFLINE
  • Platinum Boarder
  • Posts: 13787
  • 5 months ago
Just checked with recent beta on Windows, this key sets machine number to <value>
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lightworks\Configuration\machine.num <value>


The file "machine.num" works with Linux, but doesn't seem to work (anymore?) with Windows?
It's better to travel well than to arrive...
Last Edit: 5 months ago by hugly.

Re: Using same machine number within a network 5 months ago #166256

  • lghtwrks
  • OFFLINE
  • Platinum Boarder
  • Posts: 2717
  • 5 months ago
namespace Lightworks_ChangeMachineNumber
{
class Program
{
static void Main(string[] args)
{
int mnr;
string errstr = „\r\n\r\nFalsche Eingabe/wrong parameter: Lightworks_SetMachineNumber.exe [<1-2500>]>“;
string copyright = „\r\n\r\n(c) s“;


Console.Title = „Lightworks_SetMachineNumber (c) s“;

string machinenr = (string)Registry.GetValue(“HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Lightworks\\Configuration“, „machine.num“, „Lightworks is not installed!“);
Console.WriteLine(“\r\n(ALT) Maschinennummer/(OLD) machine number: {0}“, machinenr);



if (args.Length == 0)
{
Console.Write(“Neue Maschinennummer/new machine number (q = Abbrechen/end): „);
string newmnr = Console.ReadLine(); bool ok = int.TryParse(newmnr, out mnr);

if ((mnr <= 2500 && mnr >= 1) || (newmnr == „q“))
{
if (newmnr != „q“)
{
Registry.SetValue(“HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Lightworks\\Configuration“, „machine.num“, newmnr);

}
machinenr = (string)Registry.GetValue(“HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Lightworks\\Configuration“,
„machine.num“, „Lightworks is not installed!“); Console.WriteLine(“\r\nMaschinennummer/machine number : {0}“, machinenr);
}
else Console.WriteLine(errstr);

}
else if (args.Length == 1)
{
bool ok = int.TryParse(args[0], out mnr);

if (mnr <= 2500 && mnr >= 1)
{
Console.WriteLine(“\r\nMaschinennummer/machine number : {0}“, args[0]);
Registry.SetValue(“HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Lightworks\\Configuration“, „machine.num“, args[0]);
Console.WriteLine(copyright); Environment.Exit(0);
}
else
{
Console.WriteLine(errstr); Environment.Exit(1);
}

}
else
{
Console.WriteLine(“errstr“);

}

Console.WriteLine(copyright);
Console.ReadLine();
}
}
}
Last Edit: 5 months ago by lghtwrks.

Re: Using same machine number within a network 5 months ago #166257

  • lghtwrks
  • OFFLINE
  • Platinum Boarder
  • Posts: 2717
  • 5 months ago
ps. there is no "machine.num" in windows versions. never was.

Re: Using same machine number within a network 5 months ago #166268

  • hugly
  • OFFLINE
  • Platinum Boarder
  • Posts: 13787
  • 5 months ago
Reading through this discussion I assumed that it possibly worked in the past.

www.lwks.com/index.php?option=com_kunena&func=view&catid=21&id=56670&Itemid=81#56715

But well, they don't say anything explicitly about "machine.num"
It's better to travel well than to arrive...
Last Edit: 5 months ago by hugly.

Re: Using same machine number within a network 5 months ago #166273

  • hugly
  • OFFLINE
  • Platinum Boarder
  • Posts: 13787
  • 5 months ago
Looking at you script above more closely, I believe to understand that it can be used to update the registry based on machine.num

To make machine.num work, the script would be needed to be invoked each time before Lightworks is started. Do you have a version which doesn't use the console, updates the registry entry and starts Lightworks afterwards which can be used as a normal program (without UAC dialogue)?
It's better to travel well than to arrive...
Last Edit: 5 months ago by hugly.

Re: Using same machine number within a network 5 months ago #166334

  • cel13
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • 5 months ago
I am using Lightworks 14.0.0 on Windows 10 x64 and I noticed if I install it normally, then machine.num is created as per my entry during my installation. However, if I run the install with silent flag "setup.exe /S" then this key is not created.

Once you load up Lightworks there actually will be a number, not sure where it comes from, but it will be the same on every launch.

I noticed that whether using normal or /S (silent) install you can change (normal install) or add (silent install) the number easily.

You simply need to have a string called machine.num with wanted value. You can later check the number from the settings as well and it has not changed in my case

Location of machine.num:

HKLM:\SOFTWARE\WOW6432Node\Lightworks\Configuration

However, as I understood this is not needed for Free version anyway. So just in case, as I will be deploying the application I will run a script that creates unique numbers for each install.
  • Page:
  • 1
  • 2
Time to create page: 0.33 seconds
Scroll To Top