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

GetShortcutTarget() Method


1 reply to this topic

ijahman

ijahman
  • Members
  • 15 posts

Posted 06 March 2003 - 15:05

I try to figure out if a shortcut is a real msi shortcut or not (outside of an msi installation)

like this i started to use method GetShortcutTarget()

in sdk: object.GetShortcutTarget(Shortcut)
with
object = windows installer object.

but if i try

set i = createobject("WindowsInstaller.Installer")
i.GetShortcutTarget(<valid path to lnk file>) i get the error

Error: Object doenn'*t support property or method i.GetShortcutTarget
Code: 800A01B6

system: w2K, sp3 + sp2 (not dependent on engine)

any helping hand around?

dbareis

dbareis
  • Full Members
  • 85 posts

Posted 13 March 2003 - 02:51

Hi,

I get the same here on W2K, I'd say it doesn't exist...

There does appear to be a "ShortcutTarget" however, if so it takes different parameters.
---
Dennis Bareis (dbareis@No.Spam.gmail.com)
Free MSI update/creation tool (MAKEMSI):
http://users.cyberon...eis/makemsi.htm