cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
BINUTB
Level 5

How to replace drive with INSTALLDIR in Install script

Jump to solution

 

Hi,

Added below code in Install script function. How to change C: with INSTALLDIR in below

line szProgram = "C:\\UTL\\SchScript\\Schedulers.bat" ;

function ExFn_TaskScheduler(hMSI)

STRING szProgram, szCmdline;
begin

szProgram = "C:\\UTL\\SchScript\\Schedulers.bat" ;
LaunchApp (szProgram,szCmdline);

end;

 

Regards

Binu

Labels (1)
0 Kudos
1 Solution

Hi Varul,

 

Thanks, will check and revert.

 

Regards

Binu

View solution in original post

0 Kudos
2 Replies
varul
Revenera Moderator Revenera Moderator
Revenera Moderator

You can try below script to change Installdir instead of C:

 

function MyFunction(hMSI)


STRING szProgram, szCmdline;
begin

szProgram = INSTALLDIR + "UTL\\Script\\test.bat" ;
MessageBox (szProgram,1);
szCmdline = "";
LaunchApp (szProgram,szCmdline);

end;

0 Kudos

Hi Varul,

 

Thanks, will check and revert.

 

Regards

Binu

0 Kudos