Hi,
I have to create a shorcut to "C:\Documents and Settings\All Users\Favorites" which points to a URL.I have to just create a shortcut.There are no files and no registries in wsi.If i make it through the shortcut tab,it points to location Windows\Profiles\Favorites and will not appear in all users profiles untill unless we do not repair it through the Add/remove program.
Can i do it without using a custom action.

Logitab
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Well...

The PROBLEM is likely that since there is no icon and no exe to run, there is nothing to trigger the self-repair when different user profiles login...

The only thing I can think of that might solve this is to invoke ActiveSetup... which would update your shortcut for you...
Answered 08/18/2004 by: sean_c_roberts
Senior Purple Belt

Please log in to comment
0
You can script a URL shortcut (which is a different beast than a file shortcut) using WSH from almost any scripting interface (Kix, VBS, JS, etc.) The snippet below creates a URL shortcut using VBscript. You might want to embellish this to use FileSystemObject to verify the path %AllUsersProfile%\Favorites exists and is accessible before writing to it. Otherwise you can default back to %UserProfile%\Favorites or Desktop, etc.

Dim wshShell, strProfile, strDesktop, strFavorites, oUrlLink
set WshShell = WScript.CreateObject("WScript.Shell")
strProfile = WshShell.ExpandEnvironmentStrings("%AllUsersProfile%")
strDesktop = strProfile & "\Desktop"
strFavorites = strProfile & "\Favorites"
set oUrlLink = WshShell.CreateShortcut(strFavorites & "\AppDeploy Home Page.url")
oUrlLink.TargetPath = "http://www.appdeploy.com"
oUrlLink.Save
Answered 10/24/2004 by: ds0934
Orange Senior Belt

Please log in to comment
0
Hi ds0934,
I have a same problem. I have a shortcut on desktop but one of the dept. wants me to change the target to different folder. So I have to know how can I search for a registry entry to specify the dept. and if its TRUE then make the changes to desktop shortcut.
I'm new to InstallShield. Please help me resolve this issue. I'm running IS 10.5 Studio 6
Thanks
Answered 08/16/2005 by: Result
Orange Belt

Please log in to comment
0
Hi,

We can repair application using HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components and name the folder as ur product id of the application, under that create a key named stubpath and give the command as msiexec /f {Your full path of the application}. App will repair and install user related information for each and every user logs in.


Ani
Answered 09/06/2005 by: anitha_accen
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity