Command Line Build - Passing Authenticode Password
-
- Posts: 19
- Joined: Thu Nov 03, 2005 11:58 am
- Contact:
Command Line Build - Passing Authenticode Password
Is there a way to pass the digital certificate signing password to the command line build process so that I am not prompted if I kick-off an automated build?
You can get around this by using AutoIt3 to automate the filling in of the password prompt.
http://www.autoitscript.com/autoit3/
From you batch file launch your project compile thus (obviously setup your environment variables correctly):
The AutoIt3 runs the script build.au3 (below). You pass the complete build command line + the cert password (as the second parameter).
The build.au3 script looks like this:
For my build, the private key is requested twice.
http://www.autoitscript.com/autoit3/
From you batch file launch your project compile thus (obviously setup your environment variables correctly):
Code: Select all
AutoIt3 build.au3 ""%IW_HOME%\\miabuild" "%IW_PROJ_FILE%" /o="%IW_PROJ_OUT%" /b="%IW_PROJ_TYPE%" /r" "%IW_PASS%"
The AutoIt3 runs the script build.au3 (below). You pass the complete build command line + the cert password (as the second parameter).
The build.au3 script looks like this:
Code: Select all
Run($CmdLine[1])
WinWaitActive("Enter Private Key Password")
Send($CmdLine[2])
Send("{TAB}{ENTER}")
WinWaitActive("Enter Private Key Password")
Send($CmdLine[2])
Send("{TAB}{ENTER}")
For my build, the private key is requested twice.
Who is online
Users browsing this forum: No registered users and 265 guests