|
|
#1 |
|
Member
Join Date: Jul 2001
Location: NZ
Posts: 71
|
Shortcut problem
Hi,
I have a wierd problem with creating shortcuts, for some reason, when I run the installation using 'Run As' local administrator (which I have to do because it needs administrator permissions on certain parts), the shortcut I place on the desktop, the target gets screwed up. The target should read: "R:\Hill Labs Cube Viewer\Cube Viewer.exe" and when it is run as the normal logged in user, this is what it is. (to test this i commented out the code that required admin permissions). But when I run as administrator, the target is R:\Hill_Lab\Cube_Vie.exe Why would running as do this? Here is the part of the script that creates the shortcut: code: Any help on this would be much appreciated. Hannes. |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Remove the extra quotes.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2001
Location: NZ
Posts: 71
|
Removing the single quotes makes no difference to the outcome.
|
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Are you sure R: exists for the administrator? It's probably the same problem as this one.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Member
Join Date: Jul 2001
Location: NZ
Posts: 71
|
Ok, that would be the problem, It doesn't exist for administrator. so nsis doesn't create the shortcut, windows does?
How can I workaround this problem? I don't want to map a drive, is that even possible when using 'Run As'? Thanks for your fast replies |
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
A simple workaround would be using \\server\share instead of the map.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Member
Join Date: Jul 2001
Location: NZ
Posts: 71
|
Of course!
thanks for that, works perfect!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|