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

Creating shortcuts


3 replies to this topic

dimitri

dimitri
  • Members
  • 3 posts

Posted 06 February 2002 - 08:50

Hi,

We are trying to create a new installation using Installshield for Windows Installer. In previous installations we used to create shortcuts on the user's machine. If the target machine runs NT/2000/XP we created shortcuts with as working folder the literal string: %HOMEDRIVE%%HOMEPATH%.
Then any logged on user would always start in his or her homedirectory on the machine.

Now, using Windows Installer, we tried everything, but we always seem to end up with either an error during installation, or with an expanded homedirectory (i.e. the one of the user who has installed the product).

Does anyone know how to get the literal string %HOMEDRIVE%%HOMEPATH% in the working directory of the shortcut, so it is expanded when the user clicks the shortcut?

Dimitri


tdgebbie27

tdgebbie27
  • Members
  • 5 posts

Posted 08 February 2002 - 21:57

I would write a script function that gets those values from the enviroment settings and either put them into a string or assign the values to a public property in the install.

TDG


Barbara

Barbara
  • Members
  • 89 posts

Posted 12 February 2002 - 15:24

Adding Shortcuts with InstallScript causes sometimes the installation to fail on a TerminalServer. I am adding the ShortCuts with IS Script because I need non-expanded Environment Variables in the shortcuts.
I couldnt solve the problem yet.

Barbara


dimitri

dimitri
  • Members
  • 3 posts

Posted 12 February 2002 - 18:32

Hi Barbara,
Thanks for your reply. Could you send me an example of your IS code? So I have an idea how to set it all up.

The fact the installation sometimes (what does that mean?) fails on terminal servers is also a problem for me, but I might be able to figure out what is the problem.

Dimitri