PDA

View Full Version : CSIDL_PERSONAL detection from elevated installer



NewsArchive
01-10-2009, 03:45 AM
Mirrored from: clarion.third-party -> "Re: Clarion 7 Installations - a call
to SoftVelocity for clarity"

---

Hi Arnór,

>> etc.) -- I mean the CSIDL_PERSONAL thing. We have done this for a large
>> Fortune 500 company and they are testing it right now.
>
> Excellent! I knew you could do it!<g>

<G>

To test it on Windows 7, I have developed a SB6 demo. The "shocking" news
is that this SetupBuilder code even works on Win7 <g>

Take a look at the attached screenshot. On the Windows 7 Ultimate machine,
there is one Admin account (Linder) and four Standard User accounts (Jane,
Arnor, Charles and Bob Z).

The installer is running elevated in the "Jane" (Standard User) account.
SetupBuilder detectes all valid profiles -- not only this, it even detects
the account from which it was started. This is the pre-selected "Jane"
option in this case.

The installer can now do whatever you want with this detected folder.
Install data to "C:\Users\Jane\Clarion7\Examples", etc.

On XP, we have to use a slightly modified method. I have tested the
installer on XP, Vista, and Windows 7 and it works without any problem.

I'll move this to the SetupBuilder NNTP newsgroup now...

>> Unfortunately, there is no "reliable" known solution to handle this on
>> Vista, 2008, Win7 and 2008 R2 (Win7 Server).
>
> Yeah, I didn't figure it would be. Hopefully you guys can find something
> out for this because it is a PITA when doing webupdates not to be able to
> start the program up again after the install - it makes up for a much more
> seamless integration and better experience IMO.

I agree 100%. Based on the above "profile detection" technology, we are
working on a "Start unelevated" feature for SB7.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-10-2009, 03:47 AM
That is awsome. I am looking forward to getting Win7 and SB7. Looks like you are
having FUN!

John Griffiths

NewsArchive
01-10-2009, 03:47 AM
> That is awsome. I am looking forward to getting Win7 and SB7. Looks like
> you are having FUN!

Absolutely ;-)

Friedrich

NewsArchive
01-10-2009, 03:48 AM
I have uploaded the SB6 compiled and code-signed test application:

www.lindersoft.com/projects/CurrentUsers.zip

It will not modify your system. There is only one dialog that displays all
available profiles and detects the account from which it was started.

It's all pure SetupScript code. Because I don't want to give away our
secrets to our competitors, we'll move the functionality (after further
tests) into the SetupBuilder system in one of the next builds.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-10-2009, 03:49 AM
Dang, works great (Win XP and Win2000 server). I found a user account I had long
forgotten I had.

John Griffiths

NewsArchive
01-10-2009, 03:49 AM
> Dang, works great (Win XP and Win2000 server). I found a user account I
> had long forgotten I had.

COOL!!! Thanks for testing it!

Friedrich

NewsArchive
01-10-2009, 03:49 AM
Tested on Vista-64 and XP-32.

On XP, it offered all 3 existing user accounts.

On Vista, it offered 3 choices, apparently based on the c:\users\ folder
structure.
One of the choices it presents is a local user account that I deleted from
this computer several months ago. It does not offer "Administrator", which
is disabled (as is the default on Vista machines).

Jane

NewsArchive
01-10-2009, 03:50 AM
Hi Jane,

> Tested on Vista-64 and XP-32.
>
> On XP, it offered all 3 existing user accounts.
>
> On Vista, it offered 3 choices, apparently based on the c:\users\ folder
> structure.
> One of the choices it presents is a local user account that I deleted from
> this computer several months ago. It does not offer "Administrator",
> which is disabled (as is the default on Vista machines).

Good point. So it still saw a local user account (that you already
removed)? I'll play with it.

BTW, the installer does not use the folder structure to detect "users".

Friedrich

NewsArchive
01-10-2009, 03:51 AM
Actually, it sees 2 local users that have been deleted some time ago.
Pics attached.

Jane

NewsArchive
01-10-2009, 03:52 AM
Hi Jane,

> Actually, it sees 2 local users that have been deleted some time ago.
> Pics attached.

Thanks for the detailed description. There is definitely a problem in the
code.

I have to investigate it.

Thanks,
Friedrich

NewsArchive
01-10-2009, 03:52 AM
I could delete the profiles from Windows... but there's no guarantee that
most users would know how to do that.
So probably good to try to figure a way to determine whether they're active.

Jane