|
|
#1 |
|
Junior Member
Join Date: Dec 2003
Location: PA
Posts: 4
|
All User script
I am a brand new user to NSIS. Love it.
1. I am having somewhat of a problem. I have created a simple install script using the HMNIS editor. It works great but only for the currently logged on user. How do I set it to work for All Users of the machine? 2. Is there any way to set the Start in Directory of the created shortcuts? Remember, I am a real novice at this. Please help. Thanks |
|
|
|
|
|
#2 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,896
|
SetContextVar it's your friend
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4. |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Dec 2003
Location: PA
Posts: 4
|
AllUser
Quote:
Thank You |
|
|
|
|
|
|
#4 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,896
|
I read again your question. I thought you were talking about installation. Sorry...
Let's start again... about the users.... you must have enable "all users" to do this....must be apply for the currently user of your NT machine... About the shortcut... I don't understand the Is there any way to set the Start in Directory of the created shortcuts Do you ment open the folder where the shorcuts were created? If so check the ShellExec instructions of the manual... HIH (Hope it helps)!!! * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4. |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Dec 2003
Location: PA
Posts: 4
|
Quote:
I don't know what you mean by "enable all users to do this." Where do I do this? When I run the install program I want the user to be able to answer whether he wants this to be installed for just the current user or all users. Can you be more specific? Thank you again. |
|
|
|
|
|
|
#6 | |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
SetShellVarContext:
Quote:
For example: code: If you want to give the user an option you can create an InstallOptions page to get the user's input. See Examples\Modern UI\InstallOptions.nsi for an example and Contrib\InstallOptions\Readme.html for the documentation. To set the working directory of shortcuts use SetOutPath. For example: code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: Dec 2003
Location: PA
Posts: 4
|
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|