Michael:
you wrote:
>I would like to launch an HLP file with a user-macro. Tried various
>permutations of
>System('%SystemRoot%\System32\winhlp32.exe "D:\Programme\Inno Setup
>4"\ISetup.hlp',NOWAIT)
>with different args, changed the '" etc., but this all resulted in "Can
>not shell out, error #2 or #65".
Try it with one of these:
1) System('%SystemRoot%\System32\winhlp32.exe "c:\vedit\veditpw.hlp"',
DOS+SIMPLE+NOWAIT)
2) System('start "c:\vedit\veditpw.hlp"', DOS+SIMPLE+NOWAIT)
3) System('"c:\vedit\veditpw.hlp"', DOS+SIMPLE+NOWAIT)
The "DOS+SIMPLE" option starts a DOS box in background which in turn
starts the help. On my W2K all three versions are working fine.
The exact behaviour is dependent on the used OS version
For example in the original VEDITPDF.VDM you can find a typical:
if (Is_WinNT) { //If WinNT/2000...
System(`"|(HOME)\|@(103)"`,DOS+SIMPLE+NOWAIT)
} else {
System(`start "|(HOME)\|@(103)"`,DOS+SIMPLE+NOWAIT)
}
Return
Christian
PS: Sollen wir drei die DVUG (Deutsche VEDIT User Group) gründen?
(Halt, stop, das war nur ein Scherz! ;-) )
|
|