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

AddShortCut method applicable to ISWIFolder


1 reply to this topic

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 27 July 2004 - 18:15

AddShortCut method fails with Method ~ of object ~ when I try to call AddShortCut method:

CODE


Set ISWIComponent = ISProject.AddComponent(ComponentName)

ISWIFeature.AttachComponent ISWIComponent

ISWIComponent.AddFile sFile

ISWIComponent.Destination = "[INSTALLDIR]" & DestFolder(sFile,ISWIFeature.DisplayNameID)

for each m_pFolder in ISWIComponent.ISWIFolders

' Next line fails
m_pFolder.AddShortCut m_pFolder.Name

Next


In documentation:
Call AddShortcut to create a shortcut under the current program folder

Is there any limitation for using it?
Sincerely your,
Anton Spitsyn
http://www.installsite.ru

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 July 2004 - 07:17

You are trying to create a shortcut to the folder in which you are creating the shortcut? Doesn't make much sense to me.