PDA

View Full Version : #code-sign and #embed UAC manifest



NewsArchive
12-14-2011, 01:43 AM
As an alternative to the "permanent" setting, it would be nice if we
could select a separate target folder for the affected executable(s).

All I'm doing for this SB7 project that I'm working on is signing
files. Not creating a setup app.

If I select "permanent", then it modifies my exe. If I don't select
"permanent", then I don't know where the temp files are created.

But I still want to sign my exe/dlls

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-14-2011, 01:44 AM
Jeff,

> As an alternative to the "permanent" setting, it would be nice if we
> could select a separate target folder for the affected executable(s).

Ease up, you're gunna wear Friedrich out!<g>

In the mean time wouldn't #copy files get you where you want to be?

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
12-14-2011, 01:44 AM
That'll do for now. Thanks!

If it did wild cards, that would be pretty cool. :)

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-14-2011, 01:45 AM
Jeff,

> If it did wild cards, that would be pretty cool. :)

#copy files does wild cards!

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
12-14-2011, 01:45 AM
Oh good. Thanks. I'm glad I didn't start yet. :)

I know that code signing doesn't do wildcards though.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-14-2011, 01:45 AM
Jeff,

> I know that code signing doesn't do wildcards though.

Obviously Friedrich is slipping!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
12-14-2011, 01:46 AM
I have his wife on speed dial. I'll put in a word <g>

Russell B. Eggen
www.radfusion.com

NewsArchive
12-14-2011, 01:47 AM
Too much success will warp the mind.<G>

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-14-2011, 01:47 AM
> Oh good. Thanks. I'm glad I didn't start yet. :)
>
> I know that code signing doesn't do wildcards though.

Well, code-signing DOES support wildcards ;-)

> SetupBuilder 7.2 Build 3015 (July 11, 2010)
>
> IMPROVEMENT: IDE: The "#code-sign application..." compiler
> directive supports a wildcard in the "File Name" field.

Friedrich

NewsArchive
12-14-2011, 01:48 AM
Jeff,

> All I'm doing for this SB7 project that I'm working on is signing
> files. Not creating a setup app.

In this case, you have to enable the "Permanent" option. This will
code-sign your files.

Friedrich

NewsArchive
12-15-2011, 12:42 AM
Jeff,

> Too much success will warp the mind.<G>

Obviously WE'RE slipping, not Friedrich!!!!<g>

>> File Name
>> [in] String that specifies the path and file name of a file to code-sign (this can include the wildcards "*" and "?").

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
12-15-2011, 12:43 AM
Friedrich,

> > IMPROVEMENT: IDE: The "#code-sign application..." compiler
> > directive supports a wildcard in the "File Name" field.

Sometimes you slip things by us mere mortals.<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
12-15-2011, 12:43 AM
Lee,

>> > IMPROVEMENT: IDE: The "#code-sign application..." compiler
>> > directive supports a wildcard in the "File Name" field.
>
> Sometimes you slip things by us mere mortals.<g>
>

Hehehehehe :-)

Friedrich

NewsArchive
12-15-2011, 12:44 AM
I wonder why it didn't work for me?

#set compiler variable [FCAPPROOT] = "e:\myfolder\"
#code-sign application "[FCAPPROOT]xxx*.exe" ["My App"] [Permanent]
[Skip]

Errored on the filename. If I made the filename explicit, then it
worked fine.

Thanks

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-15-2011, 12:45 AM
I just tested it. I have the files test1.exe, test2.exe, test3.exe,
test4.exe and test999.exe located in c:\test

#set compiler variable [FCAPPROOT] = "c:\test"
#code-sign application "[FCAPPROOT]\test*.exe" ["test"] [Permanent]

It code-signed all five files without any problem.

Friedrich

NewsArchive
12-15-2011, 12:45 AM
OK. Thanks.

It does work. I was mistaken about which thing was causing the error.

It was actually the UAC manifest one that failed, but that's not as a
big deal as the other one.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-15-2011, 12:46 AM
> OK. Thanks.
>
> It does work. I was mistaken about which thing was causing the error.
>
> It was actually the UAC manifest one that failed, but that's not as a
> big deal as the other one.

Jeff,

Probably well aware of this - but as Jane would remind us! :-D

Important Windows Stuff - The Order Matters!

manifest
armadillo
code-sign

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Description - App Data UAC Safe, MFG - Encourager Software
Internet Link - http://profileexchanges.com/blog/?p=120

NewsArchive
12-15-2011, 12:46 AM
Of course, David. Thanks for the reminder.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
12-16-2011, 12:36 AM
Yes it does. The attached image is from one of my scripts

Abe Jimenez

NewsArchive
12-16-2011, 12:36 AM
Hi Abe -

It was the UAC manifest thing.

I mistakedley thought it was the code sign kicking the error.

Thanks.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve