Old 18th February 2010, 17:08   #1
Cyrille
Junior Member
 
Join Date: Feb 2010
Posts: 6
Question Windows7 - Desktop and QuickLaunch shortcut

Dear all,

I am currently experiencing problem with my installation package created with NSIS Compiler V2.3. The problem has been identified only by a user with Windows 7. If the desktop and QuickLaunch shortcuts are well created, he has also noticed that the shortcut to the application is also created in:

c:\users\Administrator.WIN-XXX\Desktop\
and :
c:\users\Administrator.WIN-XXX\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\

where XXX is the real name of his Windows account.

To create the short cut, I have used the following code:

code:
CreateShortCut "$DESKTOP\my_app.lnk" "$INSTDIR\my_app.exe"
CreateShortCut "$QUICKLAUNCH\my_app.lnk" "$INSTDIR\my_app.exe"



Is it a bug with my code or something normal with Windows 7?

Thank you very much for your kind support
Best regards,
Cyrille
Cyrille is offline   Reply With Quote
Old 18th February 2010, 17:25   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Those paths looks correct to me, what is the actual problem? (Also, 2.3 is kind of old, you might want to upgrade so you can use RequestExecutionLevel)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th February 2010, 20:17   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
afaik there is no more quicklaunch in win7
Yathosho is offline   Reply With Quote
Old 18th February 2010, 20:53   #4
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 571
Windows 7 still supports QuickLaunch - all you have to do is enable it. The first hit in a Google search gave me step-by-step instructions for enabling it.
pengyou is offline   Reply With Quote
Old 18th February 2010, 21:39   #5
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
support yes, but with taskbar pinning nobody has a reason to go back to quicklaunch. there already is a discussion that suggests not to pin programs here.
Yathosho is offline   Reply With Quote
Old 18th February 2010, 23:21   #6
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 571
Quote:
Originally posted by Yathosho
with taskbar pinning nobody has a reason to go back to quicklaunch.
Sorry, I disagree. I find QuickLaunch very useful in Windows 7.
pengyou is offline   Reply With Quote
Old 19th February 2010, 12:47   #7
Cyrille
Junior Member
 
Join Date: Feb 2010
Posts: 6
Quote:
Originally posted by Anders
Those paths looks correct to me, what is the actual problem? (Also, 2.3 is kind of old, you might want to upgrade so you can use RequestExecutionLevel)
In fact, the correct path should be \XXX\ (i.e. without the administrator.WIN). However, the person informed me that these shorcuts were created from a previous installer. The last one do not create these shortcuts. Everything is fine thus. Thank you very much and sorry.

I am going to check the forum about the use of RequestExecutionLevel. Thanks again

Cyrille
Cyrille is offline   Reply With Quote
Old 19th February 2010, 14:53   #8
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
I'm guessing the Administrator.WIN prefix could have been added by windows itself during a reinstall or account name change, either way, NSIS just uses what windows tells it to use as the shell path

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th February 2010, 16:43   #9
Cyrille
Junior Member
 
Join Date: Feb 2010
Posts: 6
I would bet on the account kept from an updated from a previous version of Windows
Cyrille is offline   Reply With Quote
Old 19th February 2010, 16:53   #10
Cyrille
Junior Member
 
Join Date: Feb 2010
Posts: 6
Quote:
Originally posted by Anders
Those paths looks correct to me, what is the actual problem? (Also, 2.3 is kind of old, you might want to upgrade so you can use RequestExecutionLevel)
Probably a stupid question: I would like to know if RequestExecutionLevel defines the requested execution level of the install package (and thus the choice depends on the NSIS script) or of the .exe file of the installed application?

Thank you very much
Cyrille
Cyrille is offline   Reply With Quote
Old 19th February 2010, 17:46   #11
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Quote:
Originally posted by Cyrille
Probably a stupid question: I would like to know if RequestExecutionLevel defines the requested execution level of the install package (and thus the choice depends on the NSIS script) or of the .exe file of the installed application?


Cyrille
Installer and Uninstaller

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 20th February 2010, 18:19   #12
Cyrille
Junior Member
 
Join Date: Feb 2010
Posts: 6
Ok, so I suppose the admin rights are only necessary when the installer writes in the registry. Is it correct?
Cyrille is offline   Reply With Quote
Old 20th February 2010, 19:04   #13
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Its necessary if you want to do admin things (DOH) like writing to HKLM or $programfiles/$windir etc

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st February 2010, 12:02   #14
Cyrille
Junior Member
 
Join Date: Feb 2010
Posts: 6
Ok, thank you very much Anders. It is very clear now
Cyrille is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump