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

Calling Dos program


2 replies to this topic

post2kc

post2kc
  • Members
  • 10 posts

Posted 06 June 2002 - 12:02

Hi,
I created a custom action with the following feature:
Type=34
Source=SystemFolder
Target=cmd \c d:\thedosprg.exe

to call a dos program.

During run time, i got this following error:
Internal Error 2744. Customer_Action_NAme,
C:\winnt\system32\, cmd /c d:\thedosprg.exe

Can anybody help?

Thanks

KC

hteichert

hteichert
  • Members
  • 158 posts

Posted 10 June 2002 - 08:36

There are two things that I would change in your CA:
- CMD is not simply CMD; it's CMD.EXE
- Change your custom action to ignore the return code (add 64 to your CA-type) -> 34+64=98 if your dosapp doesn't return the right return values needed by MSI.
For further info about return codes in msi-installations look for "Custom Action Return Processing Options" and "Custom Action Return Values" in the windows installer documentation (msi.chm)
h.teichert-ott

hteichert

hteichert
  • Members
  • 158 posts

Posted 10 June 2002 - 08:47

Aaah, I forgot:
Your custom action only works on NT, W2K and XP; but not on the Win9x systems. The command line interpreter on 9x is called "command.com", not "cmd.exe". When you want to create a CA that works on all systems, it's necessary to search for the current commandline interpreter - it can be found in the environment variable "comspec".
h.teichert-ott