Digital Signature and Exit Code
Updated: 21 May 2010 | 8 comments
Hi,
The problem description:
If I add a "Digital Signature" in my installer I lose the "Exit Code" ("Exit Code" is always equal to 0). If I don't add a "Digital Signature" my installer returns "Exit Code".
My script:
Set Variable WISE_ERROR_RTN to 18
Insert line “%WISE_ERROR_RTN%” into text file %ERRORLOGFILE%.
Exit Installation (Application Exit Code: 18)
Bat file:
setup.exe
echo %ERRORLIVEL%
Changes (add "Digital Signature"):
1. Installation Expert;
2. Distribution;
3. Digital Signature;
4. Radio-button:
a. Do not add a digital signature (Exit Code = 18);
b. Add a digital signature externally (Exit Code = 0);
c. Add a digital signature (Exit Code = 0).
How can I solve this problem?
PS: the log file is correct.
discussion Filed Under:
Comments
Version?
What version of which Wise product are you working with?
Are you using the Wisescript Editor? - that seems the most likely from the nature of your question.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Wise Installation System 9.02
Wise Installation System 9.02 - Professional Edition
Yes, I'm using the Script Editor (My script).
Very old version
Support for WIS 9.02 ceased several years ago, so if this turns out to be a bug, then you have no chance of getting it fixed.
The simplest way to check if this issue still exists in a recent release of the Wisescript Editor is to download the evaluation copy of Wise Installation Studio and see if the Wisescript Editor in Studio 7 still exhibits this behaviour.
The knowledgebase for Wise tools can be found at the old Altiris location: http://kb.altiris.com
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
A valid VeriSign commercial certificate.
EdT, thanks.
Wise Installation Studio 7.0, Wisescript Editor has a massage: "You must possess a valid VeriSign commercial certificate to use this feature".
Do you have a certificate?
Are you able to get a suitable certificate?
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
solution
Hi
I found a solution for this issue. Actually its a known bug in wise 9.02. Exitcodes are always zero, if you enable the "external signing".
Do the following:
Set the option "Do not add a digital signature" in the WISE (disable the external signing).
Then build your installer. Now its actually unsignable (Nasty message about wrong-expected-file-size will occur, if you do it and execute it).
We can make it signable over a little hack (we will remove the file-size check).
Open your installer.exe in a hex editor:
On offset
0x1938
the orignal byte is: 0x74
Change it to: 0xEB
This actually removes the file size check. After this modification in the exe (i would do it over a program) you can sign the exe and it will work without nasty messages. The exit codes will also be correct.
If you have questions ask me: GeroZink AT2REPLACE gmx POINT2REMOVE de
Possible solution: "0x1938” = “0x74” to “0xEB"
I do not have a valid VeriSign commercial certificate.
I have made my own certificate:
makecert.exe -r -sv key.pvk -n "CN=Setup" certificate.cer
pvk2pfx.exe -pvk key.pvk -spc certificate.cer -pfx certificate.pfx -po password
cert2spc.exe certificate.cer certificate.spc
Gerooooo, you right. If “0x1938” is changed from “0x74” to “0xEB” Exit Code will be correct.
I have the same problem, but
I have the same problem, but I use Wise Package studio 7.0 SP3
Can this issue be solved in similar way there?
If i try this solution and look att Offset 0x1938 the byte is 0x75 so I guess its not the right place...
Any ideas how to solve this?
/mats
Would you like to reply?
Login or Register to post your comment.