cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Patrick_Simons
Level 5

Bug: Creating Shortcut on Vista

My Basic MSI Package creates shortcuts among other things. Installing it on Win XP, everything's fine.
But when installing the package on Vista, the target path isn't correctly translated:

In IS2008:
target = "[INSTALLDIR]Prg\WinApp\MyApp.exe"
working directory = "{WinApp}[INSTALLDIR]Prg\WinApp"

Installing the package on Vista for ex. to InstallDir "C:\Temp" sets the shortcut's target to "C:\Prg\WinApp\MyApp.exe" (which is wrong - "Temp" is missing) and the "Start in" to "C:\Temp\Prg\WinApp" (which is correct).

Any ideas? A new bug?
Labels (1)
0 Kudos
(1) Reply
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

The Target field of a shortcut is resolved by Windows Installer at runtime. I'm not sure why MSI would exclude C:\Temp from the target path, unless INSTALLDIR contained an incorrect value (unlikely, though, since the working directory is correct).

You may want to try logging the installation to see if INSTALLDIR is changing unexpectedly at any point and to see what the CreateShortcuts action is doing. Another thing you might try is to run full MSI validation against your built MSI package to ensure there aren't any errors with the Directory or Shortcut tables (ignoring ICE43 and ICE57 if you aren't using advertised shortcuts).
0 Kudos