PDA

View Full Version : Registry



NewsArchive
01-27-2009, 04:33 AM
What section of the registry is it appropriate and the least amount of
hassle to
put the path to my software in and read it out with SB

I insist that all installs are done by Administrators.


--
Dan Scott
Garage Partner Pro
www.garagepartner.com

NewsArchive
01-27-2009, 04:34 AM
> What section of the registry is it appropriate and the least amount of
> hassle to
> put the path to my software in and read it out with SB
>
> I insist that all installs are done by Administrators.

Dan,

This does NOT answer your question, but there are always lurkers, looking
for tips, and you brought up a good issue -

> insist that all installs are done by Administrators

So, here is a tip for the lurkers! :-D

SB - Checkbox method -

Setup Requirements - Requirements - User Privilege Requirements -
Administrator Rights checkbox - screen shot attached illustrates what a
non-admin user sees in XP - Vista will present an elevated prompt - use an
Admin account and password to install.

In place of the Administrator Rights checkbox -

Use script editor (e.g. at the beginning). Then display your own message
(including your own title) and abort the installation.

If %PRIVILEGES% Not Equal "Admin" Then
Display Message YadaYada
Exit Installation
End

Then you display your own custom message.

David

--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
Profile Exchanges - www.encouragersoftware.com/profile/
http://www.profileexchanges.com/blog/

NewsArchive
01-27-2009, 04:36 AM
Hi Dan,

> What section of the registry is it appropriate and the least amount of
> hassle to
> put the path to my software in and read it out with SB

Write it to the HKLM (Local Machine) section of the registry when you
install. Then you can read it from the installers or your application if
needed.

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
01-27-2009, 08:02 AM
Dan,

> What section of the registry is it appropriate and the least amount of
> hassle to put the path to my software in and read it out with SB
>
> I insist that all installs are done by Administrators.

If you have enabled the "Add/Remove Programs Support" option in the "General
Information" Visualizer, then this is handled automatically.

You can then use the "Detect Previous Version..." script function to
retrieve the installation path and installed version.

Does this help?

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-28-2009, 02:47 AM
Thanks Dave

--
Dan Scott
Garage Partner Pro
www.garagepartner.com

NewsArchive
01-28-2009, 02:47 AM
> Thanks Dave

Dan,

You're welcome - got that answer from Jean-Pierre Gutsatz of CGF one early
morning during some back and forth emails - I think he got it from
Friedrich.

David

--
From David Troxell - Product Scope 7 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
Profile Exchanges - www.encouragersoftware.com/profile/
http://www.profileexchanges.com/blog/

NewsArchive
01-28-2009, 02:48 AM
Thanks Arnor

--
Dan Scott
Garage Partner Pro
www.garagepartner.com

NewsArchive
01-28-2009, 02:48 AM
Yes, for installs by SB6, but if they decide to manually move the folder to
another drive, I want
to write the new location to the registry at first run in new location. Then
when the next update
occurs, I need SB to be able to read the registry and find the install
location.

With as little problem as possible. This is why I insist that users have
admin privileges.

--
Dan Scott
Garage Partner Pro
www.garagepartner.com

NewsArchive
01-28-2009, 02:49 AM
Hi Dan,

> occurs, I need SB to be able to read the registry and find the install
> location.

You can always write it to an ini in the common_documents and read it from
the install:)

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
02-01-2009, 03:47 AM
Yes, I could do that, but what about XP and w95 and w98
That is why registry came up

Dan

--
Dan Scott
Garage Partner Pro
www.garagepartner.com

NewsArchive
02-01-2009, 03:48 AM
Hi Dan,

> Yes, I could do that, but what about XP and w95 and w98
> That is why registry came up

No problem under XP. Should work under 95 and 98 with IE4 (if I remember
correctly) installed.

Best regards,

--
Arnór Baldvinsson - Icetips Creative, Inc.
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php