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
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)
Please log in to answer
Posted by:
sean_c_roberts
20 years ago
Posted by:
ds0934
20 years ago
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
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
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
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
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.
so that the conversation will remain readable.