|
|
#1 | |||
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
SetShellVarContext on-the-fly ?
Can I start a section with
Quote:
Quote:
Quote:
The goal is to place some shortcuts on the Start Menu of the Administrator only, then place some items on the Start Menu of All Users, then restore ShellVarContext back to current. I just tried that and it didn't work for me. So either there is an inherent limitation of which I didn't know or I am doing something wrong. If the latter, any idea what could possibly go wrong in simple code like this? PHP Code:
|
|||
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Feb 2007
Posts: 546
|
Did you define D_STARTMENU somewhere?
That define will not change based on SetShellVarContext. Use $SMPROGRAMS instead (See chapter 4.2.3 in the NSIS manual) |
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Quote:
PHP Code:
Interestingly enough, I have no such problem with SetOutPath. Did changing SetShellVarContext on the fly ever worked for anyone? Thanks. |
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Update: If I change:
PHP Code:
PHP Code:
Strange. I know that ${D_COMPANY} and ${D_PRODUCT} are defined and valid. Why is it behaving like this? |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Problem solved.
What was missing is the CreateDirectory statement before the CreateShortCut: PHP Code:
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|