Archive: Vista problem


Vista problem
Hello, i am doing following on Vista:

SetOutPath "$INSTDIR\Data"
CreateDirectory "$SMPROGRAMS\App"
CreateShortCut "$SMPROGRAMS\App\${PRODUCT_FULL_NAME}.lnk" "$INSTDIR\Data\App.exe" ""
CreateShortCut "$SMPROGRAMS\App\Uninstall.lnk" "$INSTDIR\uninstall.exe"
then in Uninstaller:
RMDir /r "$SMPROGRAMS\App"
The problem is:
during installation: $SMPROGRAMS = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\App"
during uninstallation: $SMPROGRAMS = C:\Users\Saurman\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\App


Any workaround?

Welcome to the wonderful world of Vista, maybe try a search first next time, this is a common issue, see http://nsis.sourceforge.net/Shortcut..._Windows_Vista


tnx, it works now :)

and sorry for duplicate question :(