PDA

View Full Version : Moved from COMMON_APPDATA to COMMON_D0CUMENTS



NewsArchive
06-21-2007, 03:15 AM
Hi,

As suggested by the Gurus I have moved my data files COMMON_DOCUMENTS. Alas
no joy.

The only way I can run my app on Vista is as administrator. My Vista
machine is practically a virgin from Dell running Home Premium.

The large download (15MB) is at
www.linkedsoftware.com/download/Install_MMS6V_03.exe The htm file is at
www.linkedsoftware.com/download/Install_MMS6V_03.htm if that will help.

Perhaps someone can tell me what I have done wrong.

Thanks!

Lynn Howard
www.linkedsoftware.com

NewsArchive
06-21-2007, 03:15 AM
Lynn,

JAT...

Are you using Armadillo to protect your app?

If so - what version?

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging 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
06-21-2007, 03:15 AM
Nope.

Lynn Howard

NewsArchive
06-21-2007, 03:15 AM
Just checking.

There were some reports of older versions of Armadillo with DET under
Vista. Should not have made a problem - but was worth the check.

Based on what Jane is telling you - it looks like you need code similar to
this in the program setup embed of your app.


!Tell FM3 where to find our upgradable files
ds_SetUPGPath( CLIP( GLO:CommonAppData ))

Where GLO:CommonAppdata is a variable set by:

GLO:CommonAppData = LONGPATH( CLIP( ds_GetFolderPath(
WE::CSIDL_COMMON_APPDATA ))) & '\LANSRAD\PageSnip'




Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging 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
06-21-2007, 03:16 AM
> There were some reports of older versions of Armadillo with DET under
> Vista. Should not have made a problem - but was worth the check.

Whoops - I meant DEP (Data Execution Prevention)

;-)

Charles

--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

www.clarionproseries.com - "Serious imaging 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
06-21-2007, 03:16 AM
Playing with it, Lynn.

The first error I get is that it can't open UPG.TPS and it shows that the
path is C:\Program Files\Linked Software\Upg.tps (bad! bad!). You're going
to need to modify the FM3 properties so that file is in a valid data area.
If I click Ignore on that error several times, MMS opens. But then has an
"Error: (Access Denied(5) creating #OrgDir"

Once I got past that, then I can browse the members list, open Appointments,
browse Locations.

I did a directory listing of TPS files within your Program Files directory
before and after running your app as an administrator.

Running as administrator creates the UPG.TPS file and #OrgDir.TPS file
within C:\Program Files\ (hence the two errors when I tried to start the app
as non-admin).

I didn't try to find where your backup routine put stuff the first time I
ran the app as an administrator. You'll want to be sure that's safe.
Interestingly, the #OrgDir.TPS file within C:\Program Files has no records.
There's also a #OrgDir.TPS file in your COMMON_DOCUMENTS folder with a
record showing OrgName Example Organization in the
C:\Users\Public\Documents\Linked Software\orgs\Example Orgpath.

Other than that, I tried adding a member record as one user and was able to
read and modify it when running the app as a different user, so you're on
track!

BTW... your version resource information for the installer has Copyright
Lindersoft... probably not what you intended! (try Project Settings
Version Resource within the SB IDE).

Jane

NewsArchive
06-21-2007, 03:16 AM
Thank You! Thank You! Thank You!

> The first error I get is that it can't open UPG.TPS and it shows that the
> path is C:\Program Files\Linked Software\Upg.tps (bad! bad!). You're
> going to need to modify the FM3 properties so that file is in a valid data
> area.
> If I click Ignore on that error several times, MMS opens. But then has an
> "Error: (Access Denied(5) creating #OrgDir"

The old FM3 gambit eh. <G>

> Running as administrator creates the UPG.TPS file and #OrgDir.TPS file
> within C:\Program Files\ (hence the two errors when I tried to start the
> app as non-admin).

FM2 again I think.

> I didn't try to find where your backup routine put stuff the first time I
> ran the app as an administrator. You'll want to be sure that's safe.

C:\Users\Public\Documents\Linked Software\AutoBackups

> Interestingly, the #OrgDir.TPS file within C:\Program Files has no
> records.

FM2 again.

> There's also a #OrgDir.TPS file in your COMMON_DOCUMENTS folder with a
> record showing OrgName Example Organization in the
> C:\Users\Public\Documents\Linked Software\orgs\Example Orgpath.

That's what I installed.
..
> Other than that, I tried adding a member record as one user and was able
> to read and modify it when running the app as a different user, so you're
> on track!

Whoopee!

> BTW... your version resource information for the installer has Copyright
> Lindersoft... probably not what you intended! (try Project Settings
> Version Resource within the SB IDE).

Thanks! I had not selected a version resource so I guess it defaults to
Lindersoft.

Bottom line:

1: The problem was caused by my FM2 File.
2. Probably would have worked in COMMON_APPDATA

Thanks a million!

Lynn

NewsArchive
06-22-2007, 04:07 AM
Got it!

I had not specified the location of the upg file (for FM3). It defaults to
the Program folder (which is a no-no in Vista).

Thanks Jane, Mark and Charles.

What a crew! ;-)

Lynn

NewsArchive
06-22-2007, 04:11 AM
Does this mean that COMMON_DOCUMENTS works and is the preferred alternative
to COMMON_APPDATA or will COMMON_APPDATA now work on Vista when you have
changed your code?
I am in the midst of the same problem myself, because I made an install that
goes to program files. So, I am playing around with shgetfolderpathandsubdir
to enable my application to run in two different directories.

Bjarne

NewsArchive
06-22-2007, 04:12 AM
I'm not sure Bjarne. I think both will work and I have not re-tried
COMMON_APPDATA.

I was getting the same upg file error using both.

COMMON_DOCUMENTS seems to be the consensus though.

Lynn

NewsArchive
06-22-2007, 04:12 AM
Found this when trying to understand what to do since COMMON_APPDATA is
supposed to be read only for non-administrators.

"the recommended approach is to make a sub-folder under CSIDL_COMMON_APPDATA
for your app at install-time, and then make that sub-folder explicitly
read-write"

Shouild work, must try
Bjarne

NewsArchive
06-22-2007, 04:13 AM
I'd recommend COMMON_DOCUMENTS, Bjarne.

I hope to have a ClarionMag article soon looking at the differences between
the two. A health issue has slowed me down for the past few weeks.

Jane

NewsArchive
06-22-2007, 04:13 AM
Read more, think I finally understand. COMMON_APPDATA is for read only data
shared by all users, COMMON_DOCUMENTS is for the data that may change?

Bjarne Havnen

NewsArchive
06-22-2007, 04:14 AM
Get well soon!

Lynn

NewsArchive
06-22-2007, 04:20 AM
Please allow me to repost a previously mentioned interesting SetupBuilder
related posting on the Microsoft MSDN forum:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1213890&SiteID=1

Friedrich

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

"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner