xavier73 Posted October 13, 2007 Share Posted October 13, 2007 What is the difference in folder location for the desktop and startmenu between XP an Vista.Is it possible to copy the shortcuts to the startmenu for xp as well as for vista with a command like:"%AllUsersProfile%\Start Menu\Programs"Or will this only work for vista ?I want to make a silent installation that works on both xp and vista. Link to comment Share on other sites More sharing options...
ckislam Posted October 14, 2007 Share Posted October 14, 2007 This Link may help you.http://www.svrops.com/svrops/articles/jpoints.htm Link to comment Share on other sites More sharing options...
MHz Posted October 15, 2007 Share Posted October 15, 2007 What is the difference in folder location for the desktop and startmenu between XP an Vista.Is it possible to copy the shortcuts to the startmenu for xp as well as for vista with a command like:"%AllUsersProfile%\Start Menu\Programs"Or will this only work for vista ?I want to make a silent installation that works on both xp and vista.The environmental variables that exist in XP, also exist in Vista. Paths in XP scripts should work fine in Vista unless you added into your script some hard coded paths that would have been better to have used environmental variables instead. Link to comment Share on other sites More sharing options...
xavier73 Posted October 15, 2007 Author Share Posted October 15, 2007 I'm trying to use this as a sfx script in winrar. With autoit script you can use : @DesktopCommonDir and @ProgramsDir which gives the path of the desktop and startmenu. Is there in the sfx script such a command?The command %AllUsersProfile%\Start Menu\Programs in sfx script won't work on all windows versions. The dutch version of xp has a different path name. The autoit script does work on all windows versions. Link to comment Share on other sites More sharing options...
MHz Posted October 15, 2007 Share Posted October 15, 2007 I'm trying to use this as a sfx script in winrar. With autoit script you can use : @DesktopCommonDir and @ProgramsDir which gives the path of the desktop and startmenu.@DesktopCommonDir, @DesktopDir, @ProgramsCommonDir and @ProgramsDir to be more precise. Is there in the sfx script such a command?PerhapsThe command %AllUsersProfile%\Start Menu\Programs in sfx script won't work on all windows versions. The dutch version of xp has a different path name. The autoit script does work on all windows versions.Ah, language issue with folder/file names. Autoit does some internal calculations to get those macros above.It would depend on what you are trying to do with WinRAR as shortcut creation exists within WinRAR.Shortcut=<DestType>,<SrcName>,<DestFolder>,<Description>,<ShortcutName> Create a shortcut to unpacked file.DestType is one character wide field, which can have the following values:D Create a shortcut on Desktop S Create a shortcut in Start Menu [color=#FF0000][b]P Create a shortcut in Start Menu/Programs [/b][/color]T Create a shortcut in Startup folder SrcName is a name of archived file. DestFolder is a folder to create a shortcut in. If it does not exist, it will be created by SFX archive. Description is a text string describing a shortcut.ShortcutName is a name of .lnk (shortcut) file created by SFX.All parameters are separated by commas. If you need to put a comma character inside of parameter, enclose the whole parameter to quotes. Repeat quotes twice if you need to insert a quote mark into string. Only DestType and SrcName are required, other parameters are optional.ExampleCreate a shortcut on Desktop in the folder WinRAR to archived file winrar.exe with the description "WinRAR executable file" and name "WinRAR archiver":Shortcut=D, winrar.exe, WinRAR, "WinRAR executable file", "WinRAR archiver"If WinRAR does not do enough for you, then you could look at Inno Setup as it has adequate constants for like the "start menu/programs" folder location. Link to comment Share on other sites More sharing options...
xavier73 Posted October 16, 2007 Author Share Posted October 16, 2007 I'm using autoit now because you can do much more with this. I'm trying to make shortcuts on the desktop and start menu that work on xp as well as on vista. With autoit this isn't difficult to do. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now