Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vfp6.o Setup wizard issue

Status
Not open for further replies.

Mrall

Programmer
Nov 22, 2008
64
US
I use vfp6.0 and the setup wizard that comes with foxpro. The setup wizard does create an installation package that will install my custom application on the clients computer. The problem is that is does not create a menu icon or a shortcut to my program.

What can I do or use to solve this problem?

I have found others install applications but I still have to use the foxpro setup to put the custom application where the customer wants it and install the dlls and whatever else needs to be install (like the runtime files) so I'm not sure how to make other installation applications work with it.

Is there an .exe or .com that will (locate, search or find) a specfic .exe and make a desktop shortcut or place a program icon in the startmenu? It will have to search for the file because I won't know for sure where the customer will install the program. I know what the default directory will be but it can be anything.

Thanks
 
While the above link is helpful because it does explain how to make a desktop shortcut for windows 98 it does not for xp or vista because desktop file is located in a different place based on what operating system.

My VFP6.0 does NOT create a start menu entry (unlike the link above said it does) and I can't figure out why. I am making a network image so I can put the entire thing on one cd. Does this have anything to do with it?

Thanks
 
Is there an option to run an external program after installation finishes? I seem to remember that.
If so you might use something like
Code:
'Create a Desktop ShortCut
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut To Notepad.lnk")
oShellLink.TargetPath = "Notepad.exe" 'WScript.ScriptFullName
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+N"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Shortcut To Notepad."
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
in a VBS file that would do what you want, although it would require wsh be installed on the machine first.
Above texted in win2000, may need changing to work in other versions.
wjwjr

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
I was not only able to create a desktop shortcut but also a program icon the the start menu

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top