<tt><font size=2>Hello Stefan,</font></tt>
<br>
<br><tt><font size=2>Thanks for your reply - </font></tt>
<br>
<br><tt><font size=2>> > Well - the start-menu part is saved in the
registry: <br>
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion<br>
> \Explorer\Shell Folders\Common Programs<br>
> ><br>
> > If WPKG could expand some of those paths ("Common Desktop"
would <br>
> > also be very useful), this could simplify lots of install scripts.<br>
> You may want to open a command prompt and execute the SET command.<br>
> You will notice the following environment variables: USERPROFILE and<br>
> ALLUSERSPROFILE</font></tt>
<br>
<br><tt><font size=2>... Which expand only to a part of the needed path.
And the part missing is localized. I already searched all the standard
env-variables for useful stuff, but localization bites me all the time.</font></tt>
<br><tt><font size=2><br>
> The ALLUSERSPROFILE will point the root folder for the common <br>
> desktop, so using %ALLUSERSPROFILE%\Desktop will work on any <br>
> localization, since it works for me on German and English localizations.</font></tt>
<br>
<br><tt><font size=2>... As long as the Desktop ist in the path ".\Desktop".
I didn't check (yet) but I bet, French XP might not be called "Desktop".</font></tt>
<br><tt><font size=2>And even in ENU/DEU it doesn't work for the Start
Menu - but the registry entry "Common Programs" and "Common
Start Menu" always points to the global equivalents.</font></tt>
<br>
<br>
<br><tt><font size=2>And for added bonus - those entries work in Win7 -
for shortcuts you won't have to check what Win-Version you're on - just
expand the registry values.</font></tt>
<br>
<br><tt><font size=2>you can workaround this with a vbscript using something
like this:</font></tt>
<br><tt><font size=2>--snip--</font></tt>
<br><tt><font size=2>dim oShell</font></tt>
<br><tt><font size=2>set oShell = WScript.CreateObject("Wscript.shell")</font></tt>
<br><tt><font size=2>commonPrograms = oShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders\Common Programs")</font></tt>
<br><tt><font size=2>oshell.run "%COMSPEC% /C del " & commonPrograms
& "\shortcut.lnk", 1, true<br>
--snip--</font></tt>
<br>
<br><tt><font size=2>but would'nt it be nice just to use</font></tt>
<br><tt><font size=2><install cmd="%COMSPEC% /C del %COMMON_START_MENU%\shortcut.lnk"
/></font></tt>
<br>
<br><tt><font size=2>or maybe</font></tt>
<br><tt><font size=2><regexpand path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders\Common Startup" value="STARTUP" /></font></tt>
<br><tt><font size=2><install cmd="%COMSPEC% /C del "%STARTUP%\StupidApp.lnk"
/></font></tt>
<br>
<br>
<br><tt><font size=2>> On the other hand you can create JS scripts to
create shortcuts, see <br>
> </font></tt><a href=http://wpkg.org/Category:Utility_Scripts><tt><font size=2>http://wpkg.org/Category:Utility_Scripts</font></tt></a><tt><font size=2>
for an example of such a <br>
> script for desktop shortcuts.</font></tt>
<br>
<br><tt><font size=2>Well - this won't help if you want to delete shortcuts,
or move them around, or do something in the global appdata (which is different
on XP from 7).</font></tt>
<br>
<br><tt><font size=2>Most Installers already create shortcuts - but often
too many or in wrong/unwanted places. Or place stuff in the Startup-Folder.</font></tt>
<br>
<br><tt><font size=2>I just thought this might be a pretty simple (and
possibly useful) addition, that could save lots of external extra-scripting.</font></tt>
<br><tt><font size=2><br>
Best Regards</font></tt>
<br><tt><font size=2> Heiko</font></tt>