youngkyu
Flexera beginner

how to install rabbitmq with created environment variable by installshield during installing

hello.  
Somebody help me to solve the problem I faced.

my PC OS version is windows 10 64bit and using installshield 2010 Premium version, project type is installscript MSI.

this question purpose is to install RabbitMQ(3rd party program) with created environment variables by installshield installer during installing of installshield installer

at first, installshield installer was create 4 environment variables as below.

// Set Path environment
//HOME, JAVA Home,rabbitmq_base, rabbitmq_nodename Environment registration
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;
szKey = "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment";

// define environment variables values
JAVA="JAVA_HOME";
bIoT="HOME";
R_NODE="RABBITMQ_BASE";
R_BASE="RABBITMQ_NODENAME";

// set environment variables
RegDBSetKeyValueEx(szKey,JAVA, REGDB_STRING,"C:\\Program Files\\Java\\jre1.8.0_202", -1);
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;

RegDBSetKeyValueEx(szKey,bIoT, REGDB_STRING,g_szBiotPath+"\\", -1);
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;

RegDBSetKeyValueEx(szKey,R_NODE, REGDB_STRING,g_szBiotPath+"\\rabbitmq", -1);
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;

RegDBSetKeyValueEx(szKey,R_BASE, REGDB_STRING,"biotmq@localhost", -1);
REGDB_OPTIONS = REGDB_OPTIONS | REGDB_OPTION_WOW64_64KEY;

szEnv = "Environment";
pEnv = &szEnv;
SendMessage(HWND_BROADCAST,WM_SETTINGCHANGE,0,pEnv);

then, some logics were work. (almost logics were installing 3rd party programs)
after that, installer is installing rabbitMQ as below.

//RabbitMQ Installation environment
svDir = g_szEnvironmentPath^"rabbitmq-server-3.8.3.exe";
szCmdLine = "/S";
// RabbitMQ insalltation start text
SetStatusExStaticText( "\n\n RabbitMQ Program installing...");
//RabbitMQ Installation LaunchAppAndWait(svDir,szCmdLine,LAAW_OPTION_WAIT_INCL_CHILD | LAAW_OPTION_WAIT | LAAW_OPTION_NO_CHANGEDIRECTORY);
//RabbitMQ insalltation done text
SetStatusExStaticText( "\n\n RabbitMQ Program installation is done");

when I check rabbitMQ status after finished installing of installshield installer, rabbitmq installed that didnt refer to environment variables.

of course, I checked environment variables were create in my PC. these are created.

to solve, I tried many ways.
created a batch file and install rabbitMQ on batch,
change create environment variables ordering etc..
but I couldnt resolve that.

so, how can I install rabbitMQ refer to environment variables?

please let me know how I do.

Labels (1)
0 Kudos
1 Reply
siuslam
Flexera beginner

Re: how to install rabbitmq with created environment variable by installshield during installing

Have you tried modifying the rabbitmq-env.bat file?  I've added using ( FileInsertLine ) the following environment variables at the end of the file.

set HOMEDRIVE = your desired location

set ERLANG_HOME=  your erlang location

These are using by RabbiMQ when you run other RabbitMQ CLI tools.

0 Kudos