I have an MSI installation which creates 4 shortcuts.
On initial installation all 4 shortcuts are created correctly
After running a repair installation, one of the shortcuts gets corrupted - rather than pointing to C:\Program Files\MyProduct\Shortcutdir it points to C:\Shortcutdir.
The other 3 shortcuts remain okay.
All other aspects of repair installation are okay (files are reinstalled to the right place etc). It is just this one shortcut which gets corrupted.
Having looked at the MSI tables in ORCA I can find no reason why this should happen. The directory the shortcut points to is set up using the properties table, and the entries are similar for this shortcut as they are for the 3 others.
Also, all 4 shortcuts are linked to the same component.
I think the problem has something to do with MSI not getting the correct TARGETDIR value at the beginning of the repair installation - since the shortcut directory is set relative to TARGETDIR value - but why should this only affect one shortcut and not any of the others?
Has anyone else had similar problems?
Thanks
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.
Shortcut corrupted after repair installation
Started by
jasongibbons
, Jun 21 2007 15:16
1 reply to this topic
Posted 13 July 2007 - 20:23
How is the targetdir set during the main installation, and how is it picked up during the repair? If you track it though carefully in both cases you will most likely find the missing step.
I normally record my installation directory in the registry, that way I can add an entry to the appsearch table to populate it correctly when doing upgrades and repairs.
I normally record my installation directory in the registry, that way I can add an entry to the appsearch table to populate it correctly when doing upgrades and repairs.