The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 OPK question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

marko

Germany
112 Posts

Posted - 09/14/2001 :  04:11:42 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear Origin programmers,

is there a method to uninstall installed OPK packages, or do I have to delete the corresponding files by hand? Would be nice if there would be an uninstall section in the install script, but up to now I couldn't find any hint.

Thanks,
Marko


Mike Buess

USA
3037 Posts

Posted - 09/14/2001 :  4:05:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'm afraid there is no uninstall method built into the OPK object. Unless the author provides his/her own uninstall procedure you have to delete the files yourself. When an OPK package is created the names of the files that are to be archived are read from a simple text file. I think it's a good idea for the author to at least include that text file in the OPK package so the user can know which files to delete.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 09/17/2001 :  02:37:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for this almost already expected reply! Still couldn't find anything else that what you said...

Anyway, you mentioned this text file which gets created. How is it called and where can I find it when I create my OPK.

Marko

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/17/2001 :  05:25:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The text file containing the file list is used when you make an archive with the opk object. (You create and name the text file yourself.) If you make an OPK using the "Customize Toolbar" dialog the text file w/file list is not automatically created.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 09/17/2001 :  06:41:35 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Looks like during Export of a button group from within Origin exists a temporary file called ExpGroup.tmp which is used by [ExportButtonGroup] in FILE.OGS.

Well, maybe it's better to write your own script for packing an OPK as you pointed out before, that you'd have more control over the whole packaging process.

Thanks,
Marko

Go to Top of Page

marko

Germany
112 Posts

Posted - 09/17/2001 :  09:51:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks again for your inspiration Mike.

I finally wrote my own little scripts which do pack my Origin packages eventually. It's much more convenient!

The only thing you need to bare in mind is that you shouldn't forget to include also the OPKsetup.ogs into your archive!!

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/17/2001 :  12:07:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I missed that temporary file somehow. Does it get deleted after the archive is created?

BTW... I've found that the OFileMan utility which is available on OriginLab's Add-on Modules page is quite useful for creating the file list and writing it to a file. In fact, I suspect that is what it was originally intended for.

BTW (2)... Also bare in mind that OPKsetup.ogs is overwritten when you install someone else's OPK file. I save my setup file under another name and use Origin's file -c command to copy it to OPKsetup.ogs just prior to creating my archive.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 09/18/2001 :  08:39:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the hint Mike.

I reprogrammed the Packager Dialog of Origin as a script using the OFileMan. Now I have full functionality of the Dialog as a script. Probably it would have been easier to seek in Origin's ogs files for that bit of code instead. Anyway, I learned a bit doing this.

Surprisingly I noticed that the OFileMan.DeleteFile method doesn't delete a file! Do you experienced the same strange thing?

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/18/2001 :  12:31:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think you've been misled by a mistake in the OFileMan documentation. The delete method is DelFile rather than DeleteFile as shown in the example. DelFile works fine, but remember to set path$ first.

Mike Buess
Origin WebRing Member
Go to Top of Page

marko

Germany
112 Posts

Posted - 09/19/2001 :  02:38:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks again Mike!!!

I missed that. Could have seen that with dumping the object by "FM.=" in the script window... ;)

Now it's getting perfect. Thanks also for the Path$ hint, I already tried to use a full path as file name.

Marko

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000