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

Create or modify BAT-file

Hello, *

I need to modify (or create the new one) BAT-file and replace some variables (strings) in this file to property values.

How can I do this during installation my InstallScript MSI Project?

The general purpose is to create a scheduled task, but reading the forum I found that it is impossible in Installshield and I should use third-party tools.

Thanks in advance.
Labels (1)
0 Kudos
(2) Replies
Chikura
Level 3

Please check if EzBatchReplace() Installscript function will help you,,,

you can write an Installscript function which will do required things(replacing properties usin EzBatchReplace ) and then add a CustomAction which uses the written Installscript function and schedule it accordingly.

If you want it to be done after the copying of files is done schedule it after "InstallFiles" and make the custom action "deferred"

Hope it helps,,,,,,,,,,
-Chikura:)
0 Kudos
Moscow
Level 2

Chikura, thank you very much.
I will try to do this.
0 Kudos