Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to Run Batch file in MSI


3 replies to this topic

Vijay_k

Vijay_k
  • Full Members
  • 34 posts

Posted 17 May 2007 - 10:19

Dear All,

I am working with one application in which I need to run a batch file (.bat)
I am using Wise Package Studio.

Does any custom action supports this?
Or do we need to write a wise script or vb script for the same.
If yes, could you please help me out.

Thanks in advance.

Regards
Vijay

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 17 May 2007 - 10:22

Perhaps try passing the batch file to a new instance of cmd.exe (custom action type would be run exe file) : [SystemFolder]cmd.exe /c [MYFOLDER]MyBatchFile.cmd. Keep in mind that you might need to run the batch file in either user or system context depending on what the script is doing.
Regards
-Stein Åsmul

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 17 May 2007 - 10:23

Also keep in mind that you need to test this on all your target OS platforms.
Regards
-Stein Åsmul

Vijay_k

Vijay_k
  • Full Members
  • 34 posts

Posted 17 May 2007 - 10:56

Yeah, I got it.
It is working.

Thanks a lot.

---- Vijay