jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Select file and copy in APPDIR before install

Sat Nov 13, 2021 9:05 pm

Hello,
I would like before installation, ask the user to select a license file.
Before installation I want to copy this file to a subdirectory of APPDIR.
I need to use this file in my customs actions.
is it possible?
I followed this tutorial and I added a custom action which copies the file with MY_FILEPATH property to my subdirectory in APPDIR but it doesn't work.
Thank you.

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: Select file and copy in APPDIR before install

Mon Nov 15, 2021 9:38 am

The selection of the file works, I get the path in my "NUANCE_LICENCE" property.
Now I would like to pass this property to a prerequisite during installation (I want to give the file that the user has selected to the installer). But it doesn't work, the feature doesn't install.

Code: Select all

/silent ISFeatureInstall="NLM,NSS" LICENSE="[NUANCE_LICENCE]" JAVA_HOME="[ProgramFiles64Folder]OpenJDK\jdk-11" SUPPLEMENTSPATH="[languages_1_Dir]"

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Select file and copy in APPDIR before install

Mon Nov 15, 2021 2:04 pm

Hello,

First of all, does your prerequisite accept a command line such as the one you pass (i.e. "LICENSE")?

For instance, if you launch it separately with that command line, is everything working as expected?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: Select file and copy in APPDIR before install

Mon Nov 15, 2021 2:44 pm

Hello,
Thank you for your answer.
when i run powershell on target machine (with openJDK directory and files) it works fine.
when i pass parameters in advanced installer it doesn't work. Nuance is not installed.
I can't find the problem

https://ibb.co/KDzqdbv

LICENSE is the license file that the user selects during installation (dialog).

JAVA_HOME is the OpenJDK directory that I copy to Program Files (I see that it is copied at the end of the installation after the feature installations)

SUPPLEMENTSPATH corresponds to the language directories that I copy into Temporary / languages ​​(Same I see that it is copied at the end of the installation)

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Select file and copy in APPDIR before install

Wed Nov 17, 2021 11:21 am

Hello,

First of all, just so I can better understand what is the problem here, are you saying that the prerequisite is not installed at all?

From what I can see in your screenshot, you have the OpenJDK folder under "Program Files 64" folder, however, you are passing a different path, namely "OpenJDK\jdk-11". I am not 100% aware of your scenario, but I thought pointing this out might help.

In order for me to further investigate this on our end, please forward me the following resources:

- a copy of your. AIP file

- a download link for the setup

by email at support at advancedinstaller dot com. If possible, please also forward me a step-by-step test case which I can follow in order to reproduce this on my end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: Select file and copy in APPDIR before install

Thu Nov 18, 2021 2:07 pm

Hello,
Thank you, I sent you an email

Take the second mail please
and in the prerequisite "Nuance Speech Suite"> Setup Install> Removed the parameter "SUPPLEMENTSPATH"

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Select file and copy in APPDIR before install

Thu Nov 18, 2021 2:34 pm

Hello Jérôme,

I have answered you over the email.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: Select file and copy in APPDIR before install

Mon Nov 22, 2021 10:38 am

Hello,
I sent you the .exe by email.
Did you find a solution?
Thank you

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Select file and copy in APPDIR before install

Mon Nov 22, 2021 1:19 pm

Hello Jerome,

This is currently still under our investigation.

I will followup on email once I have a conclusive answer.

Thank you for your patience.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”