PDA

View Full Version : ProPath And LinderSoft SetupBuilder



NewsArchive
09-21-2009, 01:35 AM
Hi Charles.
How do ProPath and SetupBuilder work together? I am going to put my APP and
data files in CSIDL_COMMON_DOCUMENTS. ( My users download weekly data
packages so I need to be able to freely read and write to the directory with
their EXE and data.). I know I can get it set up with ProPath but I am
using SB7 for my installs over the Web. Trying to sort out how to get the
CSIDL_COMMON_DOCUMENTS path at install time for the machine and put my stuff
in the right sdirectory and get my shortcuts to point to the right location.
Any insight on this process?
THanks,
ROn Jolda

NewsArchive
09-21-2009, 01:36 AM
Hi Ron,

> How do ProPath and SetupBuilder work together? I am going to put my APP and
> data files in CSIDL_COMMON_DOCUMENTS. ( My users download weekly data
> packages so I need to be able to freely read and write to the directory with
> their EXE and data.). I know I can get it set up with ProPath but I am
> using SB7 for my installs over the Web. Trying to sort out how to get the
> CSIDL_COMMON_DOCUMENTS path at install time for the machine and put my stuff
> in the right sdirectory and get my shortcuts to point to the right location.
> Any insight on this process?

First of all I would not put the exe into common documents. It should be in
Program Files and the data in common-documents. Using the web updater to do
that is no problem.

In SB go to "Files and folders" and right click in "Always Install" in the
lower-left. Select "Add CSIDL" from the popup menu and then select
CSIDL_COMMON_DOCUMENTS. Create your subfolder structure and place your
datafiles there. SB will automatically detect where CSIDL_COMMON_DOCUMENTS
is when the user runs the install and create the files/folders there.

Then you simply use ProPath to set the data folder to CSIDL_COMMON_DOCUMENTS
+ your sub folder structure:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

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

NewsArchive
09-21-2009, 01:36 AM
Hi Arnor,
Thanks for the info. I am going to be delivering EXE updates via HTTP and I
want to make sure that I can write to the directory - that is why I was
goign to put everything in CSIDL_COMMON_DOCUMENTS. If my end users are not
Administrators, I don't want to have hassles not being able to directly
overwrite and update their EXE in PROGRAMFILES. If it is in
CSIDL_COMMON_DOCUMENTS then I know that I will be able to overwite it! Are
my assumptions correct. I understand that the end user can do everything
with CSIDL_COMMON_DOCUMENTS - sometimes they may want to go and work with
the HTML files that they have created with my program.
Ron Jolda

NewsArchive
09-21-2009, 01:37 AM
> Hi Charles.
> How do ProPath and SetupBuilder work together? I am going to put my APP and
> data files in CSIDL_COMMON_DOCUMENTS. ( My users download weekly data
> packages so I need to be able to freely read and write to the directory with
> their EXE and data.). I know I can get it set up with ProPath but I am
> using SB7 for my installs over the Web. Trying to sort out how to get the
> CSIDL_COMMON_DOCUMENTS path at install time for the machine and put my stuff
> in the right sdirectory and get my shortcuts to point to the right location.
> Any insight on this process?
> THanks,
> ROn Jolda

Ron,

In addition to what Arnor recommends (and some of his information is
actually reinforced in a helpful CHM file I provide) - go to this blog

and download the CHM version of the blog

Making App Data UAC (Vista and Windows 7) safe and XP compatible

http://profileexchanges.com/blog/?p=120

I specifically give screen shots that show using ProPath and their
SetupBuilder locations in the help topic - UAC Safe - Propath

In this example - a earlier prototype of EZChangeLog Reporter (for the
actual shipping product, I do not use the exact same methods, as I do not
ship example files)

I use CSIDL_PERSONAL instead of CSIDL_COMMON_DOCUMENTS - this gives the
added advantage if multiple user accounts are created, your clients can
maintain separate data for EACH user account.

Plus it shows the proper setup for your program EXE and dll files

Use your company name and product name.

PLUS a wealth of other information that applies to any Software Developer -
regardless of programming languages or tools used.

That should help give you a start, and then ask additional specific
questions for your projects.

* * * * *

Vista, Windows 7 and Clarion 6

C6 IDE appearance and help issues

"You can use the Windows XP version of winhlp32.exe to take full advantage
of the Clarion 6 Help in Vista." (same applies to Windows 7)

http://profileexchanges.com/blog/?p=20

* * * * *

Clarion 6 on Vista and Clarion Version Detection for 3rd Party Products

"The Clarion 6 Vista Installation Fix freeware application makes the
appropriate WIN.INI modifications so 3rd party installations can detect
Clarion 6 on Vista, Windows Server 2008 and Windows 7 machines."

http://profileexchanges.com/blog/?p=47

David


--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
09-21-2009, 01:37 AM
HI David,
Thanks,
Using SB7 (setupbuilder)
Installdir : %CSIDL_COMMON_DOCUMENTS%\PDMG
When it started installing on a VISTA machine ( SB is set to administrator
privilges for installation) I got a message that "CSIDL_COMMON_DOCUMENTS"
was not available or could not be written to. ??????????
This is troubling...I can't even get it to recognize a common folder on a
plain vanilla machine.......
Ron

NewsArchive
09-21-2009, 01:38 AM
Hi Ron,

> Installdir : %CSIDL_COMMON_DOCUMENTS%\PDMG
> When it started installing on a VISTA machine ( SB is set to administrator
> privilges for installation) I got a message that "CSIDL_COMMON_DOCUMENTS"
> was not available or could not be written to. ??????????
> This is troubling...I can't even get it to recognize a common folder on a
> plain vanilla machine.......

No idea. I use that folder in several SB6 installs and never had a problem
on XP, Vista or Win7.

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

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

