AddShortCut method fails with Method ~ of object ~ when I try to call AddShortCut method:
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.
AddShortCut method applicable to ISWIFolder
Started by
AntonS
, Jul 27 2004 18:15
1 reply to this topic
Posted 27 July 2004 - 18:15
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?
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.
Stefan Krüger
InstallSite.org twitter facebook