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 for Programming
 LabTalk Forum
 Package installation with LabTalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ChristianJ

Germany
22 Posts

Posted - 09/13/2016 :  08:24:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2015G (64bit) Sr2
Operating System: Windows 7


Hi all,

I want to distribute some of my Filters and Templates and OriginC files to my colleagues. Therefore I managed to pack these files into several packages. Now I've one package which depends on another package and I wanted to install this other package automatically after the first package was installed.
I think these are the neccesary commands: http://www.originlab.com/doc/Origin-Help/FileShare-PackageManager#OriginC
But I've no idea how to use them from inside the package manager. Can anybody help me?

Thanks in advance.

Edited by - ChristianJ on 09/13/2016 08:57:53 AM

Chris D

428 Posts

Posted - 09/13/2016 :  10:34:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I suppose one could do the following:

In the "dependent" OPXs, add the following to the After Installation Script. It checks to see if a file in the "base package" has already been installed and if not, it installs the "base package".

if (exist("%Ybase_package\somefile.ogs") == -1) {string strBaseOPXPath="path\to\base_package.opx"; instOPX fname:=str;}

where %Y is the path to users User File Folder and the rest of the paths would need to be corrected for your particular case.

I haven't tested this but you can give it a try.

instOPX Docs: http://www.originlab.com/doc/X-Function/ref/instOPX

Thanks,
Chris Drozdowski
Originlab Technical Support

Edited by - Chris D on 09/13/2016 10:34:50 AM
Go to Top of Page

ChristianJ

Germany
22 Posts

Posted - 09/16/2016 :  05:26:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Chris,

your supposition works well, thank you very much! I'm just not sure about leaving the file-exists-check in there. When I just use instOPX, the user gets asked whether he wants to reinstall the "base package" if it is already installed or not.

Hm... I will think about it a while. But my initial problem was solved - again: thank you very much!
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