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.
Page 1 of 1
Difference in location desktop/startmenu XP and vista
#2
Posted 13 October 2007 - 07:13 PM
#3
Posted 14 October 2007 - 07:09 PM
xavier73, on Oct 14 2007, 12:00 AM, said:
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.
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.
#4
Posted 15 October 2007 - 03:41 AM
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.
@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.
#5
Posted 15 October 2007 - 06:31 AM
xavier73, on Oct 15 2007, 07:41 PM, said:
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 and @ProgramsDir which gives the path of the desktop and startmenu.
@DesktopCommonDir, @DesktopDir, @ProgramsCommonDir and @ProgramsDir to be more precise.
Quote
Is there in the sfx script such a command?
Perhaps
Quote
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.
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.
[codebox]
SFX commands: Shortcut said:
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
P Create a shortcut in Start Menu/Programs
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.
Example
Create 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"
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
P Create a shortcut in Start Menu/Programs
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.
Example
Create 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.
#6
Posted 16 October 2007 - 11:00 AM
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.
- ← 3DMark 2001 SE setup.iss doesn't work
- Application Installs
- How can i "silently" add text in an .ini file →
Share this topic:
Page 1 of 1



Help
Back to top









