Create Shortcut as Part of Installation Process (VB6)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    Create Shortcut as Part of Installation Process (VB6)

    As part of my Installation Process for a Program that I created, I would like to create a Shortcut to the Installed Executable on All Users Desktop. I modified Setup.lst, in the [Setup] Section, as indicated below, to force Installation to a Default Directory. The Application Name is predefined, and I know how to create the Shortcut via Windows Script Host. My question is where, exactly, do I place the Code to create this Shortcut? I'm assuming that I would need to insert the Code in the Load() Event of Setup1.frm, but not really sure. Thanks in advance.
    Code:
    [Setup]
    Title=Where to put Shortcut
    DefaultDir=$(ProgramFiles)\Where to put Shortcut
    ForceUseDefDir=1
    AppExe=Shortcut.exe
    AppToUninstall=Shortcut.exe
Working...