PDA

View Full Version : Vista UAC still bother in my signed program.



NewsArchive
08-06-2007, 07:47 AM
I released a program using SB 6.5. The installer AND the program are signed
with SB 6.5.
The Vista User Access control runs each time I run the program.
Is there something else I can do to avoid this?
You can check the program at www.inback.com.

--
Jorge Alejandro Lavera
www.InBack.com
www.ClarionTemplates.com

NewsArchive
08-06-2007, 07:47 AM
The manifest you've put into inback.exe requests highestAvailable, so Vista
requests elevation.

Change that to asInvoker. Then your program won't request elevation.

However, your program will crash with an error trying to open the secwin
file that you have in your Program Files\ folder. I see there are other TPS
files and INI files in that folder as well, so you'll need to move them
also.

Jane

NewsArchive
08-06-2007, 07:47 AM
Thank you, Jane.
I'm learning something new each day with this Vista thing.
You say to move the data files... to where? I see a lot of discussions over
this, but not sure what the conclusion is.
Also, will the program crash if UAC is off as well, or always?

Jorge A. Lavera

NewsArchive
08-06-2007, 07:48 AM
Jane, I found your article "Coping With Vista - It's Nice To Share" in
CMag, I'll ask you if I have questions AFTER reading it. Thanks!!


--
Jorge Alejandro Lavera
www.ClarionTemplates.com - Relief for Clarion Developers.
www.ClarionPrograms.com

NewsArchive
08-06-2007, 07:48 AM
Ok, for what I can understand, I should use CSIDL_COMMON_DOCUMENTS for store
my program's data, is that correct?
Then;
How do I read CSIDL_COMMON_DOCUMENTS from a Clarion program? (To assign a
path to my files!)
How fo I set CSIDL_COMMON_DOCUMENTS in Setup Builder? (To install my data
files there!)

--
Jorge Alejandro Lavera
www.ClarionTemplates.com - Relief for Clarion Developers.
www.ClarionPrograms.com

NewsArchive
08-06-2007, 07:48 AM
Seems I found the answer to 1) in another article, "Vista-Compliant INI
Files".

--
Jorge Alejandro Lavera
www.ClarionTemplates.com - Relief for Clarion Developers.
www.ClarionPrograms.com

NewsArchive
08-06-2007, 07:48 AM
FWIW, I think I got it. And the setup in SetupBuilder is the most easy part
of all.

--
Jorge Alejandro Lavera
www.ClarionTemplates.com - Relief for Clarion Developers.
www.ClarionPrograms.com

NewsArchive
08-06-2007, 10:34 AM
Wow, Jorge... I'm impressed!
Coming to terms with Vista in a few hours. Good job!

Jane

NewsArchive
08-06-2007, 10:34 AM
Couldn't make it without the help of the people of these forums and the
excellent material in Clarion Magazine.
By the way, my solution was to default the data of the program to the
common_documents folder, but at the same time the user can change the data
path and put it where he likes.
Before this, I had a user saying he was trouble in Vista with the UAC on...
I changed the manifest and the data path and works fine in Vista... A few
minutes later I had another user saying there was no way he have the files
in a separate directory - lol. I had to make the path user selectable.
I have to say I learnt a lot about Vista. I think my program is fully
compliant now.

--
Jorge Alejandro Lavera
www.ClarionTemplates.com - Relief for Clarion Developers.
www.ClarionPrograms.com

NewsArchive
08-07-2007, 03:49 AM
Jorge

Just a quick point - what if your users elect to store their data in the
application path? That then obviates all the work you have done regards
compatability. i.e. You cannot write to Program Files and many other areas
but the user will not know that.

Do you only allow them to store the data in a Vista aware location?

If not I humbly suggest you check this out urgently otherwise all your hard
work will have been in vain.

HTH

John Fligg

NewsArchive
08-07-2007, 08:06 AM
Hi, John.
One of my users demanded to be able to precisely set the data path to the
program path.
The customer is king <g>.
I default to a Vista aware location. If the user wants/needs/demands to set
the data path to a problematic location... well, I have to give him the
option, specially when the alternative is the user dropping the use of the
program. The program will work perfectly anyway if the user set the
program's path to the root. He will be cured eventually when he migrates to
Vista 64 <g>.

--
Jorge Alejandro Lavera
www.ClarionTemplates.com
www.InBack.com