View Single Post
Old 28th November 2010, 11:29   #16
kaiten
Junior Member
 
Join Date: Nov 2010
Posts: 1
Use only this :
ShellLink::SetRunAsAdministrator "$STARTMENU\Programs\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}.lnk"

This command is only if you want to test if command was succesfull (command store variable $0) :
Pop $0

$0=0 ; no errors
$0=-1 ; error

You can use IF command to test this variable (see NSIS doc)
kaiten is offline   Reply With Quote