>Currently I am using the VFP Installer which does a good job of putting the right pieces together to make up an Inatallation CD. But one thing it doesn't do is create the Launch Icon.
>
>Now I got poking around in this before and I learned about the Windows Scripting Host and I got code as below to work for Windows 95/98:
>
>OWSH = CREATEOBJECT("wscript.shell")
>CDESKPATH = OWSH.SPECIALFOLDERS("desktop")
>OSHORT = OWSH.CREATESHORTCUT(CDESKPATH+"\TIME TABLE VISUALISER 2.0.LNK")
>TP = HDRIV + "\TTVIZ.EXE"
>OSHORT.TARGETPATH = TP
>OSHORT.WORKINGDIRECTORY = HDRIV
>OSHORT.ICONLOCATION = "TTVIZ.ico"
>OSHORT.SAVE
>
>In this case, the operator enters the variable HDRIV for the directory that they installed to and the code above does the rest.
>
>But it does not work for Windows NT.
>
>Has anyone got invoved with the Windows Scripting Host for Windows NT and how this should be rewritten?
>
Mike,
I'm assuming that you're working in the above from a post-setup executable. Does the application do any checking for the presence of the directory.
What I do is install the post-setup executable in the directory the user indicates (either the default or their choice) and check its location (via SYS(16, 1)) for things like the location of the temp files for the config file, and the working directory of the short cut.
Having worked with the WSH under both Win9x and NT, I don't think that this is so much an OS issue as one of design.
George
Ubi caritas et amor, deus ibi est