This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to replace drive with INSTALLDIR in Install script
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 04, 2021
01:55 PM
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
- Tags:
- install script
(1) Solution
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 05, 2021
04:02 AM
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;
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)