cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
derek_shen
Level 2

Help! Enable environment variable during installation

Somebody can help the problem that I met.

I use installshield to install the ActiveMQ.  At first, I create a system variables(JAVA_HOME) , then I invoked lauchAppAndWait  launching a cmd.exe to create a mq broker.

But the windows don't allow same installation program to use new created variable JAVA_HOME . 

I have to install it twice to enable this key.  

Do you have any ideas to solve the problem ?

0 Kudos

(2) Replies
Jenifer
Flexera Alumni

Hi @derek_shen ,

 

  • Hope you have followed settings given here as per installation(On Install-set/create) requirement:

https://docs.revenera.com/installshield24helplib/helplibrary/IHelpISXEnvironmentVariablesProperty.htm#ref-views_590435047_1126330

  • What is the sequence of function you are calling lauchAppAndWait from Install-Execute,which you might see under Custom Actions->Sequence->Execution
  • There is a custom action called "WriteEnvironmentStrings" which might be dealing with all the environment variable related settings
  • You can keep the custom action you call cmd.exe after WriteEnvironmentStrings action.

Thanks,

Jenifer

0 Kudos


@Jenifer wrote:

Hi @derek_shen ,

 

  • Hope you have followed settings given here as per installation(On Install-set/create) requirement:

https://docs.revenera.com/installshield24helplib/helplibrary/IHelpISXEnvironmentVariablesProperty.htm#ref-views_590435047_1126330

  • What is the sequence of function you are calling lauchAppAndWait from Install-Execute,which you might see under Custom Actions->Sequence->Execution granny
  • There is a custom action called "WriteEnvironmentStrings" which might be dealing with all the environment variable related settings
  • You can keep the custom action you call cmd.exe after WriteEnvironmentStrings action.

Thanks,

Jenifer


Thank you so much for your help. 

0 Kudos