# HG changeset patch # User Roeland Merks # Date 2010-11-29 12:31:25 # Node ID d921bb3b13ece858759e11a32613cd3d0e7669d3 # Parent f2712ec0e2e859d00ae9e2989b6c2c1df015e6c3 Updated Windows installer script so it adds an item to the Start menu. -- user: Roeland Merks branch 'default' changed src/VirtualLeaf-install-windows.nsi diff --git a/src/VirtualLeaf-install-windows.nsi b/src/VirtualLeaf-install-windows.nsi --- a/src/VirtualLeaf-install-windows.nsi +++ b/src/VirtualLeaf-install-windows.nsi @@ -141,6 +141,10 @@ section "Virtual Leaf executable" # Prepend the Virtual Leaf bin directory to the installers PATH ${EnvVarUpdate} $0 "PATH" "P" "HKCU" "$INSTDIR\bin" + + # create a shortcut named "VirtualLeaf" in the start menu programs directory + # point the new shortcut at the program VirtualLeaf + createShortCut "$SMPROGRAMS\VirtualLeaf.lnk" "$INSTDIR\bin\VirtualLeaf.exe" sectionEnd section "Virtual Leaf plugins" @@ -171,6 +175,9 @@ section "Uninstall" # Now delete installed file !insertmacro RemoveFilesAndSubDirs "$INSTDIR" + # Delete shortcut from start menu + delete "$SMPROGRAMS\VirtualLeaf.lnk" + # Last but not least - delete the path ${un.EnvVarUpdate} $0 "PATH" "R" "HKCU" "$INSTDIR\bin" sectionEnd