MSFN Forum: Difference in location desktop/startmenu XP and vista - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Difference in location desktop/startmenu XP and vista Rate Topic: -----

#1 User is offline   xavier73 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 30-September 07

Posted 13 October 2007 - 08:00 AM

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.


#2 User is offline   ckislam 

  • Islam Adel
  • PipPip
  • Group: Members
  • Posts: 141
  • Joined: 04-September 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2007 - 07:13 PM

This Link may help you.

http://www.svrops.co...les/jpoints.htm

#3 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 14 October 2007 - 07:09 PM

View Postxavier73, 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.

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 User is offline   xavier73 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 30-September 07

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.

#5 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 15 October 2007 - 06:31 AM

View Postxavier73, 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, @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"


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 User is offline   xavier73 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 30-September 07

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy