I made an OPK file that adds something to the main menu by adding a CNF file to the line "File1=Macros FullMenu" in Origin.ini. How can I remove a CNF file from Origin.ini automatically with the OPK uninstalling process?
Uninstalling an OPK simply removes the files that the OPK installed. The uninstall tool is not aware of any changes the tool made during it's installation nor after the installation. The tool maker would need to provide their own code to undo any changes they made during and after installation.
Hi eparent, that's what I would expect. But how is the code (that I have to write) executed? When the OPK file is opend, the ...setup.ogs contained in the OPK file is automatically executed. Is there a similar automatism when the OPK file is uninstalled? I couldn't find anything in the programming help. The help on this subject is very sparcely and differs partly from from the examples downloaded from originlab.com. According to the programming help of Origin7.5 the Labtalk install script included in the OPK file must have the name [name_of_opk_file]setup.ogs but in all addons I ever saw it had the name opksetup.ogs.