PDA

View Full Version : Install for all users



NewsArchive
07-11-2007, 03:14 AM
how can i give an option to install for all users or the current user in my
install script?

--
Eric Jacobowitz
www.castlecomputer.com
www.cctsoftware.com

NewsArchive
07-11-2007, 03:15 AM
This involves three questions:

1. Are you going to store data files in a user's profile (My
Documents\MyStuff) or in a common area available to all users? If you
envision that multiple users will be using the app on a given computer and
will need separate sets of data, you'll need to store the data in their
profiles. Otherwise, it really doesn't matter. Unless you are installing
data files with SetupBuilder, this is probably something that should be set
within your app.

2. Do you create a shortcut that shows up on all users' Programs menu (tick
the "Enable Access For All Windows Users" check box on the shortcut's
General properties tab) or not (don't tick that box).
You can create both shortcuts in your script, then wrap them with an
If/Then/Else structure to determine which one actually gets installed based
on the user's response to an "Install this for all users?" check box.

3. Are you writing to the Current User or Local Machine areas of the
registry?

You might also search the online help for $SB_ALLUSERSFLAG$. I haven't
personally played with it.

Jane

NewsArchive
07-11-2007, 03:15 AM
Actually for my users, I need the app in 1 directory (C:\bmwin)
all users access the same data - the app is 1 database and needs to be
accessible to all users, but I have found my users installing the software
into their own screen name and then calling for support on how to "create an
icon" for the other users

so I want the install to give the option to install for all users

--
Eric Jacobowitz
www.castlecomputer.com
www.cctsoftware.com

NewsArchive
07-11-2007, 03:17 AM
OK...
I thought I had a clue.

But NOT!

There's a check box on shortcuts that you can set or clear, ostensibly to
make the shortcut this-user or all-users.
But buried in the help is not only a backwards description (it says to SET
the "enable access for all users" box if you want it to be in the personal
shortcuts, in all users if NOT set)... but the caveat that this checkbox is
ignored unless that $SB_ALLUSERSFLAG$ is set.

There's a separate User Info dialog that has an all-users just-me option,
but if you don't want the user name info then the all-users option looks
weird down at the bottom of the dialog window.

Anyway, Eric... my own playing suggests that that checkbox is ignored
anyway.
The magic trick is either to set or clear $SB_ALLUSERSFLAG$ ... and it
apparently doesn't matter what you do with the shortcut checkbox.

Attached is a script that works that way.

Argh!
Friedrich - I'm sure this makes some sense or you wouldn't have done things
this way. I hope you'll have the patience to dumb it down and explain to me
why the checkbox is ignored unless that flag is set... and then doesn't seem
to be needed if the flag is set.

I have a headache.

But Hark!
I hear the Clarion call (what other kind is there???) of Cabernet......

Jane

NewsArchive
07-11-2007, 03:18 AM
Nobody has.

>I haven't personally played with it.

Jeff Slarve

NewsArchive
07-11-2007, 03:18 AM
Well... I now have, Mr. Clever Trousers. And it ain't pretty <G>

Jane Fleming

NewsArchive
07-11-2007, 03:18 AM
LOL

Jeff Slarve