PDA

View Full Version : Problem compiling



NewsArchive
11-23-2010, 02:40 AM
I have moved setupbuider from vista to windows 7 64 bit. I installed from
the website. When I try to compile I get error messages
about files not found. It doesn't tell me which files it can't find. It
seems to have to do with the digital certificate.
on the digital certificate screen I have a pfx file listed. It is where it
should be. The following is the error message:


Linking decompression library...
Code size: 9,387 bytes
Processing Uninstall Code-Signing...
Adding Digital Certificate to Uninstall...
__________________________________________________ _________________
Compiler warning GEN1061: File not found:
Compiler warning GEN1061: File not found:
Compiler error GEN1053: Code signing process failed. Error Code: -1
__________________________________________________ ____________________
---------------------------------------
Done ---------------------------------------

AmsWeb6.sb6 - 1 error(s), 5 warning(s)

Compilation Time: 28.43 sec.
Date/Time: 11/22/2010 -- 4:07:22PM

------------------------------- Compilation
aborted -------------------------------

Gary Hoffman

NewsArchive
11-23-2010, 02:41 AM
Gary,

> I have moved setupbuider from vista to windows 7 64 bit. I installed from
> the website. When I try to compile I get error messages
> about files not found. It doesn't tell me which files it can't find. It
> seems to have to do with the digital certificate.
> on the digital certificate screen I have a pfx file listed. It is where
> it should be. The following is the error message:

I think you forgot to switch from SignCode.exe to SignTool.exe.

Tools | Options... | File Locations tab -> Digital Signature

Does this help?

Friedrich

NewsArchive
11-24-2010, 01:34 AM
Thanks I will check it out.

Gary Hoffman

NewsArchive
11-24-2010, 01:34 AM
Well that solved that problem. But now I am getting this:
__________________________________________________ _____________
Adding Digital Certificate to Uninstall...
Compiler error GEN1053: Code signing process failed. Error Code: 1
__________________________________________________ _____________
---------------------------------------
Done ---------------------------------------

AmsWeb6.sb6 - 1 error(s), 5 warning(s)

Compilation Time: 29.75 sec.
Date/Time: 11/23/2010 -- 5:53:53PM

------------------------------- Compilation
aborted -------------------------------

I know this is still code signing. I have looked at digital signatures
under tools and projects. Any Ideas

Gary Hoffman

NewsArchive
11-24-2010, 01:35 AM
Gary,

> Well that solved that problem. But now I am getting this:
> __________________________________________________ _____________
> Adding Digital Certificate to Uninstall...
> Compiler error GEN1053: Code signing process failed. Error Code: 1
> __________________________________________________ _____________
> ---------------------------------------
> Done ---------------------------------------
>
> AmsWeb6.sb6 - 1 error(s), 5 warning(s)
>
> Compilation Time: 29.75 sec.
> Date/Time: 11/23/2010 -- 5:53:53PM
>
> ------------------------------- Compilation
> aborted -------------------------------
>
> I know this is still code signing. I have looked at digital signatures
> under tools and projects. Any Ideas

You said that you have a Windows 7 64 bit machine now. I assume you did you
follow Microsoft's installation instructions for SignTool. Maybe you just
copied SignTool.exe to your machine? That's simply not enough. IMO,
capicom.dll is missing or not registered on your machine. Fix this and you
should be done.

Does this help?

Friedrich

NewsArchive
11-24-2010, 02:06 AM
BTW, try the following:

www.lindersoft.com/capicom_v2102.exe

Friedrich

NewsArchive
11-25-2010, 02:37 AM
> BTW, try the following:
>
> www.lindersoft.com/capicom_v2102.exe

Friedrich,

Will this be a permanent download link? - so it will be easy for
SetupBuilder users to obtain, install and register capicom.dll?

TIA,

David

--
From David Troxell - Encourager Software
Microsoft Forums NNTP Bridge - Instructions to use
http://profileexchanges.com/blog/?p=397