NewsArchive
09-21-2009, 01:40 AM
> HI David,
> Thanks,
> Using SB7 (setupbuilder)
> Installdir : %CSIDL_COMMON_DOCUMENTS%\PDMG

Ron,

You're already making your first mistake - the INSTALLDIR should NOT be

the %CSIDL_COMMON_DOCUMENTS% area

Your INSTALLDIR should be the %PROGRAMFILESDIR% location as in

%PROGRAMFILESDIR%\Your Company Name\[PRODUCTNAME]

General Information - Product Properties - Installation Directory
[INSTALLDIR]

In the Files and Folders Visualizer - Application Folder - you place your
program EXE, CHM, DLL files, etc

And they are installed to the INSTALLDIR

If you study the attached screen shot, it includes a lot of information
similar to your project, and of course, you'll need to substitute your own
information:

Ron Company Name - actual company name - Product Name, etc

But it provides a consistent method that other companies use in installing
their programs and where they place the data.

This also illustrates shipping some data with the install - Products.tps -
but that is optional - you can let ProPath create your data folder.

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
09-21-2009, 01:41 AM
>> HI David,
>> Thanks,
>> Using SB7 (setupbuilder)
>> Installdir : %CSIDL_COMMON_DOCUMENTS%\PDMG
>
> Ron,
>
> You're already making your first mistake - the INSTALLDIR should NOT be
>
> the %CSIDL_COMMON_DOCUMENTS% area
>
> Your INSTALLDIR should be the %PROGRAMFILESDIR% location as in
>
> %PROGRAMFILESDIR%\Your Company Name\[PRODUCTNAME]
>
> General Information - Product Properties - Installation Directory
> [INSTALLDIR]
>
> In the Files and Folders Visualizer - Application Folder - you place your
> program EXE, CHM, DLL files, etc
>
> And they are installed to the INSTALLDIR
>
> If you study the attached screen shot, it includes a lot of information
> similar to your project, and of course, you'll need to substitute your own
> information:

Ron,

Just a brief correction to the screen shot:

I re-shot some of the screen shots - copied and pasted - and one correction
did not make it into the one I posted - the SetupBuilder part that shows
Application Folder - just below it - the CSIDL part should look exactly the
same as SetupBuilder screen shot just below it (with Ron Company Name).

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
09-21-2009, 01:41 AM
Ron,

> Using SB7 (setupbuilder)
> Installdir : %CSIDL_COMMON_DOCUMENTS%\PDMG
> When it started installing on a VISTA machine ( SB is set to administrator
> privilges for installation) I got a message that "CSIDL_COMMON_DOCUMENTS"
> was not available or could not be written to. ??????????

Are you using your own %CSIDL_COMMON_DOCUMENTS% variable here to access the
CSIDL_COMMON_DOCUMENTS folder?

The built-in variable in SetupBuilder is named %_CSIDL_COMMON_DOCUMENTS%
(and not %CSIDL_COMMON_DOCUMENTS%). So I assume, you are creating your own
%CSIDL_COMMON_DOCUMENTS% variable and set it to the CSIDL_COMMON_DOCUMENTS
value?

Friedrich

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

SetupBuilder is Windows installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-21-2009, 01:42 AM
> How do ProPath and SetupBuilder work together? I am going to put my APP and
> data files in CSIDL_COMMON_DOCUMENTS. ( My users download weekly data
> packages so I need to be able to freely read and write to the directory with
> their EXE and data.). I know I can get it set up with ProPath but I am
> using SB7 for my installs over the Web. Trying to sort out how to get the
> CSIDL_COMMON_DOCUMENTS path at install time for the machine and put my stuff
> in the right sdirectory and get my shortcuts to point to the right location.
> Any insight on this process?

Hi Ron,

Arnor gave you a pretty good rundown on it ( thanks Arnor! ).

Inside SetupBuilder you have access to CSIDL locations, but you do have to
be careful not to try and access the user specific locations from the
installer.

Remember that the installer is running elevated, so "Ron the Installer" is
not the same user specific CSIDL location as "Ron the User" later on.

In the ProPath docs there is a section where we talk about the CSIDLs and
which one to use, and each one makes mention to if the location is
"visible" from the installer or not.

You can see it in the help or online here:
http://www.clarionproseries.com/propathhelp/index.html?selectingacsidl.htm


Does that help?

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
09-21-2009, 01:42 AM
CHarles,
Thanks,
Maybe I have to adjust my thinking a little. Will try some different
configurations tomorrow after reading the docs again - with a clear mind.
Thanks
ROn

NewsArchive
09-21-2009, 01:43 AM
> Maybe I have to adjust my thinking a little. Will try some different
> configurations tomorrow after reading the docs again - with a clear mind.

Sounds good.

That is why I pointed you to those pages.

:-)

Take care,

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
09-22-2009, 02:02 AM
> CHarles,
> Thanks,
> Maybe I have to adjust my thinking a little. Will try some different
> configurations tomorrow after reading the docs again - with a clear mind.

Ron,

I am reposting my "corrected" screen shot - if you study it, with a few
adjustments on your side (supplying your specific project information -
your company name - your product name - your program EXE, dlls, CHM, etc
for INSTALLDIR), it might possibly be what you need.

Notice that I used a company name both in the Program Files area, AND the
data folder area - this is a common practice to help separate AND IDENTIFY
your company files from other companies.

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/

NewsArchive
09-23-2009, 01:27 AM
THanks everyone,
Sleep, although highly over rated, makes a big difference.
Got it sorted out and working!
Ron

NewsArchive
09-23-2009, 01:28 AM
> Sleep, although highly over rated, makes a big difference.

LOL - but too much of it can rot your brain<g>.

> Got it sorted out and working!

That's great Ron!

:-)

Take care,

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------