• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to find exe location using Registry Key

Community Beginner ,
Nov 28, 2022 Nov 28, 2022

Copy link to clipboard

Copied

Hi,

I am trying to use 

var createProcessResult = window.cep.process.createProcess("C:/Program Files (x86)/Microsoft Office/root/Office16/WINWORD.EXE");
to launch Word Application.
But since the path to the WinWord exe can be different for users. So I am looking for a method to find the WinWord exe path programmatically. Probably by reading registry key values.
Please let me know if any CEP API can help me in doing this.
TOPICS
How to , Scripting

Views

174

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Nov 29, 2022 Nov 29, 2022

I would rather consider using VB that you can run from app.doScript. 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html#d1e42253__d1e45802

Don't have windows at hand but your vb might be like this:

Set appWD = CreateObject("Word.Application")

And you wouldn't worry about the exe location.

Plus you could automate more than just opening the app.

FWIW

Loic

Votes

Translate

Translate
People's Champ ,
Nov 29, 2022 Nov 29, 2022

Copy link to clipboard

Copied

LATEST

I would rather consider using VB that you can run from app.doScript. 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html#d1e42253__d1e45802

Don't have windows at hand but your vb might be like this:

Set appWD = CreateObject("Word.Application")

And you wouldn't worry about the exe location.

Plus you could automate more than just opening the app.

FWIW

Loic

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines