Hi all,
I'm having real problems with the registration of the dll file. After installation the SWFgen.dll is added to the machine (searched for the file and it's there) but not registered. I had to register the file manually then it worked. Please advise how I can get the swfgen.dll to register properly (clearly I'm not doing it correctly). I have packed the created .EXE files inside a .MSI file for network installation.
This is the registration code I'm using:
Code:
//Initialize
ActiveXObject.addObjectInfo(getAdditionalFile("SWFGen.dll"),
"SWFKit.ZGen",
"{323B0545-B170-4AFC-920C-6D8F195364}",
"{4A48C49F-7F02-4F52-AFC8-05C208456BCA}");
// other code added here
var swfgen = new ActiveXObject("SWFKit.ZGen");
if (zGen == null)
{
//SWFGen has not been registered yet, register it
//extract the dll, the variable swfgen contains the full path name of it
var swfgen = getAdditionalFile("SWFGen.dll");
//copy it into the system folder
var sysfile = Shell.getSpecialFolder("system") + "\\SWFGen.dll";
(new File(swfgen)).copy(sysfile);
//register it
ActiveXObject.register(sysfile);
//create the object again
var zGen = new ActiveXObject("SWFKit.ZGen");
}
// Initialise SWFGen
swfgen.init("my serial to unlock swfgen.dll");
// other code for the program added here
return true;
Any idea what I need to do in order for the dll file to register?