PDA

View Full Version : UAC question with NO clarion manifest



NewsArchive
12-26-2010, 10:06 AM
UAC question : I have an app with NO manifest in it clarion side
My SetupBuilder adds a manifest asInvoker compatible for W7

When UAC is turned ON in a W7 machine it asks if I want to run this exe
????

Previous versions did NOT ask this

Any ideas pls ?

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:07 AM
> UAC question : I have an app with NO manifest in it clarion side
> My SetupBuilder adds a manifest asInvoker compatible for W7
>
> When UAC is turned ON in a W7 machine it asks if I want to run this exe
> ????
>
> Previous versions did NOT ask this
>
> Any ideas pls ?

JP, JP, JP <g>

Well, I think you made a "Run this program as administrator" configuration
settings in your Windows and then you forgot to remove it.

Similar to this:

http://www.lindersoft.com/forums/showthread.php?p=51045#post51045

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-26-2010, 10:07 AM
Mein Lieber Got!

How did you know ?

It is in a virtual machine

Let me reload that machine and let you know <vbg>

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:08 AM
> Mein Lieber Got!
>
> How did you know ?
>
> It is in a virtual machine
>
> Let me reload that machine and let you know <vbg>

<BG> :)

Such a compatibility setting change (e.g. "Run this program as
administrator" for a specific file in a specific folder) is a PERMANENT
compatibility mode modification.

Even if you delete the file name and folder, Windows saves the setting
forever. If you create the same folder and copy the same file name back in
a few years then, BINGO!, Windows remembers the setting.

Friedrich

NewsArchive
12-26-2010, 10:09 AM
I reverted to an older image
I start DMC (older version from last month) and all is fine
This could should mean NO such setting normaly no ?

I install from the link sent in another post and BINGO - UAC wakes up

grrrrr

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:09 AM
> I reverted to an older image
> I start DMC (older version from last month) and all is fine
> This could should mean NO such setting normaly no ?
>
> I install from the link sent in another post and BINGO - UAC wakes up

Absolutely. If the file name (and folder) is exactly the same, then it
can't be caused by such a compatibility mode setting.

In other words, there must be another thing in your app that causes it.
Happy hunting <g>

Friedrich

NewsArchive
12-26-2010, 10:10 AM
I manifest two executables in SB

#embed UAC manifest into "J:\dmc.exe" ["Data Management Center"]
[asInvoker] [Windows 7]
#embed UAC manifest into "J:\upg_dmc.exe" ["Data Management Center"]
[asInvoker] [Windows 7]

I start upg_dmc from windows explorer in W7 and NO uac
I start dmc from windows explorer and Uac triggers to on

I copy paste the two original exe's from PRE sb (clarion generated) and
all is fine

where would you "hunt" ?

file names and folders are the exact same

Could it be the new comodo certificate ?
used to be Gutsatz and now is (grrrr) GuTSatz (already had them redo
once for free after another eroor so second redoing.....)

I unisntalled and installed in another folder and all is back to normal

I LOVE w7 UAC "security" settings

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:10 AM
Hi JP,

>
> where would you "hunt" ?
>

No, it's definitely not Comodo.

I would suggest to check (with a HexEditor) if there is an "asInvoker" item
in your DMC.EXE (in the manifest). If this is the case, then it can only be
caused by a compatibility mode setting (see below).

> I unisntalled and installed in another folder and all is back to normal
>
> I LOVE w7 UAC "security" settings

But that is an indicator for a compatibility mode setting!

Test the following: install into the SAME folder again. Start DMC.EXE and
it gives you an elevation prompt, right? Okay, now manually rename it to,
say, DMCX.EXE and start it again. Still an elevation prompt?

Friedrich

NewsArchive
12-26-2010, 10:11 AM
> I manifest two executables in SB
>
> #embed UAC manifest into "J:\dmc.exe" ["Data Management Center"]
> [asInvoker] [Windows 7]
> #embed UAC manifest into "J:\upg_dmc.exe" ["Data Management Center"]
> [asInvoker] [Windows 7]

BTW, not related to your issue, but I would suggest to use [Permanent] and
[Skip] here. Of course, if you have a reason to not use the options, please
igore it <g>)

