NSIS 2.10, Windows Vista Beta1
We just startet to perform tests under Windows Vista.
The installer generally works.
The CreateShortCut function does not do anything when
placed in the startmenu macro shipped with the modern
ui. When the macro is not used, the function works fine.
Example:
MUI_STARTMENU_WRITE_BEGIN
CreateShortCut ...
MUI_STARTMENU_WRITE_END
No startmenu items are created.
Logged In: YES
user_id=584402
MUI_STARTMENU_WRITE_BEGIN only gets the user's value into
the variable specified when inserting the MUI_PAGE_STARTMENU
macro, or the value from the registry if
MUI_STARTMENUPAGE_REGISTRY_ROOT was used. Nothing too
special... It should work on Vista as well.
What exactly happens when you use MUI_STARTMENU_WRITE_BEGIN?
Does anything get printed to the log? Does Examples\Modern
UI\StartMenu.nsi function properly?
Logged In: YES
user_id=345670
The example script runs properly.
The attachment contains a part of the log file create by our
NSIS installer, the code sequence used to build the start
menu and screen dumps from Vistas start menu.
The log contains the CreateShortCut items but nothing
happens in the start menu.
ZIP archiev with four files
Logged In: YES
user_id=584402
Do the .lnk file get created? Does it simply ignore the .lnk
files? Maybe it doesn't show them because it can't find the
link target?
Logged In: YES
user_id=345670
No, there aren't any files in the start menu folders.
Folder structure
Logged In: YES
user_id=584402
Maybe it has a problem with the working directory. Try using
SetOutPath $INSTDIR instead of SetOutPath
$SMPROGRAMS\$StartMenuFolder. Also attach the complete code,
the directory creation code is missing.
And why are the shortcuts written to the startup folder?
Logged In: YES
user_id=345670
The complete script is attached.
We don't write anything into the startup folder with our script.
We will try INSTDIR instad of $SMPROGRAMS\$StartMenuFolder
next week. I'm out of the office now.
Complete setup script
Logged In: YES
user_id=345670
We changed the OutPath to INSTDIR. The start menu items are
now correctly build - not immediately but after the next
logon. There might be some problems in the current Vista
beta release.
Logged In: YES
user_id=584402
It's weird that it works with the example, but not with your
setup. Maybe there's something else in the setup causing
this? Maybe some API call sets it into a compatibility mode
that has a problem with the start menu shortcuts. Can you
try moving the shortcuts creation upwards so it'll be called
as early as possible during the installation?
I think I have a copy of Vista Beta 1 at work. I hope I'll
get some time to play around with it and maybe find out
what's going on here.
Logged In: YES
user_id=584402
I've tested Examples\Modern UI\StartMenu.nsi on Vista beta 1
and it created the shortcuts, but didn't show them.
Strangely, I just installed NSIS on this computer and it did
show its shortcuts. The difference is that the NSIS package
installer calls SHChangeNotify. I'll wait for the next beta
to see if it still happens there. If it does, a call to
SHChangeNotify should be added.
Logged In: YES
user_id=584402
Have you tested this on one of the newer CTPs?
Logged In: YES
user_id=345670
No, we haven't received a Vista CTP with the MSDN DVDs yet.
We will download the latest CTP and perform the tests as
soon as possible.
Logged In: YES
user_id=345670
We've just testet our installers (created with NSIS 2.10 and
2.17) under Windows Vista Beta2 (Build 5384, German) and
everything seams to be OK in Vistas start menu. All
shortcuts have been properly created.
Logged In: YES
user_id=584402
Good to hear. Please reopen this bug or open a new one if
the problem reoccurs.