Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
xavier73

Difference in location desktop/startmenu XP and vista

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

:)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?

Perhaps

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.

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.

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.

:)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...