[wpkg-users] Old Feature Request / Perhaps New Idea
Pendl Stefan
stefan.pendl at haidlmair.at
Wed Feb 17 13:50:28 CET 2010
>
> Hello List,
>
> I was looking through the archives searching for a way to find out the Start Menu Path on different language version of windows.
>
> I read that you considered hardcoding all possible languages.
>
> Well - the start-menu part is saved in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Programs
>
> If WPKG could expand some of those paths ("Common Desktop" would also be very useful), this could simplify lots of install scripts.
>
> My dream feature would be WPKG able to expand any registry value into an environment variable, which then could be used inside an install cmd.
>
> What do you think?
>
You may want to open a command prompt and execute the SET command.
You will notice the following environment variables: USERPROFILE and ALLUSERSPROFILE
The ALLUSERSPROFILE will point the root folder for the common desktop, so using %ALLUSERSPROFILE%\Desktop will work on any localization, since it works for me on German and English localizations.
On the other hand you can create JS scripts to create shortcuts, see http://wpkg.org/Category:Utility_Scripts for an example of such a script for desktop shortcuts.
This will make using the PUBLIC environment variable for Vista and higher obsolete.
---
Stefan
More information about the wpkg-users
mailing list