-- Skip if file is already manifested

If this checkbox is marked, the compiler will skip the UAC manifest
embedding action if the file is already manifested. If you do not enable
this option and the file is already manifested, the compiler will report an
"Error 50" and then abort the compilation process.

-- Permanent

If this checkbox is not marked, the compiler leaves the original File Name
file untouched. The compiler creates a temporary copy of File Name and after
script compilation restores it to the original. If you wish to permanently
embed an UAC manifest to the application (File Name includes a UAC manifest
code-signed after the compilation process), mark this checkbox.

Friedrich

NewsArchive
12-26-2010, 10:12 AM
You can use a resource editor to look at your file and view the embedded
manifest.
Free editor:
http://www.wilsonc.demon.co.uk/d10resourceeditor.htm

Jane Fleming

NewsArchive
12-26-2010, 10:13 AM
does not change anything after restoring an image of that virtual
machine

sorry but : how do I see check change this run as admin setting please
?

www.dmc-fr.com/dmc_maj/dmcsetup.exe

could you pls try and let me know if I call in the format team again
<bg>

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:14 AM
> does not change anything after restoring an image of that virtual machine
>
> sorry but : how do I see check change this run as admin setting please ?

Right-click the target file and check the compatibility mode settings (see
screenshot from the link I mentioned).

Friedrich

NewsArchive
12-26-2010, 10:14 AM
read the post and checked - nothing there

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:15 AM
In the (old version image W7) if I simply copy paste the executable
generated from clarion then all is fine

NO Uac

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:16 AM
> In the (old version image W7) if I simply copy paste the executable
> generated from clarion then all is fine
>
> NO Uac

Nothing is fine if you do not embed a manifest <g> because the application
runs in "legacy mode".

Hmm, but I am confused now <g>. What was the original question? This has
nothing to do with SetupBuilder, so is the question how to find out whether
the application is asInvoker manifested?

If you are really sure that it's not a compatibility mode setting, I would
suggest to check if you have installed the correct file. Simply use a
HexEditor and search for "asInvoker" in your installed .exe. Do you see
this "asInvoker" item in your app? Or do you see a "requireAdministrator"
item?

Friedrich

NewsArchive
12-26-2010, 10:17 AM
It was a "security" settings in w7 it seems as after uninstalling
changing paths and reinstalling all is fine

ah let it be ...... sometimes some funny machines <g>

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:17 AM
> It was a "security" settings in w7 it seems as after uninstalling changing
> paths and reinstalling all is fine
>
> ah let it be ...... sometimes some funny machines <g>

But if you install into the SAME folder again, I am sure it will be back <g>

See my other post. IMO, it's a compatibility mode setting you
(accidentally) made in the past for DMC.EXE in your Windows 7.

Friedrich

NewsArchive
12-26-2010, 10:18 AM
hummm

and there is NO way to remove that setting ?

will test the renaming you suggest

Merci

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"

NewsArchive
12-26-2010, 10:18 AM
> hummm
>
> and there is NO way to remove that setting ?
>
> will test the renaming you suggest

Check the following key for the Admin and your Current User profiles.

\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

If you find DMC.EXE in the key(s) then remove all traces.

Friedrich

NewsArchive
12-26-2010, 10:18 AM
nothing related to DMC.EXE all in all levels HKCU and HKLM 32 and 64
bits

format c:\

hehehe both you and me have the habit <vbg>

--
Merci
Cordialement - Best regards
__________________________________________________ _____

For those who do not understand ... : "Qui bene amat bene castigat."
__________________________________________________ _____

DMC - Data Management Center : a tool to let you Migrate Import Export
Transfer your Data
www.dmc-fr.com/database_migration.html Certified by Microsoft : "Works
with Vista" & "Works with Windows Server 2008"