Skip to main content
1-Visitor
September 23, 2020
Solved

Installing CREO OTK application of client's machine

  • September 23, 2020
  • 1 reply
  • 1976 views

Hi,

 

I am developing a application in OTK C++. I want to deploy it on client's machine.

But I don't want user to go to 'Auxiliary application' every time, selecting creo.dat file and registering the application.

 

Currently I know a way- doing it first time and using option - Save the Auxiliary Application User Interface.

But the process still needs to be done atleast one time manually.

 

Is there any way, with which we can add a ribbon, buttons and these ribbon will be there even in new session by any other way, like running a .bat file or .exe or some thing simpler solution than Save the Auxiliary Application User Interface.

 

Thanks

Best answer by sully7

If I understand you correctly, I think you actually have a two separate questions here:

  1. How to load the application into session automatically so the user doesn't have to go into Aux Apps
  2. How to load the buttons into the ribbon when the application loads, so the icons show in the correct place

For Number 1: 

  • If your end-user adds the config.pro setting for "creotkdat", with a value of the location of the ".dat" file, then Creo will load that DLL or EXE on startup. 
  • Make sure the ".dat" file is set to "DELAY_START FALSE"

For Number 2: 

  • As a part of your application's "text" directory, you can provide a "ribbon.ui" file that adds the buttons as you want. The toolkit application will load the buttons automatically when the application loads
  • You can create that ribbon.ui file using the "Save Auxiliary Application User Interface"
  • It should load automatically on its own... but if you rename the file or move it around to a different folder, you can use method ProRibbonDefinitionfileLoad to specifically load the ribbon file you want

 

Hope this helps!

 

Thanks, 

James Sullivan

1 reply

sully714-AlexandriteAnswer
14-Alexandrite
September 23, 2020

If I understand you correctly, I think you actually have a two separate questions here:

  1. How to load the application into session automatically so the user doesn't have to go into Aux Apps
  2. How to load the buttons into the ribbon when the application loads, so the icons show in the correct place

For Number 1: 

  • If your end-user adds the config.pro setting for "creotkdat", with a value of the location of the ".dat" file, then Creo will load that DLL or EXE on startup. 
  • Make sure the ".dat" file is set to "DELAY_START FALSE"

For Number 2: 

  • As a part of your application's "text" directory, you can provide a "ribbon.ui" file that adds the buttons as you want. The toolkit application will load the buttons automatically when the application loads
  • You can create that ribbon.ui file using the "Save Auxiliary Application User Interface"
  • It should load automatically on its own... but if you rename the file or move it around to a different folder, you can use method ProRibbonDefinitionfileLoad to specifically load the ribbon file you want

 

Hope this helps!

 

Thanks, 

James Sullivan

1-Visitor
September 30, 2020

Hi James,

 

Thank you very much for your help.

 

Thanks