PDA

View Full Version : SB and manifesting?



NewsArchive
08-31-2011, 03:32 AM
I posted this first in 3rdparty, but then thought I should have posted it
here.

AutoNet.exe that comes with FM3 from Capesoft has a manifest with
requestedExecutionLevel
level="requireAdministrator" this is causing me problems at some client
sites.

Can I use SB to remove this manifest or change to asInvoker ?

I'm not well versed in everything SB can do, or is there another way?

TIA

-- brent

NewsArchive
08-31-2011, 03:33 AM
Hi Brent,

You need a "Resource Editor" to remove the manifest from an existing
application file. After that you can re-manifest it.

But as I understand it, the AutoNet source code is available:

C:\ClarionX\....\source\AutoNet

You can compile your own version and then use SB to embed a "asInvoker"
manifest. But if Capesoft requests administrator execution level privileges
for AutoNet.exe then there must be a reason for it <g> Make sure that your
asInvoker manifested AutoNet.exe does not write to any protected Windows
area. Write actions to protected resources will fail if your .exe is
asInvoker manifested.

Friedrich

NewsArchive
08-31-2011, 05:51 AM
Typically programs have to be installed with the RequireAdministrator level
of manifest. Modifications to the HKLM Registry, writing to files under
Program Files or putting anything in the Windows folder requires that level
of permission.

If your app was manifested AsInvolker and tried to do any of that, Windows
would virtualize it and your troubles would just be beginning<g>.

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 - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
08-31-2011, 05:51 AM
Yes, I understand that, but that doesn't "fit" how I currently install
applications, so I don't need administrator level access.

It's my understanding that "virtualizing" only happens when you start
writing to registry keys, or the Programs folder etc. I don't write to any.
Am I misunderstanding this?

I still need autonet.exe manifested as Asinvoker to solve my current
dilema.

Brent Engel

NewsArchive
08-31-2011, 05:51 AM
> Yes, I understand that, but that doesn't "fit" how I currently install
> applications, so I don't need administrator level access.
>
> It's my understanding that "virtualizing" only happens when you start
> writing to registry keys, or the Programs folder etc. I don't write to any.
> Am I misunderstanding this?

In theory, you might be able to get away with it. But I would sure do some
serious testing.


> I still need autonet.exe manifested as Asinvoker to solve my current
> dilema.

I see that the source and the manifest for it are in the folder:

C:\Clarion6\3rdParty\source\AutoNet

So you should be able to manifest it as you need it for testing.

I'd just compile the EXE without the manifest and then tell SetupBuilder to
manifest it asInvolker as it adds it to the install. That way you know the
manifest is correct.

Good luck!

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 - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
08-31-2011, 05:52 AM
Hi Brent,

Autonet requires administrative permission in order to upgrade the
application across the network. Changing requireAdministrator would
typically result in it not working.

--
Regards,

Sean Cameron
CapeSoft
www.capesoft.com

Work Smarter, Not Harder!