Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2004, 06:24 PM
Member
 
Join Date: May 2004
Posts: 78
Default Network installation

I have used SWFKit to create a program that generates .swf games - using the swfGen.dll file.

The progam works fine.

However, as the program is for teachers and students some users are keen to install it on a network. It seems that the only way to install the program is to have the swfGen.dll installed on each PC.

For a network installation this obviously means that each computer has to be installed individually.

Is there any way round this?
__________________
:)
Reply With Quote
  #2 (permalink)  
Old 11-20-2004, 06:24 AM
Member
 
Join Date: Jan 2003
Posts: 56
Default Re:Network installation

Try including the SWFgen.dll in the projector's additional files (so it unpacks the dll every time the program is run), then have the following code from this forum topic -- see link below; you may have to tweek it -- in the projector's Initalize script:

http://www.topcmm.com/forum/index.ph...sg2345#msg2345



Saving you a bit of time, here's most of the code, but not everything (missing the keycode init (can be found at this topic: http://www.swfkit.com/forum/index.ph...sg1602#msg1602) for SWFGen that also belongs in the Initilize script):

Code:
var zGen = 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");
}
//end of starting stuff, now moving into the actual work
Reply With Quote
  #3 (permalink)  
Old 11-20-2004, 07:35 AM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Network installation

Thanks again.

I will certainly try this and report back how well it works.

It certainly sounds the ideal solution. I think my only concern will be whether a normal user has access rights to the system folder, or indeed whether the user needs access rights to run this.
__________________
:)
Reply With Quote
  #4 (permalink)  
Old 11-21-2004, 01:45 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Network installation

Unfortunately I cannot get this to work. I've got the following code:

Code:
//Initialize

var zGen = 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("*** This is where my SWFGen number is ***");
It seems that the SWFGen.dll just isn't recognised.

Installing and SWFGen.dll via the recommended method (i.e. via when the program is first installed) works fine.

Any ideas?
__________________
:)
Reply With Quote
  #5 (permalink)  
Old 11-22-2004, 02:14 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Network installation

The "swfgen" variable is undefined, please use "zGen" instead.
Reply With Quote
  #6 (permalink)  
Old 12-04-2004, 10:04 AM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Network installation

Ok - thanks - I think I have now got this working

I've also downloaded the new 2.2 update, which seems to work brilliantly. ;D

One question though.

Are there any disadvantages to this method of registering the SWFGen.dll? This method unpacks the .dll every time the program is run, but is there any problem doing this?
__________________
:)
Reply With Quote
  #7 (permalink)  
Old 12-08-2004, 01:55 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Network installation

Quote:
Are there any disadvantages to this method of registering the SWFGen.dll? This method unpacks the .dll every time the program is run, but is there any problem doing this?
Any answer to this please?
__________________
:)
Reply With Quote
  #8 (permalink)  
Old 12-13-2004, 07:34 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Network installation

The code register the swfgen.dll for only one time. Please don't worry about it.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:33 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.