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

Custom Action


2 replies to this topic

Island28

Island28
  • Members
  • 10 posts

Posted 13 December 2005 - 20:15

I had a .bat file that I needed to run after installation, and could not get the LaunchAppAndWait function to work correctly on XP. I created a Custom Action which I call, which runs a VBScriptCode segment stored in my custom actions. I need to passin|read my INSTALLDIR? How can I accomplish this?
Thank you very much

BFealy

BFealy
  • Full Members
  • 35 posts

Posted 14 December 2005 - 15:49

I believe what you're looking for is to retrieve the property value using something along the lines of:

path = session.property("INSTALLDIR")

Brian

Usman Javaid

Usman Javaid
  • Members
  • 15 posts

Posted 14 April 2006 - 11:25

For running batch file on WinXP and on Win2000

The command below execute cmd.exe and passed the name of batch file without file extension. i.e. the file name is install.bat

LaunchAppAndWait ("cmd.exe", "/c cmd /c install",WAIT|LAAW_OPTION_HIDDEN)

Point ur directory to the source location of the batch file (where install.bat resides).