Menu

#415 Start menu under Windows Vista

2.0 Series
closed-works-for-me
Modern UI (97)
2
2006-06-16
2005-10-28
tolekideeu
No

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.

Discussion

  • tolekideeu

    tolekideeu - 2005-10-28
    • priority: 5 --> 2
     
  • Amir Szekely

    Amir Szekely - 2005-10-28

    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?

     
  • tolekideeu

    tolekideeu - 2005-10-28

    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.

     
  • tolekideeu

    tolekideeu - 2005-10-28

    ZIP archiev with four files

     
  • Amir Szekely

    Amir Szekely - 2005-10-28

    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?

     
  • tolekideeu

    tolekideeu - 2005-10-28

    Logged In: YES
    user_id=345670

    No, there aren't any files in the start menu folders.

     
  • tolekideeu

    tolekideeu - 2005-10-28

    Folder structure

     
  • Amir Szekely

    Amir Szekely - 2005-10-28

    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?

     
  • tolekideeu

    tolekideeu - 2005-10-28

    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.

     
  • tolekideeu

    tolekideeu - 2005-10-28

    Complete setup script

     
  • tolekideeu

    tolekideeu - 2005-11-01

    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.

     
  • Amir Szekely

    Amir Szekely - 2005-11-05

    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.

     
  • Amir Szekely

    Amir Szekely - 2005-11-22

    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.

     
  • Amir Szekely

    Amir Szekely - 2006-02-24
    • assigned_to: joostverburg --> nobody
     
  • Amir Szekely

    Amir Szekely - 2006-02-24

    Logged In: YES
    user_id=584402

    Have you tested this on one of the newer CTPs?

     
  • tolekideeu

    tolekideeu - 2006-02-28

    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.

     
  • tolekideeu

    tolekideeu - 2006-06-06

    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.

     
  • Amir Szekely

    Amir Szekely - 2006-06-16

    Logged In: YES
    user_id=584402

    Good to hear. Please reopen this bug or open a new one if
    the problem reoccurs.

     
  • Amir Szekely

    Amir Szekely - 2006-06-16
    • assigned_to: nobody --> kichik
    • status: open --> closed-works-for-me
     

Log in to post a comment.