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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Package installation with LabTalk

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ChristianJ Posted - 09/13/2016 : 08:24:25 AM
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.
2   L A T E S T    R E P L I E S    (Newest First)
ChristianJ Posted - 09/16/2016 : 05:26:25 AM
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!
Chris D Posted - 09/13/2016 : 10:34:31 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000