/build/static/layout/Breadcrumb_cap_w.png

Shortcut to "C:\Documents and Settings\All Users\Favorites"

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

Answers (4)

Posted by: sean_c_roberts 20 years ago
Senior Purple Belt
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...
Posted by: ds0934 20 years ago
Orange Senior Belt
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
Posted by: Result 19 years ago
Orange Belt
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
Posted by: anitha_accen 19 years ago
Blue Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