NewsArchive
11-25-2010, 02:38 AM
Hi David,

> Will this be a permanent download link? - so it will be easy for
> SetupBuilder users to obtain, install and register capicom.dll?

I don't know if this will be a permanent link. Microsoft is inconsistent
here.

Some REDIST.TXT files for capicom (prior v2.1.0.2) simply say that 'you may
distribute capicom.DLL'

But the SDK distribution for this version 2.1.0.2 is missing an important
portion of the license information. In the EULA it references a REDIST.TXT
file that is not included with the distribution.

Friedrich

NewsArchive
11-25-2010, 02:39 AM
Found this on the Microsoft TechNet web site:

"Non-Microsoft products can redistribute and install CAPICOM.dll."

So I think it is allowed to redistribute the DLL.

Friedrich

NewsArchive
11-25-2010, 02:40 AM
Thanks got it working

Gary Hoffman

NewsArchive
11-25-2010, 02:40 AM
>
> Thanks got it working
>

Perfect. Thanks for the update!

Friedrich

NewsArchive
11-25-2010, 02:41 AM
> Found this on the Microsoft TechNet web site:
>
> "Non-Microsoft products can redistribute and install CAPICOM.dll."
>
> So I think it is allowed to redistribute the DLL.
>
> Friedrich

Friedrich,

After understanding a bit better, some of the problems others run into with
a new Windows 7 computer - virtual machine and the necessary code sign
tools - I did some experimenting in a Fresh Install - Windows 7 Ultimate
x86 (32 bit) Virtual Machine

I did a search for capicom.dll - none was present on Fresh Install -
Windows 7 Ultimate x86 (32 bit) Virtual Machine.

Note: For those getting used to Windows 7 x64 Program Files folders - Using
Windows 7 Ultimate x86 (32 bit) in this experiment, all Program File
references with be C:\Program Files\ rather than C:\Program Files (x86)\
(if you are using Windows 7 x64)

I used a trial version of SetupBuilder Developer edition to conduct the
experiment.

* * capicom.dll

Anyone could readily access this setup

Platform SDK Redistributable: CAPICOM
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=860EE43A-A843-462F-ABB5-FF88EA5896F6&displaylang=en

This setup will install capicom.dll and register the dll as well.

installs by default to this location:
C:\Program Files\Microsoft CAPICOM 2.1.0.2 SDK\Lib\X86

* * signtool.exe and pvk2pfx.exe

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

In the Encourager Software CHM version of this blog

Signtool.exe Help Topic (current version - I will include the Platform SDK
Redistributable: CAPICOM reference in an update)

Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505

installs signtool.exe and pvk2pfx.exe to your computer

Advantage - After choosing Installation options (Win32 Development tools) -
the install file itself is considerably less than other methods of
obtaining signtool.exe and pvk2pfx.exe, installs to a known folder by
default:

C:\Program Files\Microsoft SDKs\Windows\v7.0\bin

then it's a matter of copying signtool.exe to anther folder or referencing
it for SetupBuilder - Tools - Options - File Location use

But does NOT include installing and registering capicom.dll - refer to:
Platform SDK Redistributable: CAPICOM

* * * * *

The current:

Learning SetupBuilder Part I - Preparing SetupBuilder for Code-Signing -
explains well the three files needed -

signtool.exe, pvk2pfx.exe (if one does not already have a PFX certificate
file) and capicom.dll

but no practical - step by step - how to obtain these three files.

* * * * *

Suggestions (I'm sure you and Jane are already discussing this in detail -
but here's my view! :-D)

If your company can distribute capicom.dll - then Future SetupBuilder
installs include installing and registering capicom.dll

but for those with current SetupBuilder installs - keep this download
reference handy and documented - www.lindersoft.com/capicom_v2102.exe

AND an easy, documented method to obtain signtool.exe and pvk2pfx.exe as I
illustrate in my Signtool.exe Help topic

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html